@drayman/elements 1.68.0 → 1.70.0

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.
@@ -1 +1 @@
1
- (()=>{var xD={452:function(ft){ft.exports=function(){"use strict";var Je=function(Nn){var Bi=Nn.addFilter,Ee=Nn.utils,Ge=Ee.Type,Ie=Ee.replaceInString,Ae=Ee.toNaturalFileSize;return Bi("ALLOW_HOPPER_ITEM",function(At,Ut){var rt=Ut.query;if(!rt("GET_ALLOW_FILE_SIZE_VALIDATION"))return!0;var et=rt("GET_MAX_FILE_SIZE");if(null!==et&&At.size>=et)return!1;var sn=rt("GET_MIN_FILE_SIZE");return!(null!==sn&&At.size<=sn)}),Bi("LOAD_FILE",function(At,Ut){var rt=Ut.query;return new Promise(function(et,sn){if(!rt("GET_ALLOW_FILE_SIZE_VALIDATION"))return et(At);var ni=rt("GET_FILE_VALIDATE_SIZE_FILTER");if(ni&&!ni(At))return et(At);var gn=rt("GET_MAX_FILE_SIZE");if(null!==gn&&At.size>=gn)sn({status:{main:rt("GET_LABEL_MAX_FILE_SIZE_EXCEEDED"),sub:Ie(rt("GET_LABEL_MAX_FILE_SIZE"),{filesize:Ae(gn)})}});else{var Gt=rt("GET_MIN_FILE_SIZE");if(null!==Gt&&At.size<=Gt)sn({status:{main:rt("GET_LABEL_MIN_FILE_SIZE_EXCEEDED"),sub:Ie(rt("GET_LABEL_MIN_FILE_SIZE"),{filesize:Ae(Gt)})}});else{var Fn=rt("GET_MAX_TOTAL_FILE_SIZE");if(null!==Fn&&rt("GET_ACTIVE_ITEMS").reduce(function(Nr,tt){return Nr+tt.fileSize},0)>Fn)return void sn({status:{main:rt("GET_LABEL_MAX_TOTAL_FILE_SIZE_EXCEEDED"),sub:Ie(rt("GET_LABEL_MAX_TOTAL_FILE_SIZE"),{filesize:Ae(Fn)})}});et(At)}}})}),{options:{allowFileSizeValidation:[!0,Ge.BOOLEAN],maxFileSize:[null,Ge.INT],minFileSize:[null,Ge.INT],maxTotalFileSize:[null,Ge.INT],fileValidateSizeFilter:[null,Ge.FUNCTION],labelMinFileSizeExceeded:["File is too small",Ge.STRING],labelMinFileSize:["Minimum file size is {filesize}",Ge.STRING],labelMaxFileSizeExceeded:["File is too large",Ge.STRING],labelMaxFileSize:["Maximum file size is {filesize}",Ge.STRING],labelMaxTotalFileSizeExceeded:["Maximum total size exceeded",Ge.STRING],labelMaxTotalFileSize:["Maximum total file size is {filesize}",Ge.STRING]}}};return"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:Je})),Je}()},212:function(ft){ft.exports=function(){"use strict";const J=Ee=>{let Ge=document.createElement("span");return Ge.className="filepond--download-icon",Ge.title=Ee,Ge},pn=(Ee,Ge)=>{if(Ge&&Ee.getMetadata("url"))location.href=Ee.getMetadata("url");else{const Ie=document.createElement("a"),Ae=window.URL.createObjectURL(Ee.file);document.body.appendChild(Ie),Ie.style.display="none",Ie.href=Ae,Ie.download=Ee.file.name,Ie.click(),window.URL.revokeObjectURL(Ae),Ie.remove()}},Nn=Ee=>{const{addFilter:Ge,utils:Ie}=Ee,{Type:Ae,createRoute:At}=Ie;return Ge("CREATE_VIEW",Ut=>{const{is:rt,view:et,query:sn}=Ut;rt("file")&&et.registerWriter(At({DID_LOAD_ITEM:({root:gn,props:Gt})=>{const{id:Fn}=Gt,Pr=sn("GET_ITEM",Fn);if(!Pr||Pr.archived)return;const Nr=gn.query("GET_LABEL_BUTTON_DOWNLOAD_ITEM"),tt=gn.query("GET_ALLOW_DOWNLOAD_BY_URL");((Ee,Ge,Ie,Ae)=>{const At=Ge.querySelector(".filepond--file-info-main"),Ut=J(Ie);At.prepend(Ut),Ut.addEventListener("click",()=>pn(Ee,Ae))})(Pr,gn.element,Nr,tt)}},({props:Gt})=>{const{id:Fn}=Gt;sn("GET_ITEM",Fn)}))}),{options:{labelButtonDownloadItem:["Download file",Ae.STRING],allowDownloadByUrl:[!1,Ae.BOOLEAN]}}};return"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:Nn})),Nn}()},917:function(ft,Je){!function(J){"use strict";var pn=function(s){return s instanceof HTMLElement},Nn=function(s){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],f=Object.assign({},s),g=[],y=[],I=function(){var P=[].concat(y);y.length=0,P.forEach(function(B){T(B.type,B.data)})},T=function(P,B,$){!$||document.hidden?(k[P]&&k[P](B),g.push({type:P,data:B})):y.push({type:P,data:B})},C=function(P){for(var B,$=arguments.length,ne=new Array($>1?$-1:0),j=1;j<$;j++)ne[j-1]=arguments[j];return N[P]?(B=N)[P].apply(B,ne):null},S={getState:function(){return Object.assign({},f)},processActionQueue:function(){var P=[].concat(g);return g.length=0,P},processDispatchQueue:I,dispatch:T,query:C},N={};a.forEach(function(H){N=Object.assign({},H(f),{},N)});var k={};return c.forEach(function(H){k=Object.assign({},H(T,C,f),{},k)}),S},Ee=function(s,a){for(var c in s)!s.hasOwnProperty(c)||a(c,s[c])},Ge=function(s){var a={};return Ee(s,function(c){!function(s,a,c){"function"!=typeof c?Object.defineProperty(s,a,Object.assign({},c)):s[a]=c}(a,c,s[c])}),a},Ie=function(s,a){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(null===c)return s.getAttribute(a)||s.hasAttribute(a);s.setAttribute(a,c)},Ae="http://www.w3.org/2000/svg",At=["svg","path"],Ut=function(s){return At.includes(s)},rt=function(s,a){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"==typeof a&&(c=a,a=null);var f=Ut(s)?document.createElementNS(Ae,s):document.createElement(s);return a&&(Ut(s)?Ie(f,"class",a):f.className=a),Ee(c,function(g,y){Ie(f,g,y)}),f},et=function(s){return function(a,c){void 0!==c&&s.children[c]?s.insertBefore(a,s.children[c]):s.appendChild(a)}},sn=function(s,a){return function(c,f){return void 0!==f?a.splice(f,0,c):a.push(c),c}},ni=function(s,a){return function(c){return a.splice(a.indexOf(c),1),c.element.parentNode&&s.removeChild(c.element),c}},gn="undefined"!=typeof window&&void 0!==window.document,Gt=function(){return gn},Pr="children"in(Gt()?rt("svg"):{})?function(h){return h.children.length}:function(h){return h.childNodes.length},Nr=function(s,a,c,f){var g=c[0]||s.left,y=c[1]||s.top,v=g+s.width,_=y+s.height*(f[1]||1),I={element:Object.assign({},s),inner:{left:s.left,top:s.top,right:s.right,bottom:s.bottom},outer:{left:g,top:y,right:v,bottom:_}};return a.filter(function(T){return!T.isRectIgnored()}).map(function(T){return T.rect}).forEach(function(T){tt(I.inner,Object.assign({},T.inner)),tt(I.outer,Object.assign({},T.outer))}),zs(I.inner),I.outer.bottom+=I.element.marginBottom,I.outer.right+=I.element.marginRight,zs(I.outer),I},tt=function(s,a){a.top+=s.top,a.right+=s.left,a.bottom+=s.top,a.left+=s.left,a.bottom>s.bottom&&(s.bottom=a.bottom),a.right>s.right&&(s.right=a.right)},zs=function(s){s.width=s.right-s.left,s.height=s.bottom-s.top},ri=function(s){return"number"==typeof s},ii=function(s,a,c){var f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.001;return Math.abs(s-a)<f&&Math.abs(c)<f},So=function(s){return s<.5?2*s*s:(4-2*s)*s-1},qs={spring:function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=s.stiffness,c=void 0===a?.5:a,f=s.damping,g=void 0===f?.75:f,y=s.mass,v=void 0===y?10:y,_=null,I=null,T=0,C=!1,k=Ge({interpolate:function(P,B){if(!C){if(!ri(_)||!ri(I))return C=!0,void(T=0);ii(I+=T+=-(I-_)*c/v,_,T*=g)||B?(T=0,C=!0,k.onupdate(I=_),k.oncomplete(I)):k.onupdate(I)}},target:{set:function(P){if(ri(P)&&!ri(I)&&(I=P),null===_&&(_=P,I=P),I===(_=P)||void 0===_)return C=!0,T=0,k.onupdate(I),void k.oncomplete(I);C=!1},get:function(){return _}},resting:{get:function(){return C}},onupdate:function(P){},oncomplete:function(P){}});return k},tween:function(){var I,T,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=s.duration,c=void 0===a?500:a,f=s.easing,g=void 0===f?So:f,y=s.delay,v=void 0===y?0:y,_=null,C=!0,S=!1,N=null,H=Ge({interpolate:function(B,$){C||null===N||(null===_&&(_=B),!(B-_<v)&&((I=B-_-v)>=c||$?(I=1,H.onupdate((T=S?0:1)*N),H.oncomplete(T*N),C=!0):(T=I/c,H.onupdate((I>=0?g(S?1-T:T):0)*N))))},target:{get:function(){return S?0:N},set:function(B){if(null===N)return N=B,H.onupdate(B),void H.oncomplete(B);B<N?(N=1,S=!0):(S=!1,N=B),C=!1,_=null}},resting:{get:function(){return C}},onupdate:function(B){},oncomplete:function(B){}});return H}},Ys=function(s,a,c){var f=arguments.length>3&&void 0!==arguments[3]&&arguments[3];(a=Array.isArray(a)?a:[a]).forEach(function(g){s.forEach(function(y){var v=y,_=function(){return c[y]},I=function(C){return c[y]=C};"object"==typeof y&&(v=y.key,_=y.getter||_,I=y.setter||I),(!g[v]||f)&&(g[v]={get:_,set:I})})})},$t=function(s){return null!=s},rd={opacity:1,scaleX:1,scaleY:1,translateX:0,translateY:0,rotateX:0,rotateY:0,rotateZ:0,originX:0,originY:0},ku=function(s,a){if(Object.keys(s).length!==Object.keys(a).length)return!0;for(var c in a)if(a[c]!==s[c])return!0;return!1},Bu=function(s,a){var c=a.opacity,f=a.perspective,g=a.translateX,y=a.translateY,v=a.scaleX,_=a.scaleY,I=a.rotateX,T=a.rotateY,C=a.rotateZ,S=a.originX,N=a.originY,k=a.width,H=a.height,P="",B="";($t(S)||$t(N))&&(B+="transform-origin: "+(S||0)+"px "+(N||0)+"px;"),$t(f)&&(P+="perspective("+f+"px) "),($t(g)||$t(y))&&(P+="translate3d("+(g||0)+"px, "+(y||0)+"px, 0) "),($t(v)||$t(_))&&(P+="scale3d("+($t(v)?v:1)+", "+($t(_)?_:1)+", 1) "),$t(C)&&(P+="rotateZ("+C+"rad) "),$t(I)&&(P+="rotateX("+I+"rad) "),$t(T)&&(P+="rotateY("+T+"rad) "),P.length&&(B+="transform:"+P+";"),$t(c)&&(B+="opacity:"+c+";",0===c&&(B+="visibility:hidden;"),c<1&&(B+="pointer-events:none;")),$t(H)&&(B+="height:"+H+"px;"),$t(k)&&(B+="width:"+k+"px;");var $=s.elementCurrentStyle||"";(B.length!==$.length||B!==$)&&(s.style.cssText=B,s.elementCurrentStyle=B)},Vu={styles:function(s){var a=s.mixinConfig,c=s.viewProps,f=s.viewInternalAPI,g=s.viewExternalAPI,y=s.view,v=Object.assign({},c),_={};Ys(a,[f,g],c);var C=function(){return y.rect?Nr(y.rect,y.childViews,[c.translateX||0,c.translateY||0],[c.scaleX||0,c.scaleY||0]):null};return f.rect={get:C},g.rect={get:C},a.forEach(function(S){c[S]=void 0===v[S]?rd[S]:v[S]}),{write:function(){if(ku(_,c))return Bu(y.element,c),Object.assign(_,Object.assign({},c)),!0},destroy:function(){}}},listeners:function(s){var g=s.viewExternalAPI,v=s.view,_=[],I=function(s){return function(a,c){s.addEventListener(a,c)}}(v.element),T=function(s){return function(a,c){s.removeEventListener(a,c)}}(v.element);return g.on=function(C,S){_.push({type:C,fn:S}),I(C,S)},g.off=function(C,S){_.splice(_.findIndex(function(N){return N.type===C&&N.fn===S}),1),T(C,S)},{write:function(){return!0},destroy:function(){_.forEach(function(S){T(S.type,S.fn)})}}},animations:function(s){var a=s.mixinConfig,c=s.viewProps,f=s.viewInternalAPI,g=s.viewExternalAPI,y=Object.assign({},c),v=[];return Ee(a,function(_,I){var T=function(s,a,c){var f=s[a]&&"object"==typeof s[a][c]?s[a][c]:s[a]||s,g="string"==typeof f?f:f.type,y="object"==typeof f?Object.assign({},f):{};return qs[g]?qs[g](y):null}(I);T&&(T.onupdate=function(S){c[_]=S},T.target=y[_],Ys([{key:_,setter:function(N){T.target!==N&&(T.target=N)},getter:function(){return c[_]}}],[f,g],c,!0),v.push(T))}),{write:function(I){var T=document.hidden,C=!0;return v.forEach(function(S){S.resting||(C=!1),S.interpolate(I,T)}),C},destroy:function(){}}},apis:function(s){Ys(s.mixinConfig,s.viewExternalAPI,s.viewProps)}},ju=function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return a.layoutCalculated||(s.paddingTop=parseInt(c.paddingTop,10)||0,s.marginTop=parseInt(c.marginTop,10)||0,s.marginRight=parseInt(c.marginRight,10)||0,s.marginBottom=parseInt(c.marginBottom,10)||0,s.marginLeft=parseInt(c.marginLeft,10)||0,a.layoutCalculated=!0),s.left=a.offsetLeft||0,s.top=a.offsetTop||0,s.width=a.offsetWidth||0,s.height=a.offsetHeight||0,s.right=s.left+s.width,s.bottom=s.top+s.height,s.scrollTop=a.scrollTop,s.hidden=null===a.offsetParent,s},ht=function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=s.tag,c=void 0===a?"div":a,f=s.name,g=void 0===f?null:f,y=s.attributes,v=void 0===y?{}:y,_=s.read,I=void 0===_?function(){}:_,T=s.write,C=void 0===T?function(){}:T,S=s.create,N=void 0===S?function(){}:S,k=s.destroy,H=void 0===k?function(){}:k,P=s.filterFrameActionsForChild,B=void 0===P?function(z,ee){return ee}:P,$=s.didCreateView,ne=void 0===$?function(){}:$,j=s.didWriteView,Re=void 0===j?function(){}:j,ae=s.ignoreRect,Ve=void 0!==ae&&ae,xe=s.ignoreRectUpdate,q=void 0!==xe&&xe,te=s.mixins,re=void 0===te?[]:te;return function(z){var ee=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},oe=rt(c,"filepond--"+g,v),je=window.getComputedStyle(oe,null),ke=ju(),se=null,x=!1,A=[],Q=[],fe={},ge={},Ce=[C],_e=[I],Oe=[H],Kn=function(){return oe},_r=function(){return A.concat()},Za=function(Pe){return function(Zn,Dr){return Zn(Pe,Dr)}},ps=function(){return se||(se=Nr(ke,A,[0,0],[1,1]))},po=function(){se=null,A.forEach(function(Dr){return Dr._read()}),!(q&&ke.width&&ke.height)&&ju(ke,oe,je);var Zn={root:wn,props:ee,rect:ke};_e.forEach(function(Dr){return Dr(Zn)})},Lf=function(Pe,Zn,Dr){var Ci=0===Zn.length;return Ce.forEach(function(bt){!1===bt({props:ee,root:wn,actions:Zn,timestamp:Pe,shouldOptimize:Dr})&&(Ci=!1)}),Q.forEach(function(bt){!1===bt.write(Pe)&&(Ci=!1)}),A.filter(function(bt){return!!bt.element.parentNode}).forEach(function(bt){bt._write(Pe,B(bt,Zn),Dr)||(Ci=!1)}),A.forEach(function(bt,Xn){bt.element.parentNode||(wn.appendChild(bt.element,Xn),bt._read(),bt._write(Pe,B(bt,Zn),Dr),Ci=!1)}),x=Ci,Re({props:ee,root:wn,actions:Zn,timestamp:Pe}),Ci},Vl=function(){Q.forEach(function(Pe){return Pe.destroy()}),Oe.forEach(function(Pe){Pe({root:wn,props:ee})}),A.forEach(function(Pe){return Pe._destroy()})},jl={element:{get:Kn},style:{get:function(){return je}},childViews:{get:_r}},Hl=Object.assign({},jl,{rect:{get:ps},ref:{get:function(){return fe}},is:function(Pe){return g===Pe},appendChild:et(oe),createChildView:Za(z),linkView:function(Pe){return A.push(Pe),Pe},unlinkView:function(Pe){A.splice(A.indexOf(Pe),1)},appendChildView:sn(0,A),removeChildView:ni(oe,A),registerWriter:function(Pe){return Ce.push(Pe)},registerReader:function(Pe){return _e.push(Pe)},registerDestroyer:function(Pe){return Oe.push(Pe)},invalidateLayout:function(){return oe.layoutCalculated=!1},dispatch:z.dispatch,query:z.query}),Ja={element:{get:Kn},childViews:{get:_r},rect:{get:ps},resting:{get:function(){return x}},isRectIgnored:function(){return Ve},_read:po,_write:Lf,_destroy:Vl},eu=Object.assign({},jl,{rect:{get:function(){return ke}}});Object.keys(re).sort(function(He,Pe){return"styles"===He?1:"styles"===Pe?-1:0}).forEach(function(He){var Pe=Vu[He]({mixinConfig:re[He],viewProps:ee,viewState:ge,viewInternalAPI:Hl,viewExternalAPI:Ja,view:Ge(eu)});Pe&&Q.push(Pe)});var wn=Ge(Hl);N({root:wn,props:ee});var tu=Pr(oe);return A.forEach(function(He,Pe){wn.appendChild(He.element,tu+Pe)}),ne(wn),Ge(Ja)}},Ft=function(s,a){return function(c){var f=c.root,g=c.props,y=c.actions,v=void 0===y?[]:y,_=c.timestamp,I=c.shouldOptimize;v.filter(function(T){return s[T.type]}).forEach(function(T){return s[T.type]({root:f,props:g,action:T.data,timestamp:_,shouldOptimize:I})}),a&&a({root:f,props:g,actions:v,timestamp:_,shouldOptimize:I})}},Hu=function(s,a){return a.parentNode.insertBefore(s,a)},Uu=function(s,a){return a.parentNode.insertBefore(s,a.nextSibling)},Ao=function(s){return Array.isArray(s)},Ln=function(s){return null==s},Gu=function(s){return s.trim()},Ks=function(s){return""+s},od=function(s){return"boolean"==typeof s},Zs=function(s){return od(s)?s:"true"===s},Lt=function(s){return"string"==typeof s},zu=function(s){return ri(s)?s:Lt(s)?Ks(s).replace(/[a-z]+/gi,""):0},Mo=function(s){return parseInt(zu(s),10)},sd=function(s){return parseFloat(zu(s))},oi=function(s){return ri(s)&&isFinite(s)&&Math.floor(s)===s},Xs=function(s){if(oi(s))return s;var a=Ks(s).trim();return/MB$/i.test(a)?(a=a.replace(/MB$i/,"").trim(),1e3*Mo(a)*1e3):/KB/i.test(a)?(a=a.replace(/KB$i/,"").trim(),1e3*Mo(a)):Mo(a)},Fr=function(s){return"function"==typeof s},Wu={process:"POST",patch:"PATCH",revert:"DELETE",fetch:"GET",restore:"GET",load:"GET"},ud=function(s,a,c,f,g){if(null===a)return null;if("function"==typeof a)return a;var y={url:"GET"===c||"PATCH"===c?"?"+s+"=":"",method:c,headers:g,withCredentials:!1,timeout:f,onload:null,ondata:null,onerror:null};if(Lt(a))return y.url=a,y;if(Object.assign(y,a),Lt(y.headers)){var v=y.headers.split(/:(.+)/);y.headers={header:v[0],value:v[1]}}return y.withCredentials=Zs(y.withCredentials),y},wt=function(s){return"object"==typeof s&&null!==s},Js=function(s){return Ao(s)?"array":function(s){return null===s}(s)?"null":oi(s)?"int":/^[0-9]+ ?(?:GB|MB|KB)$/gi.test(s)?"bytes":function(s){return wt(s)&&Lt(s.url)&&wt(s.process)&&wt(s.revert)&&wt(s.restore)&&wt(s.fetch)}(s)?"api":typeof s},hd={array:function(s){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";return Ln(s)?[]:Ao(s)?s:Ks(s).split(a).map(Gu).filter(function(c){return c.length})},boolean:Zs,int:function(s){return"bytes"===Js(s)?Xs(s):Mo(s)},number:sd,float:sd,bytes:Xs,string:function(s){return Fr(s)?s:Ks(s)},function:function(s){return function(s){for(var a=self,c=s.split("."),f=null;f=c.shift();)if(!(a=a[f]))return null;return a}(s)},serverapi:function(s){return function(s){var a={};return a.url=Lt(s)?s:s.url||"",a.timeout=s.timeout?parseInt(s.timeout,10):0,a.headers=s.headers?s.headers:{},Ee(Wu,function(c){a[c]=ud(c,s[c],Wu[c],a.timeout,a.headers)}),a.remove=s.remove||null,delete a.headers,a}(s)},object:function(s){try{return JSON.parse(function(s){return s.replace(/{\s*'/g,'{"').replace(/'\s*}/g,'"}').replace(/'\s*:/g,'":').replace(/:\s*'/g,':"').replace(/,\s*'/g,',"').replace(/'\s*,/g,'",')}(s))}catch(a){return null}}},qe=function(s,a,c){if(s===a)return s;var f=Js(s);if(f!==c){var g=function(s,a){return hd[a](s)}(s,c);if(f=Js(g),null===g)throw'Trying to assign value with incorrect type to "'+option+'", allowed type: "'+c+'"';s=g}return s},$e=function(s){var a={};return Ee(s,function(c){var f=s[c];a[c]=function(s,a){var c=s;return{enumerable:!0,get:function(){return c},set:function(g){c=qe(g,s,a)}}}(f[0],f[1])}),Ge(a)},ta=function(s){return{items:[],listUpdateTimeout:null,itemUpdateTimeout:null,processingQueue:[],options:$e(s)}},Ro=function(s){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return s.split(/(?=[A-Z])/).map(function(c){return c.toLowerCase()}).join(a)},na=function(s,a){var c={};return Ee(a,function(f){c[f]={get:function(){return s.getState().options[f]},set:function(y){s.dispatch("SET_"+Ro(f,"_").toUpperCase(),{value:y})}}}),c},ve=function(s){return function(a,c,f){var g={};return Ee(s,function(y){var v=Ro(y,"_").toUpperCase();g["SET_"+v]=function(_){try{f.options[y]=_.value}catch(I){}a("DID_SET_"+v,{value:f.options[y]})}}),g}},Yu=function(s){return function(a){var c={};return Ee(s,function(f){c["GET_"+Ro(f,"_").toUpperCase()]=function(g){return a.options[f]}}),c}},mn_API=1,mn_DROP=2,mn_BROWSE=3,mn_PASTE=4,mn_NONE=5,Y=function(){return Math.random().toString(36).substr(2,9)};function gd(h){this.wrapped=h}function Oo(h){var s,a;function f(y,v){try{var _=h[y](v),I=_.value,T=I instanceof gd;Promise.resolve(T?I.wrapped:I).then(function(C){T?f("next",C):g(_.done?"return":"normal",C)},function(C){f("throw",C)})}catch(C){g("throw",C)}}function g(y,v){switch(y){case"return":s.resolve({value:v,done:!0});break;case"throw":s.reject(v);break;default:s.resolve({value:v,done:!1})}(s=s.next)?f(s.key,s.arg):a=null}this._invoke=function c(y,v){return new Promise(function(_,I){var T={key:y,arg:v,resolve:_,reject:I,next:null};a?a=a.next=T:(s=a=T,f(y,v))})},"function"!=typeof h.return&&(this.return=void 0)}function Ku(h,s){if(null==h)return{};var c,f,a=function ua(h,s){if(null==h)return{};var f,g,a={},c=Object.keys(h);for(g=0;g<c.length;g++)!(s.indexOf(f=c[g])>=0)&&(a[f]=h[f]);return a}(h,s);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(h);for(f=0;f<g.length;f++)!(s.indexOf(c=g[f])>=0)&&(!Object.prototype.propertyIsEnumerable.call(h,c)||(a[c]=h[c]))}return a}function wd(h){return function We(h){if(Array.isArray(h)){for(var s=0,a=new Array(h.length);s<h.length;s++)a[s]=h[s];return a}}(h)||function bd(h){if(Symbol.iterator in Object(h)||"[object Arguments]"===Object.prototype.toString.call(h))return Array.from(h)}(h)||function Fo(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}"function"==typeof Symbol&&Symbol.asyncIterator&&(Oo.prototype[Symbol.asyncIterator]=function(){return this}),Oo.prototype.next=function(h){return this._invoke("next",h)},Oo.prototype.throw=function(h){return this._invoke("throw",h)},Oo.prototype.return=function(h){return this._invoke("return",h)};var s,a,U=function(s,a){return s.splice(a,1)},Ke=function(){var s=[],a=function(g,y){U(s,s.findIndex(function(v){return v.event===g&&(v.cb===y||!y)}))},c=function(g,y,v){s.filter(function(_){return _.event===g}).map(function(_){return _.cb}).forEach(function(_){return function(s,a){a?s():document.hidden?Promise.resolve(1).then(s):setTimeout(s,0)}(function(){return _.apply(void 0,wd(y))},v)})};return{fireSync:function(g){for(var y=arguments.length,v=new Array(y>1?y-1:0),_=1;_<y;_++)v[_-1]=arguments[_];c(g,v,!0)},fire:function(g){for(var y=arguments.length,v=new Array(y>1?y-1:0),_=1;_<y;_++)v[_-1]=arguments[_];c(g,v,!1)},on:function(g,y){s.push({event:g,cb:y})},onOnce:function(g,y){s.push({event:g,cb:function(){a(g,y),y.apply(void 0,arguments)}})},off:a}},zt=function(s,a,c){Object.getOwnPropertyNames(s).filter(function(f){return!c.includes(f)}).forEach(function(f){return Object.defineProperty(a,f,Object.getOwnPropertyDescriptor(s,f))})},kr=["fire","process","revert","load","on","off","onOnce","retryLoad","extend","archive","archived","release","released","requestProcessing","freeze"],Be=function(s){var a={};return zt(s,a,kr),a},Br=function(s){s.forEach(function(a,c){a.released&&U(s,c)})},K={INIT:1,IDLE:2,PROCESSING_QUEUED:9,PROCESSING:3,PROCESSING_COMPLETE:5,PROCESSING_ERROR:6,PROCESSING_REVERT_ERROR:10,LOADING:7,LOAD_ERROR:8},yt={INPUT:1,LIMBO:2,LOCAL:3},Vr=function(s){return/[^0-9]+/.exec(s)},pe=function(){return Vr(1.1.toLocaleString())[0]},L={BOOLEAN:"boolean",INT:"int",NUMBER:"number",STRING:"string",ARRAY:"array",OBJECT:"object",FUNCTION:"function",ACTION:"action",SERVER_API:"serverapi",REGEX:"regex"},Gi=[],Jt=function(s,a,c){return new Promise(function(f,g){var y=Gi.filter(function(_){return _.key===s}).map(function(_){return _.cb});if(0!==y.length){var v=y.shift();y.reduce(function(_,I){return _.then(function(T){return I(T,c)})},v(a,c)).then(function(_){return f(_)}).catch(function(_){return g(_)})}else f(a)})},st=function(s,a,c){return Gi.filter(function(f){return f.key===s}).map(function(f){return f.cb(a,c)})},$i=function(s,a){return Gi.push({key:s,cb:a})},qt=function(){return Object.assign({},li)},li={id:[null,L.STRING],name:["filepond",L.STRING],disabled:[!1,L.BOOLEAN],className:[null,L.STRING],required:[!1,L.BOOLEAN],captureMethod:[null,L.STRING],allowSyncAcceptAttribute:[!0,L.BOOLEAN],allowDrop:[!0,L.BOOLEAN],allowBrowse:[!0,L.BOOLEAN],allowPaste:[!0,L.BOOLEAN],allowMultiple:[!1,L.BOOLEAN],allowReplace:[!0,L.BOOLEAN],allowRevert:[!0,L.BOOLEAN],allowRemove:[!0,L.BOOLEAN],allowProcess:[!0,L.BOOLEAN],allowReorder:[!1,L.BOOLEAN],allowDirectoriesOnly:[!1,L.BOOLEAN],forceRevert:[!1,L.BOOLEAN],maxFiles:[null,L.INT],checkValidity:[!1,L.BOOLEAN],itemInsertLocationFreedom:[!0,L.BOOLEAN],itemInsertLocation:["before",L.STRING],itemInsertInterval:[75,L.INT],dropOnPage:[!1,L.BOOLEAN],dropOnElement:[!0,L.BOOLEAN],dropValidation:[!1,L.BOOLEAN],ignoredFiles:[[".ds_store","thumbs.db","desktop.ini"],L.ARRAY],instantUpload:[!0,L.BOOLEAN],maxParallelUploads:[2,L.INT],chunkUploads:[!1,L.BOOLEAN],chunkForce:[!1,L.BOOLEAN],chunkSize:[5e6,L.INT],chunkRetryDelays:[[500,1e3,3e3],L.Array],server:[null,L.SERVER_API],labelDecimalSeparator:[pe(),L.STRING],labelThousandsSeparator:[(s=pe(),a=1e3.toLocaleString(),a!==1e3.toString()?Vr(a)[0]:"."===s?",":"."),L.STRING],labelIdle:['Drag & Drop your files or <span class="filepond--label-action">Browse</span>',L.STRING],labelInvalidField:["Field contains invalid files",L.STRING],labelFileWaitingForSize:["Waiting for size",L.STRING],labelFileSizeNotAvailable:["Size not available",L.STRING],labelFileCountSingular:["file in list",L.STRING],labelFileCountPlural:["files in list",L.STRING],labelFileLoading:["Loading",L.STRING],labelFileAdded:["Added",L.STRING],labelFileLoadError:["Error during load",L.STRING],labelFileRemoved:["Removed",L.STRING],labelFileRemoveError:["Error during remove",L.STRING],labelFileProcessing:["Uploading",L.STRING],labelFileProcessingComplete:["Upload complete",L.STRING],labelFileProcessingAborted:["Upload cancelled",L.STRING],labelFileProcessingError:["Error during upload",L.STRING],labelFileProcessingRevertError:["Error during revert",L.STRING],labelTapToCancel:["tap to cancel",L.STRING],labelTapToRetry:["tap to retry",L.STRING],labelTapToUndo:["tap to undo",L.STRING],labelButtonRemoveItem:["Remove",L.STRING],labelButtonAbortItemLoad:["Abort",L.STRING],labelButtonRetryItemLoad:["Retry",L.STRING],labelButtonAbortItemProcessing:["Cancel",L.STRING],labelButtonUndoItemProcessing:["Undo",L.STRING],labelButtonRetryItemProcessing:["Retry",L.STRING],labelButtonProcessItem:["Upload",L.STRING],iconRemove:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M11.586 13l-2.293 2.293a1 1 0 0 0 1.414 1.414L13 14.414l2.293 2.293a1 1 0 0 0 1.414-1.414L14.414 13l2.293-2.293a1 1 0 0 0-1.414-1.414L13 11.586l-2.293-2.293a1 1 0 0 0-1.414 1.414L11.586 13z" fill="currentColor" fill-rule="nonzero"/></svg>',L.STRING],iconProcess:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M14 10.414v3.585a1 1 0 0 1-2 0v-3.585l-1.293 1.293a1 1 0 0 1-1.414-1.415l3-3a1 1 0 0 1 1.414 0l3 3a1 1 0 0 1-1.414 1.415L14 10.414zM9 18a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2H9z" fill="currentColor" fill-rule="evenodd"/></svg>',L.STRING],iconRetry:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M10.81 9.185l-.038.02A4.997 4.997 0 0 0 8 13.683a5 5 0 0 0 5 5 5 5 0 0 0 5-5 1 1 0 0 1 2 0A7 7 0 1 1 9.722 7.496l-.842-.21a.999.999 0 1 1 .484-1.94l3.23.806c.535.133.86.675.73 1.21l-.804 3.233a.997.997 0 0 1-1.21.73.997.997 0 0 1-.73-1.21l.23-.928v-.002z" fill="currentColor" fill-rule="nonzero"/></svg>',L.STRING],iconUndo:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M9.185 10.81l.02-.038A4.997 4.997 0 0 1 13.683 8a5 5 0 0 1 5 5 5 5 0 0 1-5 5 1 1 0 0 0 0 2A7 7 0 1 0 7.496 9.722l-.21-.842a.999.999 0 1 0-1.94.484l.806 3.23c.133.535.675.86 1.21.73l3.233-.803a.997.997 0 0 0 .73-1.21.997.997 0 0 0-1.21-.73l-.928.23-.002-.001z" fill="currentColor" fill-rule="nonzero"/></svg>',L.STRING],iconDone:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M18.293 9.293a1 1 0 0 1 1.414 1.414l-7.002 7a1 1 0 0 1-1.414 0l-3.998-4a1 1 0 1 1 1.414-1.414L12 15.586l6.294-6.293z" fill="currentColor" fill-rule="nonzero"/></svg>',L.STRING],oninit:[null,L.FUNCTION],onwarning:[null,L.FUNCTION],onerror:[null,L.FUNCTION],onactivatefile:[null,L.FUNCTION],oninitfile:[null,L.FUNCTION],onaddfilestart:[null,L.FUNCTION],onaddfileprogress:[null,L.FUNCTION],onaddfile:[null,L.FUNCTION],onprocessfilestart:[null,L.FUNCTION],onprocessfileprogress:[null,L.FUNCTION],onprocessfileabort:[null,L.FUNCTION],onprocessfilerevert:[null,L.FUNCTION],onprocessfile:[null,L.FUNCTION],onprocessfiles:[null,L.FUNCTION],onremovefile:[null,L.FUNCTION],onpreparefile:[null,L.FUNCTION],onupdatefiles:[null,L.FUNCTION],onreorderfiles:[null,L.FUNCTION],beforeDropFile:[null,L.FUNCTION],beforeAddFile:[null,L.FUNCTION],beforeRemoveFile:[null,L.FUNCTION],stylePanelLayout:[null,L.STRING],stylePanelAspectRatio:[null,L.STRING],styleItemPanelAspectRatio:[null,L.STRING],styleButtonRemoveItemPosition:["left",L.STRING],styleButtonProcessItemPosition:["right",L.STRING],styleLoadIndicatorPosition:["right",L.STRING],styleProgressIndicatorPosition:["right",L.STRING],styleButtonRemoveItemAlign:[!1,L.BOOLEAN],files:[[],L.ARRAY]},jr=function(s,a){return Ln(a)?s[0]||null:oi(a)?s[a]||null:("object"==typeof a&&(a=a.id),s.find(function(c){return c.id===a})||null)},_n=function(s){if(Ln(s))return s;if(/:/.test(s)){var a=s.split(":");return a[1]/a[0]}return parseFloat(s)},at=function(s){return s.filter(function(a){return!a.archived})},dr={EMPTY:0,IDLE:1,ERROR:2,BUSY:3,READY:4},Bo=[K.LOAD_ERROR,K.PROCESSING_ERROR,K.PROCESSING_REVERT_ERROR],Vo=[K.LOADING,K.PROCESSING,K.PROCESSING_QUEUED,K.INIT],Dn=[K.PROCESSING_COMPLETE],Od=function(s){return Bo.includes(s.status)},Eg=function(s){return Vo.includes(s.status)},Pd=function(s){return Dn.includes(s.status)},Nd=function(s){return{GET_STATUS:function(){var c=at(s.items),g=dr.ERROR,y=dr.BUSY,v=dr.IDLE,_=dr.READY;return 0===c.length?dr.EMPTY:c.some(Od)?g:c.some(Eg)?y:c.some(Pd)?_:v},GET_ITEM:function(c){return jr(s.items,c)},GET_ACTIVE_ITEM:function(c){return jr(at(s.items),c)},GET_ACTIVE_ITEMS:function(){return at(s.items)},GET_ITEMS:function(){return s.items},GET_ITEM_NAME:function(c){var f=jr(s.items,c);return f?f.filename:null},GET_ITEM_SIZE:function(c){var f=jr(s.items,c);return f?f.fileSize:null},GET_STYLES:function(){return Object.keys(s.options).filter(function(c){return/^style/.test(c)}).map(function(c){return{name:c,value:s.options[c]}})},GET_PANEL_ASPECT_RATIO:function(){return/circle/.test(s.options.stylePanelLayout)?1:_n(s.options.stylePanelAspectRatio)},GET_ITEM_PANEL_ASPECT_RATIO:function(){return s.options.styleItemPanelAspectRatio},GET_ITEMS_BY_STATUS:function(c){return at(s.items).filter(function(f){return f.status===c})},GET_TOTAL_ITEMS:function(){return at(s.items).length},IS_ASYNC:function(){return wt(s.options.server)&&(wt(s.options.server.process)||Fr(s.options.server.process))}}},Fd=function(s,a,c){return Math.max(Math.min(c,s),a)},el=function(s){return/^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*)\s*$/i.test(s)},jo=function(s){return s.split("/").pop().split("?").shift()},fa=function(s){return s.split(".").pop()},Tg=function(s){if("string"!=typeof s)return"";var a=s.split("/").pop();return/svg/.test(a)?"svg":/zip|compressed/.test(a)?"zip":/plain/.test(a)?"txt":/msword/.test(a)?"doc":/[a-z]+/.test(a)?"jpeg"===a?"jpg":a:""},Ho=function(s){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(a+s).slice(-a.length)},Ld=function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return s.getFullYear()+"-"+Ho(s.getMonth()+1,"00")+"-"+Ho(s.getDate(),"00")+"_"+Ho(s.getHours(),"00")+"-"+Ho(s.getMinutes(),"00")+"-"+Ho(s.getSeconds(),"00")},zi=function(s,a){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,g=s.slice(0,s.size,"string"==typeof c?c:s.type);return g.lastModifiedDate=new Date,s._relativePath&&(g._relativePath=s._relativePath),Lt(a)||(a=Ld()),a&&null===f&&fa(a)?g.name=a:(f=f||Tg(g.type),g.name=a+(f?"."+f:"")),g},xd=function(s,a){var c=window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder;if(c){var f=new c;return f.append(s),f.getBlob(a)}return new Blob([s],{type:a})},ha=function(s){return(/^data:(.+);/.exec(s)||[])[1]||null},Cg=function(s){var a=ha(s),c=function(s){return atob(function(s){return s.split(",")[1].replace(/\s/g,"")}(s))}(s);return function(s,a){for(var c=new ArrayBuffer(s.length),f=new Uint8Array(c),g=0;g<s.length;g++)f[g]=s.charCodeAt(g);return xd(c,a)}(c,a)},Hr=function(s){if(!/^content-disposition:/i.test(s))return null;var a=s.split(/filename=|filename\*=.+''/).splice(1).map(function(c){return c.trim().replace(/^["']|[;"']{0,2}$/g,"")}).filter(function(c){return c.length});return a.length?decodeURI(a[a.length-1]):null},tl=function(s){if(/content-length:/i.test(s)){var a=s.match(/[0-9]+/)[0];return a?parseInt(a,10):null}return null},ci=function(s){return/x-content-transfer-id:/i.test(s)&&(s.split(":")[1]||"").trim()||null},Uo=function(s){var a={source:null,name:null,size:null},c=s.split("\n"),f=!0,g=!1,y=void 0;try{for(var _,v=c[Symbol.iterator]();!(f=(_=v.next()).done);f=!0){var I=_.value,T=Hr(I);if(T)a.name=T;else{var C=tl(I);if(C)a.size=C;else{var S=ci(I);S&&(a.source=S)}}}}catch(N){g=!0,y=N}finally{try{!f&&null!=v.return&&v.return()}finally{if(g)throw y}}return a},kd=function(s){var a={source:null,complete:!1,progress:0,size:null,timestamp:null,duration:0,request:null},y=function(I){s?(a.timestamp=Date.now(),a.request=s(I,function(T){a.duration=Date.now()-a.timestamp,a.complete=!0,T instanceof Blob&&(T=zi(T,T.name||jo(I))),v.fire("load",T instanceof Blob?T:T?T.body:null)},function(T){v.fire("error","string"==typeof T?{type:"error",code:0,body:T}:T)},function(T,C,S){S&&(a.size=S),a.duration=Date.now()-a.timestamp,T?(a.progress=C/S,v.fire("progress",a.progress)):a.progress=null},function(){v.fire("abort")},function(T){var C=Uo("string"==typeof T?T:T.headers);v.fire("meta",{size:a.size||C.size,filename:C.name,source:C.source})})):v.fire("error",{type:"error",body:"Can't load URL",code:400})},v=Object.assign({},Ke(),{setSource:function(I){return a.source=I},getProgress:function(){return a.progress},abort:function(){a.request&&a.request.abort&&a.request.abort()},load:function(){var I=a.source;v.fire("init",I),I instanceof File?v.fire("load",I):I instanceof Blob?v.fire("load",zi(I,I.name)):el(I)?v.fire("load",function(s,a,c){return zi(Cg(s),a,null,c)}(I)):y(I)}});return v},nl=function(s){return/GET|HEAD/.test(s)},fr=function(s,a,c){var f={onheaders:function(){},onprogress:function(){},onload:function(){},ontimeout:function(){},onerror:function(){},onabort:function(){},abort:function(){g=!0,v.abort()}},g=!1,y=!1;c=Object.assign({method:"POST",headers:{},withCredentials:!1},c),a=encodeURI(a),nl(c.method)&&s&&(a=""+a+encodeURIComponent("string"==typeof s?s:JSON.stringify(s)));var v=new XMLHttpRequest;return(nl(c.method)?v:v.upload).onprogress=function(I){g||f.onprogress(I.lengthComputable,I.loaded,I.total)},v.onreadystatechange=function(){v.readyState<2||4===v.readyState&&0===v.status||y||(y=!0,f.onheaders(v))},v.onload=function(){v.status>=200&&v.status<300?f.onload(v):f.onerror(v)},v.onerror=function(){return f.onerror(v)},v.onabort=function(){g=!0,f.onabort()},v.ontimeout=function(){return f.ontimeout(v)},v.open(c.method,a,!0),oi(c.timeout)&&(v.timeout=c.timeout),Object.keys(c.headers).forEach(function(I){var T=unescape(encodeURIComponent(c.headers[I]));v.setRequestHeader(I,T)}),c.responseType&&(v.responseType=c.responseType),c.withCredentials&&(v.withCredentials=!0),v.send(s),f},ut=function(s,a,c,f){return{type:s,code:a,body:c,headers:f}},Ur=function(s){return function(a){s(ut("error",0,"Timeout",a.getAllResponseHeaders()))}},Go=function(s){return/\?/.test(s)},qi=function(){for(var s="",a=arguments.length,c=new Array(a),f=0;f<a;f++)c[f]=arguments[f];return c.forEach(function(g){s+=Go(s)&&Go(g)?g.replace(/\?/,"&"):g}),s},Wt=function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",a=arguments.length>1?arguments[1]:void 0;if("function"==typeof a)return a;if(!a||!Lt(a.url))return null;var c=a.onload||function(g){return g},f=a.onerror||function(g){return null};return function(g,y,v,_,I,T){var C=fr(g,qi(s,a.url),Object.assign({},a,{responseType:"blob"}));return C.onload=function(S){var N=S.getAllResponseHeaders(),k=Uo(N).name||jo(g);y(ut("load",S.status,"HEAD"===a.method?null:zi(c(S.response),k),N))},C.onerror=function(S){v(ut("error",S.status,f(S.response)||S.statusText,S.getAllResponseHeaders()))},C.onheaders=function(S){T(ut("headers",S.status,null,S.getAllResponseHeaders()))},C.ontimeout=Ur(v),C.onprogress=_,C.onabort=I,C}},Yt_QUEUED=0,Yt_COMPLETE=1,Yt_PROCESSING=2,Yt_ERROR=3,Yt_WAITING=4,Bd=function(s,a,c,f,g,y,v,_,I,T,C){for(var S=[],k=C.chunkServer,H=C.chunkSize,P=C.chunkRetryDelays,B={serverId:C.chunkTransferId,aborted:!1},$=a.ondata||function(x){return x},ne=a.onload||function(x,A){return"HEAD"===A?x.getResponseHeader("Upload-Offset"):x.response},j=a.onerror||function(x){return null},Ve=Math.floor(f.size/H),xe=0;xe<=Ve;xe++){var q=xe*H,te=f.slice(q,q+H,"application/offset+octet-stream");S[xe]={index:xe,size:te.size,offset:q,data:te,file:f,progress:0,retries:wd(P),status:Yt_QUEUED,error:null,request:null,timeout:null}}var A,Q,ge,Ce,z=function(A){return A.status===Yt_QUEUED||A.status===Yt_ERROR},ee=function(A){if(!B.aborted){if(!(A=A||S.find(z)))return void(S.every(function(Oe){return Oe.status===Yt_COMPLETE})&&y(B.serverId));A.status=Yt_PROCESSING,A.progress=null;var Q=k.ondata||function(Oe){return Oe},fe=k.onerror||function(Oe){return null},ge=qi(s,k.url,B.serverId),Ce="function"==typeof k.headers?k.headers(A):Object.assign({},k.headers,{"Content-Type":"application/offset+octet-stream","Upload-Offset":A.offset,"Upload-Length":f.size,"Upload-Name":f.name}),_e=A.request=fr(Q(A.data),ge,Object.assign({},k,{headers:Ce}));_e.onload=function(){A.status=Yt_COMPLETE,A.request=null,ke()},_e.onprogress=function(Oe,Kn,_r){A.progress=Oe?Kn:null,je()},_e.onerror=function(Oe){A.status=Yt_ERROR,A.request=null,A.error=fe(Oe.response)||Oe.statusText,oe(A)||v(ut("error",Oe.status,fe(Oe.response)||Oe.statusText,Oe.getAllResponseHeaders()))},_e.ontimeout=function(Oe){A.status=Yt_ERROR,A.request=null,oe(A)||Ur(v)(Oe)},_e.onabort=function(){A.status=Yt_QUEUED,A.request=null,I()}}},oe=function(A){return 0!==A.retries.length&&(A.status=Yt_WAITING,clearTimeout(A.timeout),A.timeout=setTimeout(function(){ee(A)},A.retries.shift()),!0)},je=function(){var A=S.reduce(function(fe,ge){return null===fe||null===ge.progress?null:fe+ge.progress},0);if(null===A)return _(!1,0,0);var Q=S.reduce(function(fe,ge){return fe+ge.size},0);_(!0,A,Q)},ke=function(){S.filter(function(Q){return Q.status===Yt_PROCESSING}).length>=1||ee()};return B.serverId?(A=function(x){B.aborted||(S.filter(function(A){return A.offset<x}).forEach(function(A){A.status=Yt_COMPLETE,A.progress=A.size}),ke())},Q=qi(s,k.url,B.serverId),ge={headers:"function"==typeof a.headers?a.headers(B.serverId):Object.assign({},a.headers),method:"HEAD"},(Ce=fr(null,Q,ge)).onload=function(_e){return A(ne(_e,ge.method))},Ce.onerror=function(_e){return v(ut("error",_e.status,j(_e.response)||_e.statusText,_e.getAllResponseHeaders()))},Ce.ontimeout=Ur(v)):function(A){var Q=new FormData;wt(g)&&Q.append(c,JSON.stringify(g));var fe="function"==typeof a.headers?a.headers(f,g):Object.assign({},a.headers,{"Upload-Length":f.size}),ge=Object.assign({},a,{headers:fe}),Ce=fr($(Q),qi(s,a.url),ge);Ce.onload=function(_e){return A(ne(_e,ge.method))},Ce.onerror=function(_e){return v(ut("error",_e.status,j(_e.response)||_e.statusText,_e.getAllResponseHeaders()))},Ce.ontimeout=Ur(v)}(function(x){B.aborted||(T(x),B.serverId=x,ke())}),{abort:function(){B.aborted=!0,S.forEach(function(A){clearTimeout(A.timeout),A.request&&A.request.abort()})}}},ga=function(s,a,c,f){return function(g,y,v,_,I,T,C){if(g){var S=f.chunkUploads;if(g instanceof Blob&&S&&(S&&g.size>f.chunkSize||f.chunkForce))return Bd(s,a,c,g,y,v,_,I,T,C,f);var H=a.ondata||function(j){return j},P=a.onload||function(j){return j},B=a.onerror||function(j){return null},$=new FormData;wt(y)&&$.append(c,JSON.stringify(y)),(g instanceof Blob?[{name:null,file:g}]:g).forEach(function(j){$.append(c,j.file,null===j.name?j.file.name:""+j.name+j.file.name)});var ne=fr(H($),qi(s,a.url),a);return ne.onload=function(j){v(ut("load",j.status,P(j.response),j.getAllResponseHeaders()))},ne.onerror=function(j){_(ut("error",j.status,B(j.response)||j.statusText,j.getAllResponseHeaders()))},ne.ontimeout=Ur(_),ne.onprogress=I,ne.onabort=T,ne}}},Wi=function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",a=arguments.length>1?arguments[1]:void 0;if("function"==typeof a)return a;if(!a||!Lt(a.url))return function(g,y){return y()};var c=a.onload||function(g){return g},f=a.onerror||function(g){return null};return function(g,y,v){var _=fr(g,s+a.url,a);return _.onload=function(I){y(ut("load",I.status,c(I.response),I.getAllResponseHeaders()))},_.onerror=function(I){v(ut("error",I.status,f(I.response)||I.statusText,I.getAllResponseHeaders()))},_.ontimeout=Ur(v),_}},$o=function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return s+Math.random()*(a-s)},ma=function(s){var a={complete:!1,perceivedProgress:0,perceivedPerformanceUpdater:null,progress:null,timestamp:null,perceivedDuration:0,duration:0,request:null,response:null},f=function(){!a.request||(a.perceivedPerformanceUpdater.clear(),a.request.abort&&a.request.abort(),a.complete=!0)},_=Object.assign({},Ke(),{process:function(T,C){var S=function(){0===a.duration||null===a.progress||_.fire("progress",_.getProgress())},N=function(){a.complete=!0,_.fire("load-perceived",a.response.body)};_.fire("start"),a.timestamp=Date.now(),a.perceivedPerformanceUpdater=function(s){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:25,g=arguments.length>4&&void 0!==arguments[4]?arguments[4]:250,y=null,v=Date.now();return function I(){var T=Date.now()-v,C=$o(f,g);T+C>a&&(C=T+C-a);var S=T/a;S>=1||document.hidden?s(1):(s(S),y=setTimeout(I,C))}(),{clear:function(){clearTimeout(y)}}}(function(k){a.perceivedProgress=k,a.perceivedDuration=Date.now()-a.timestamp,S(),a.response&&1===a.perceivedProgress&&!a.complete&&N()},$o(750,1500)),a.request=s(T,C,function(k){a.response=wt(k)?k:{type:"load",code:200,body:""+k,headers:{}},a.duration=Date.now()-a.timestamp,a.progress=1,_.fire("load",a.response.body),1===a.perceivedProgress&&N()},function(k){a.perceivedPerformanceUpdater.clear(),_.fire("error",wt(k)?k:{type:"error",code:0,body:""+k})},function(k,H,P){a.duration=Date.now()-a.timestamp,a.progress=k?H/P:null,S()},function(){a.perceivedPerformanceUpdater.clear(),_.fire("abort",a.response?a.response.body:null)},function(k){_.fire("transfer",k)})},abort:f,getProgress:function(){return a.progress?Math.min(a.progress,a.perceivedProgress):null},getDuration:function(){return Math.min(a.duration,a.perceivedDuration)},reset:function(){f(),a.complete=!1,a.perceivedProgress=0,a.progress=0,a.timestamp=null,a.perceivedDuration=0,a.duration=0,a.request=null,a.response=null}});return _},Hd=function(s){return s.substr(0,s.lastIndexOf("."))||s},it=function(s){var a=[s.name,s.size,s.type];return s instanceof Blob||el(s)?a[0]=s.name||Ld():el(s)?(a[1]=s.length,a[2]=ha(s)):Lt(s)&&(a[0]=jo(s),a[1]=0,a[2]="application/octet-stream"),{name:a[0],size:a[1],type:a[2]}},Gr=function(s){return!!(s instanceof File||s instanceof Blob&&s.name)},Ud=function h(s){if(!wt(s))return s;var a=Ao(s)?[]:{};for(var c in s)if(s.hasOwnProperty(c)){var f=s[c];a[c]=f&&wt(f)?h(f):f}return a},$d=function(s,a){var c=function(s,a){return Ln(a)?0:Lt(a)?s.findIndex(function(c){return c.id===a}):-1}(s,a);if(!(c<0))return s[c]||null},Yi=function(s,a,c,f,g,y){var v=fr(null,s,{method:"GET",responseType:"blob"});return v.onload=function(_){var I=_.getAllResponseHeaders(),T=Uo(I).name||jo(s);a(ut("load",_.status,zi(_.response,T),I))},v.onerror=function(_){c(ut("error",_.status,_.statusText,_.getAllResponseHeaders()))},v.onheaders=function(_){y(ut("headers",_.status,null,_.getAllResponseHeaders()))},v.ontimeout=Ur(c),v.onprogress=f,v.onabort=g,v},Qt=function(s){return 0===s.indexOf("//")&&(s=location.protocol+s),s.toLowerCase().replace("blob:","").replace(/([a-z])?:\/\//,"$1").split("/")[0]},di=function(s){return function(){return Fr(s)?s.apply(void 0,arguments):s}},kt=function(s,a){clearTimeout(a.listUpdateTimeout),a.listUpdateTimeout=setTimeout(function(){s("DID_UPDATE_ITEMS",{items:at(a.items)})},0)},ya=function(s){for(var a=arguments.length,c=new Array(a>1?a-1:0),f=1;f<a;f++)c[f-1]=arguments[f];return new Promise(function(g){if(!s)return g(!0);var y=s.apply(void 0,c);return null==y?g(!0):"boolean"==typeof y?g(y):void("function"==typeof y.then&&y.then(g))})},Qi=function(s,a){s.items.sort(function(c,f){return a(Be(c),Be(f))})},cn=function(s,a){return function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},f=c.query,g=c.success,y=void 0===g?function(){}:g,v=c.failure,_=void 0===v?function(){}:v,I=Ku(c,["query","success","failure"]),T=jr(s.items,f);T?a(T,y,_,I||{}):_({error:ut("error",0,"Item not found"),file:null})}},hr=function(s,a,c){return{ABORT_ALL:function(){at(c.items).forEach(function(g){g.freeze(),g.abortLoad(),g.abortProcessing()})},DID_SET_FILES:function(g){var y=g.value,_=(void 0===y?[]:y).map(function(T){return{source:T.source?T.source:T,options:T.options}}),I=at(c.items);I.forEach(function(T){_.find(function(C){return C.source===T.source||C.source===T.file})||s("REMOVE_ITEM",{query:T,remove:!1})}),I=at(c.items),_.forEach(function(T,C){I.find(function(S){return S.source===T.source||S.file===T.source})||s("ADD_ITEM",Object.assign({},T,{interactionMethod:mn_NONE,index:C}))})},DID_UPDATE_ITEM_METADATA:function(g){var y=g.id;clearTimeout(c.itemUpdateTimeout),c.itemUpdateTimeout=setTimeout(function(){var S,v=$d(c.items,y);if(a("IS_ASYNC")){var _=function(){setTimeout(function(){s("REQUEST_ITEM_PROCESSING",{query:y})},32)};return v.status===K.PROCESSING_COMPLETE?(S=c.options.instantUpload,void v.revert(Wi(c.options.server.url,c.options.server.revert),a("GET_FORCE_REVERT")).then(S?_:function(){}).catch(function(){})):v.status===K.PROCESSING?function(S){v.abortProcessing().then(S?_:function(){})}(c.options.instantUpload):void(c.options.instantUpload&&_())}Jt("SHOULD_PREPARE_OUTPUT",!1,{item:v,query:a}).then(function(C){!C||s("REQUEST_PREPARE_OUTPUT",{query:y,item:v,success:function(N){s("DID_PREPARE_OUTPUT",{id:y,file:N})}},!0)})},0)},MOVE_ITEM:function(g){var v=g.index,_=jr(c.items,g.query);if(_){var I=c.items.indexOf(_);I!==(v=Fd(v,0,c.items.length-1))&&c.items.splice(v,0,c.items.splice(I,1)[0])}},SORT:function(g){Qi(c,g.compare),s("DID_SORT_ITEMS",{items:a("GET_ACTIVE_ITEMS")})},ADD_ITEMS:function(g){var y=g.items,v=g.index,_=g.interactionMethod,I=g.success,T=void 0===I?function(){}:I,C=g.failure,S=void 0===C?function(){}:C,N=v;if(-1===v||void 0===v){var k=a("GET_ITEM_INSERT_LOCATION"),H=a("GET_TOTAL_ITEMS");N="before"===k?0:H}var P=a("GET_IGNORED_FILES"),ne=y.filter(function(Re){return Gr(Re)?!P.includes(Re.name.toLowerCase()):!Ln(Re)}).map(function(j){return new Promise(function(Re,ae){s("ADD_ITEM",{interactionMethod:_,source:j.source||j,success:Re,failure:ae,index:N++,options:j.options||{}})})});Promise.all(ne).then(T).catch(S)},ADD_ITEM:function(g){var y=g.source,v=g.index,_=void 0===v?-1:v,I=g.interactionMethod,T=g.success,C=void 0===T?function(){}:T,S=g.failure,N=void 0===S?function(){}:S,k=g.options,H=void 0===k?{}:k;if(Ln(y))N({error:ut("error",0,"No source"),file:null});else if(!Gr(y)||!c.options.ignoredFiles.includes(y.name.toLowerCase())){if(!function(s){var a=at(s.items).length;if(!s.options.allowMultiple)return 0===a;var c=s.options.maxFiles;return null===c||a<c}(c)){if(c.options.allowMultiple||!c.options.allowMultiple&&!c.options.allowReplace){var P=ut("warning",0,"Max files");return s("DID_THROW_MAX_FILES",{source:y,error:P}),void N({error:P,file:null})}var B=at(c.items)[0];if(B.status===K.PROCESSING_COMPLETE||B.status===K.PROCESSING_REVERT_ERROR){var $=a("GET_FORCE_REVERT");if(B.revert(Wi(c.options.server.url,c.options.server.revert),$).then(function(){!$||s("ADD_ITEM",{source:y,index:_,interactionMethod:I,success:C,failure:N,options:H})}).catch(function(){}),$)return}s("REMOVE_ITEM",{query:B.id})}var ne="local"===H.type?yt.LOCAL:"limbo"===H.type?yt.LIMBO:yt.INPUT,j=function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,f=Y(),g={archived:!1,frozen:!1,released:!1,source:null,file:c,serverFileReference:a,transferId:null,processingAborted:!1,status:a?K.PROCESSING_COMPLETE:K.INIT,activeLoader:null,activeProcessor:null},y=null,v={},_=function(te){return g.status=te},I=function(te){if(!g.released&&!g.frozen){for(var re=arguments.length,z=new Array(re>1?re-1:0),ee=1;ee<re;ee++)z[ee-1]=arguments[ee];Ve.fire.apply(Ve,[te].concat(z))}},B=function q(te,re){if(g.processingAborted)g.processingAborted=!1;else if(_(K.PROCESSING),y=null,g.file instanceof Blob){te.on("load",function(oe){g.transferId=null,g.serverFileReference=oe}),te.on("transfer",function(oe){g.transferId=oe}),te.on("load-perceived",function(oe){g.activeProcessor=null,g.transferId=null,g.serverFileReference=oe,_(K.PROCESSING_COMPLETE),I("process-complete",oe)}),te.on("start",function(){I("process-start")}),te.on("error",function(oe){g.activeProcessor=null,_(K.PROCESSING_ERROR),I("process-error",oe)}),te.on("abort",function(oe){g.activeProcessor=null,g.transferId=null,g.serverFileReference=oe,_(K.IDLE),I("process-abort"),y&&y()}),te.on("progress",function(oe){I("process-progress",oe)});var ee=console.error;re(g.file,function(je){g.archived||te.process(je,Object.assign({},v))},ee),g.activeProcessor=te}else Ve.on("load",function(){q(te,re)})},Re=function(te,re,z){var ee=te.split("."),oe=ee[0],je=ee.pop(),ke=v;ee.forEach(function(se){return ke=ke[se]}),JSON.stringify(ke[je])!==JSON.stringify(re)&&(ke[je]=re,!z&&I("metadata-update",{key:oe,value:v[oe]}))},Ve=Object.assign({id:{get:function(){return f}},origin:{get:function(){return s}},serverId:{get:function(){return g.serverFileReference}},transferId:{get:function(){return g.transferId}},status:{get:function(){return g.status}},filename:{get:function(){return g.file.name}},filenameWithoutExtension:{get:function(){return Hd(g.file.name)}},fileExtension:{get:function(){return fa(g.file.name)}},fileType:{get:function(){return g.file.type}},fileSize:{get:function(){return g.file.size}},file:{get:function(){return g.file}},relativePath:{get:function(){return g.file._relativePath}},source:{get:function(){return g.source}},getMetadata:function(te){return Ud(te?v[te]:v)},setMetadata:function(te,re,z){if(wt(te)){var ee=te;return Object.keys(ee).forEach(function(oe){Re(oe,ee[oe],re)}),te}return Re(te,re,z),re},extend:function(te,re){return xe[te]=re},abortLoad:function(){g.activeLoader?g.activeLoader.abort():(_(K.INIT),I("load-abort"))},retryLoad:function(){!g.activeLoader||g.activeLoader.load()},requestProcessing:function(){g.processingAborted=!1,_(K.PROCESSING_QUEUED)},abortProcessing:function(){return new Promise(function(te){if(!g.activeProcessor)return g.processingAborted=!0,_(K.IDLE),I("process-abort"),void te();y=function(){te()},g.activeProcessor.abort()})},load:function(te,re,z){g.source=te,Ve.fireSync("init"),g.file?Ve.fireSync("load-skip"):(g.file=it(te),re.on("init",function(){I("load-init")}),re.on("meta",function(ee){g.file.size=ee.size,g.file.filename=ee.filename,ee.source&&(s=yt.LIMBO,g.serverFileReference=ee.source,g.status=K.PROCESSING_COMPLETE),I("load-meta")}),re.on("progress",function(ee){_(K.LOADING),I("load-progress",ee)}),re.on("error",function(ee){_(K.LOAD_ERROR),I("load-request-error",ee)}),re.on("abort",function(){_(K.INIT),I("load-abort")}),re.on("load",function(ee){g.activeLoader=null;var oe=function(se){g.file=Gr(se)?se:g.file,_(s===yt.LIMBO&&g.serverFileReference?K.PROCESSING_COMPLETE:K.IDLE),I("load")};g.serverFileReference?oe(ee):z(ee,oe,function(se){g.file=ee,I("load-meta"),_(K.LOAD_ERROR),I("load-file-error",se)})}),re.setSource(te),g.activeLoader=re,re.load())},process:B,revert:function(te,re){return new Promise(function(z,ee){null!==g.serverFileReference?(te(g.serverFileReference,function(){g.serverFileReference=null,z()},function(oe){re?(_(K.PROCESSING_REVERT_ERROR),I("process-revert-error"),ee(oe)):z()}),_(K.IDLE),I("process-revert")):z()})}},Ke(),{freeze:function(){return g.frozen=!0},release:function(){return g.released=!0},released:{get:function(){return g.released}},archive:function(){return g.archived=!0},archived:{get:function(){return g.archived}}}),xe=Ge(Ve);return xe}(ne,ne===yt.INPUT?null:y,H.file);Object.keys(H.metadata||{}).forEach(function(z){j.setMetadata(z,H.metadata[z])}),st("DID_CREATE_ITEM",j,{query:a,dispatch:s});var Re=a("GET_ITEM_INSERT_LOCATION");c.options.itemInsertLocationFreedom||(_="before"===Re?-1:c.items.length),function(s,a,c){Ln(a)||(void 0===c?s.push(a):function(s,a,c){s.splice(a,0,c)}(s,c=Fd(c,0,s.length),a))}(c.items,j,_),Fr(Re)&&y&&Qi(c,Re);var ae=j.id;j.on("init",function(){s("DID_INIT_ITEM",{id:ae})}),j.on("load-init",function(){s("DID_START_ITEM_LOAD",{id:ae})}),j.on("load-meta",function(){s("DID_UPDATE_ITEM_META",{id:ae})}),j.on("load-progress",function(z){s("DID_UPDATE_ITEM_LOAD_PROGRESS",{id:ae,progress:z})}),j.on("load-request-error",function(z){var ee=di(c.options.labelFileLoadError)(z);if(z.code>=400&&z.code<500)return s("DID_THROW_ITEM_INVALID",{id:ae,error:z,status:{main:ee,sub:z.code+" ("+z.body+")"}}),void N({error:z,file:Be(j)});s("DID_THROW_ITEM_LOAD_ERROR",{id:ae,error:z,status:{main:ee,sub:c.options.labelTapToRetry}})}),j.on("load-file-error",function(z){s("DID_THROW_ITEM_INVALID",{id:ae,error:z.status,status:z.status}),N({error:z.status,file:Be(j)})}),j.on("load-abort",function(){s("REMOVE_ITEM",{query:ae})}),j.on("load-skip",function(){s("COMPLETE_LOAD_ITEM",{query:ae,item:j,data:{source:y,success:C}})}),j.on("load",function(){var z=function(oe){oe?(j.on("metadata-update",function(je){s("DID_UPDATE_ITEM_METADATA",{id:ae,change:je})}),Jt("SHOULD_PREPARE_OUTPUT",!1,{item:j,query:a}).then(function(je){var ke=function(){s("COMPLETE_LOAD_ITEM",{query:ae,item:j,data:{source:y,success:C}}),kt(s,c)};je?s("REQUEST_PREPARE_OUTPUT",{query:ae,item:j,success:function(x){s("DID_PREPARE_OUTPUT",{id:ae,file:x}),ke()}},!0):ke()})):s("REMOVE_ITEM",{query:ae})};Jt("DID_LOAD_ITEM",j,{query:a,dispatch:s}).then(function(){ya(a("GET_BEFORE_ADD_FILE"),Be(j)).then(z)}).catch(function(){z(!1)})}),j.on("process-start",function(){s("DID_START_ITEM_PROCESSING",{id:ae})}),j.on("process-progress",function(z){s("DID_UPDATE_ITEM_PROCESS_PROGRESS",{id:ae,progress:z})}),j.on("process-error",function(z){s("DID_THROW_ITEM_PROCESSING_ERROR",{id:ae,error:z,status:{main:di(c.options.labelFileProcessingError)(z),sub:c.options.labelTapToRetry}})}),j.on("process-revert-error",function(z){s("DID_THROW_ITEM_PROCESSING_REVERT_ERROR",{id:ae,error:z,status:{main:di(c.options.labelFileProcessingRevertError)(z),sub:c.options.labelTapToRetry}})}),j.on("process-complete",function(z){s("DID_COMPLETE_ITEM_PROCESSING",{id:ae,error:null,serverFileReference:z}),s("DID_DEFINE_VALUE",{id:ae,value:z})}),j.on("process-abort",function(){s("DID_ABORT_ITEM_PROCESSING",{id:ae})}),j.on("process-revert",function(){s("DID_REVERT_ITEM_PROCESSING",{id:ae}),s("DID_DEFINE_VALUE",{id:ae,value:null})}),s("DID_ADD_ITEM",{id:ae,index:_,interactionMethod:I}),kt(s,c);var Ve=c.options.server||{},xe=Ve.url,q=Ve.load,te=Ve.restore,re=Ve.fetch;j.load(y,kd(ne===yt.INPUT?Lt(y)&&function(s){return(s.indexOf(":")>-1||s.indexOf("//")>-1)&&Qt(location.href)!==Qt(s)}(y)&&re?Wt(xe,re):Yi:Wt(xe,ne===yt.LIMBO?te:q)),function(z,ee,oe){Jt("LOAD_FILE",z,{query:a}).then(ee).catch(oe)})}},REQUEST_PREPARE_OUTPUT:function(g){var y=g.item,v=g.success,_=g.failure,I=void 0===_?function(){}:_,T={error:ut("error",0,"Item not found"),file:null};if(y.archived)return I(T);Jt("PREPARE_OUTPUT",y.file,{query:a,item:y}).then(function(C){Jt("COMPLETE_PREPARE_OUTPUT",C,{query:a,item:y}).then(function(S){if(y.archived)return I(T);v(S)})})},COMPLETE_LOAD_ITEM:function(g){var y=g.item,v=g.data,_=v.success,I=v.source,T=a("GET_ITEM_INSERT_LOCATION");if(Fr(T)&&I&&Qi(c,T),s("DID_LOAD_ITEM",{id:y.id,error:null,serverFileReference:y.origin===yt.INPUT?null:I}),_(Be(y)),y.origin!==yt.LOCAL)return y.origin===yt.LIMBO?(s("DID_COMPLETE_ITEM_PROCESSING",{id:y.id,error:null,serverFileReference:I}),void s("DID_DEFINE_VALUE",{id:y.id,value:I})):void(a("IS_ASYNC")&&c.options.instantUpload&&s("REQUEST_ITEM_PROCESSING",{query:y.id}));s("DID_LOAD_LOCAL_ITEM",{id:y.id})},RETRY_ITEM_LOAD:cn(c,function(f){f.retryLoad()}),REQUEST_ITEM_PREPARE:cn(c,function(f,g,y){s("REQUEST_PREPARE_OUTPUT",{query:f.id,item:f,success:function(_){s("DID_PREPARE_OUTPUT",{id:f.id,file:_}),g({file:f,output:_})},failure:y},!0)}),REQUEST_ITEM_PROCESSING:cn(c,function(f,g,y){if(f.status===K.IDLE||f.status===K.PROCESSING_ERROR)f.status!==K.PROCESSING_QUEUED&&(f.requestProcessing(),s("DID_REQUEST_ITEM_PROCESSING",{id:f.id}),s("PROCESS_ITEM",{query:f,success:g,failure:y},!0));else{var _=function(){return s("REQUEST_ITEM_PROCESSING",{query:f,success:g,failure:y})},I=function(){return document.hidden?_():setTimeout(_,32)};f.status===K.PROCESSING_COMPLETE||f.status===K.PROCESSING_REVERT_ERROR?f.revert(Wi(c.options.server.url,c.options.server.revert),a("GET_FORCE_REVERT")).then(I).catch(function(){}):f.status===K.PROCESSING&&f.abortProcessing().then(I)}}),PROCESS_ITEM:cn(c,function(f,g,y){var v=a("GET_MAX_PARALLEL_UPLOADS");if(a("GET_ITEMS_BY_STATUS",K.PROCESSING).length!==v){if(f.status!==K.PROCESSING){var I=function C(){var S=c.processingQueue.shift();if(S){var N=S.id,k=S.success,H=S.failure,P=jr(c.items,N);if(!P||P.archived)return void C();s("PROCESS_ITEM",{query:N,success:k,failure:H},!0)}};f.onOnce("process-complete",function(){g(Be(f)),I(),a("GET_ITEMS_BY_STATUS",K.PROCESSING_COMPLETE).length===c.items.length&&s("DID_COMPLETE_ITEM_PROCESSING_ALL")}),f.onOnce("process-error",function(C){y({error:C,file:Be(f)}),I()});var T=c.options;f.process(ma(function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",a=arguments.length>1?arguments[1]:void 0,c=arguments.length>2?arguments[2]:void 0,f=arguments.length>3?arguments[3]:void 0;return"function"==typeof a?function(){for(var g=arguments.length,y=new Array(g),v=0;v<g;v++)y[v]=arguments[v];return a.apply(void 0,[c].concat(y,[f]))}:a&&Lt(a.url)?ga(s,a,c,f):null}(T.server.url,T.server.process,T.name,{chunkTransferId:f.transferId,chunkServer:T.server.patch,chunkUploads:T.chunkUploads,chunkForce:T.chunkForce,chunkSize:T.chunkSize,chunkRetryDelays:T.chunkRetryDelays})),function(C,S,N){Jt("PREPARE_OUTPUT",C,{query:a,item:f}).then(function(k){s("DID_PREPARE_OUTPUT",{id:f.id,file:k}),S(k)}).catch(N)})}}else c.processingQueue.push({id:f.id,success:g,failure:y})}),RETRY_ITEM_PROCESSING:cn(c,function(f){s("REQUEST_ITEM_PROCESSING",{query:f})}),REQUEST_REMOVE_ITEM:cn(c,function(f){ya(a("GET_BEFORE_REMOVE_FILE"),Be(f)).then(function(g){!g||s("REMOVE_ITEM",{query:f})})}),RELEASE_ITEM:cn(c,function(f){f.release()}),REMOVE_ITEM:cn(c,function(f,g,y,v){var _=function(){var C=f.id;$d(c.items,C).archive(),s("DID_REMOVE_ITEM",{error:null,id:C,item:f}),kt(s,c),g(Be(f))},I=c.options.server;f.origin===yt.LOCAL&&I&&Fr(I.remove)&&!1!==v.remove?(s("DID_START_ITEM_REMOVE",{id:f.id}),I.remove(f.source,function(){return _()},function(T){s("DID_THROW_ITEM_REMOVE_ERROR",{id:f.id,error:ut("error",0,T,null),status:{main:di(c.options.labelFileRemoveError)(T),sub:c.options.labelTapToRetry}})})):(v.revert&&f.origin!==yt.LOCAL&&null!==f.serverId&&f.revert(Wi(c.options.server.url,c.options.server.revert),a("GET_FORCE_REVERT")),_())}),ABORT_ITEM_LOAD:cn(c,function(f){f.abortLoad()}),ABORT_ITEM_PROCESSING:cn(c,function(f){f.serverId?s("REVERT_ITEM_PROCESSING",{id:f.id}):f.abortProcessing().then(function(){c.options.instantUpload&&s("REMOVE_ITEM",{query:f.id})})}),REQUEST_REVERT_ITEM_PROCESSING:cn(c,function(f){if(c.options.instantUpload){var g=function(I){!I||s("REVERT_ITEM_PROCESSING",{query:f})},y=a("GET_BEFORE_REMOVE_FILE");if(!y)return g(!0);var v=y(Be(f));return null==v?g(!0):"boolean"==typeof v?g(v):void("function"==typeof v.then&&v.then(g))}s("REVERT_ITEM_PROCESSING",{query:f})}),REVERT_ITEM_PROCESSING:cn(c,function(f){f.revert(Wi(c.options.server.url,c.options.server.revert),a("GET_FORCE_REVERT")).then(function(){(c.options.instantUpload||function(s){return!Gr(s.file)}(f))&&s("REMOVE_ITEM",{query:f.id})}).catch(function(){})}),SET_OPTIONS:function(g){Ee(g.options,function(v,_){s("SET_"+Ro(v,"_").toUpperCase(),{value:_})})}}},In=function(s){return document.createElement(s)},Z=function(s,a){var c=s.childNodes[0];c?a!==c.nodeValue&&(c.nodeValue=a):(c=document.createTextNode(a),s.appendChild(c))},va=function(s,a,c,f){var g=(f%360-90)*Math.PI/180;return{x:s+c*Math.cos(g),y:a+c*Math.sin(g)}},qd=function(s,a,c,f,g){var y=1;return g>f&&g-f<=.5&&(y=0),f>g&&f-g>=.5&&(y=0),function(s,a,c,f,g,y){var v=va(s,a,c,g),_=va(s,a,c,f);return["M",v.x,v.y,"A",c,c,0,y,0,_.x,_.y].join(" ")}(s,a,c,360*Math.min(.9999,f),360*Math.min(.9999,g),y)},Ea=ht({tag:"div",name:"progress-indicator",ignoreRectUpdate:!0,ignoreRect:!0,create:function(s){var a=s.root,c=s.props;c.spin=!1,c.progress=0,c.opacity=0;var f=rt("svg");a.ref.path=rt("path",{"stroke-width":2,"stroke-linecap":"round"}),f.appendChild(a.ref.path),a.ref.svg=f,a.appendChild(f)},write:function(s){var a=s.root,c=s.props;if(0!==c.opacity){c.align&&(a.element.dataset.align=c.align);var f=parseInt(Ie(a.ref.path,"stroke-width"),10),g=.5*a.rect.element.width,y=0,v=0;c.spin?(y=0,v=.5):(y=0,v=c.progress);var _=qd(g,g,g-f,y,v);Ie(a.ref.path,"d",_),Ie(a.ref.path,"stroke-opacity",c.spin||c.progress>0?1:0)}},mixins:{apis:["progress","spin","align"],styles:["opacity"],animations:{opacity:{type:"tween",duration:500},progress:{type:"spring",stiffness:.95,damping:.65,mass:10}}}}),F=ht({tag:"button",attributes:{type:"button"},ignoreRect:!0,ignoreRectUpdate:!0,name:"file-action-button",mixins:{apis:["label"],styles:["translateX","translateY","scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",translateX:"spring",translateY:"spring",opacity:{type:"tween",duration:250}},listeners:!0},create:function(s){var c=s.props;s.root.element.innerHTML=(c.icon||"")+"<span>"+c.label+"</span>",c.isDisabled=!1},write:function(s){var a=s.root,c=s.props,f=c.isDisabled,g=a.query("GET_DISABLED")||0===c.opacity;g&&!f?(c.isDisabled=!0,Ie(a.element,"disabled","disabled")):!g&&f&&(c.isDisabled=!1,a.element.removeAttribute("disabled"))}}),Me=function(s){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".";return(s=Math.round(Math.abs(s)))<1e3?s+" bytes":s<gt?Math.floor(s/Zd)+" KB":s<_a?hi(s/gt,1,a)+" MB":hi(s/_a,2,a)+" GB"},Zd=1e3,gt=1e6,_a=1e9,hi=function(s,a,c){return s.toFixed(a).split(".").filter(function(f){return"0"!==f}).join(c)},qo=function(s){var a=s.root,c=s.props;Z(a.ref.fileSize,Me(a.query("GET_ITEM_SIZE",c.id))),Z(a.ref.fileName,a.query("GET_ITEM_NAME",c.id))},Wo=function(s){var a=s.root;oi(a.query("GET_ITEM_SIZE",s.props.id))||Z(a.ref.fileSize,a.query("GET_LABEL_FILE_SIZE_NOT_AVAILABLE"))},Rg=ht({name:"file-info",ignoreRect:!0,ignoreRectUpdate:!0,write:Ft({DID_LOAD_ITEM:qo,DID_UPDATE_ITEM_META:qo,DID_THROW_ITEM_LOAD_ERROR:Wo,DID_THROW_ITEM_INVALID:Wo}),didCreateView:function(s){st("CREATE_VIEW",Object.assign({},s,{view:s}))},create:function(s){var a=s.root,c=s.props,f=In("span");f.className="filepond--file-info-main",Ie(f,"aria-hidden","true"),a.appendChild(f),a.ref.fileName=f;var g=In("span");g.className="filepond--file-info-sub",a.appendChild(g),a.ref.fileSize=g,Z(g,a.query("GET_LABEL_FILE_WAITING_FOR_SIZE")),Z(f,a.query("GET_ITEM_NAME",c.id))},mixins:{styles:["translateX","translateY"],animations:{translateX:"spring",translateY:"spring"}}}),rl=function(s){return Math.round(100*s)},Ki=function(s){var a=s.root,c=s.action,f=null===c.progress?a.query("GET_LABEL_FILE_LOADING"):a.query("GET_LABEL_FILE_LOADING")+" "+rl(c.progress)+"%";Z(a.ref.main,f),Z(a.ref.sub,a.query("GET_LABEL_TAP_TO_CANCEL"))},Vn=function(s){var a=s.root;Z(a.ref.main,""),Z(a.ref.sub,"")},Zi=function(s){var a=s.root,c=s.action;Z(a.ref.main,c.status.main),Z(a.ref.sub,c.status.sub)},ol=ht({name:"file-status",ignoreRect:!0,ignoreRectUpdate:!0,write:Ft({DID_LOAD_ITEM:Vn,DID_REVERT_ITEM_PROCESSING:Vn,DID_REQUEST_ITEM_PROCESSING:function(s){var a=s.root;Z(a.ref.main,a.query("GET_LABEL_FILE_PROCESSING")),Z(a.ref.sub,a.query("GET_LABEL_TAP_TO_CANCEL"))},DID_ABORT_ITEM_PROCESSING:function(s){var a=s.root;Z(a.ref.main,a.query("GET_LABEL_FILE_PROCESSING_ABORTED")),Z(a.ref.sub,a.query("GET_LABEL_TAP_TO_RETRY"))},DID_COMPLETE_ITEM_PROCESSING:function(s){var a=s.root;Z(a.ref.main,a.query("GET_LABEL_FILE_PROCESSING_COMPLETE")),Z(a.ref.sub,a.query("GET_LABEL_TAP_TO_UNDO"))},DID_UPDATE_ITEM_PROCESS_PROGRESS:function(s){var a=s.root,c=s.action,f=null===c.progress?a.query("GET_LABEL_FILE_PROCESSING"):a.query("GET_LABEL_FILE_PROCESSING")+" "+rl(c.progress)+"%";Z(a.ref.main,f),Z(a.ref.sub,a.query("GET_LABEL_TAP_TO_CANCEL"))},DID_UPDATE_ITEM_LOAD_PROGRESS:Ki,DID_THROW_ITEM_LOAD_ERROR:Zi,DID_THROW_ITEM_INVALID:Zi,DID_THROW_ITEM_PROCESSING_ERROR:Zi,DID_THROW_ITEM_PROCESSING_REVERT_ERROR:Zi,DID_THROW_ITEM_REMOVE_ERROR:Zi}),didCreateView:function(s){st("CREATE_VIEW",Object.assign({},s,{view:s}))},create:function(s){var a=s.root,c=In("span");c.className="filepond--file-status-main",a.appendChild(c),a.ref.main=c;var f=In("span");f.className="filepond--file-status-sub",a.appendChild(f),a.ref.sub=f,Ki({root:a,action:{progress:null}})},mixins:{styles:["translateX","translateY","opacity"],animations:{opacity:{type:"tween",duration:250},translateX:"spring",translateY:"spring"}}}),gi={AbortItemLoad:{label:"GET_LABEL_BUTTON_ABORT_ITEM_LOAD",action:"ABORT_ITEM_LOAD",className:"filepond--action-abort-item-load",align:"LOAD_INDICATOR_POSITION"},RetryItemLoad:{label:"GET_LABEL_BUTTON_RETRY_ITEM_LOAD",action:"RETRY_ITEM_LOAD",icon:"GET_ICON_RETRY",className:"filepond--action-retry-item-load",align:"BUTTON_PROCESS_ITEM_POSITION"},RemoveItem:{label:"GET_LABEL_BUTTON_REMOVE_ITEM",action:"REQUEST_REMOVE_ITEM",icon:"GET_ICON_REMOVE",className:"filepond--action-remove-item",align:"BUTTON_REMOVE_ITEM_POSITION"},ProcessItem:{label:"GET_LABEL_BUTTON_PROCESS_ITEM",action:"REQUEST_ITEM_PROCESSING",icon:"GET_ICON_PROCESS",className:"filepond--action-process-item",align:"BUTTON_PROCESS_ITEM_POSITION"},AbortItemProcessing:{label:"GET_LABEL_BUTTON_ABORT_ITEM_PROCESSING",action:"ABORT_ITEM_PROCESSING",className:"filepond--action-abort-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"},RetryItemProcessing:{label:"GET_LABEL_BUTTON_RETRY_ITEM_PROCESSING",action:"RETRY_ITEM_PROCESSING",icon:"GET_ICON_RETRY",className:"filepond--action-retry-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"},RevertItemProcessing:{label:"GET_LABEL_BUTTON_UNDO_ITEM_PROCESSING",action:"REQUEST_REVERT_ITEM_PROCESSING",icon:"GET_ICON_UNDO",className:"filepond--action-revert-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"}},Da=[];Ee(gi,function(h){Da.push(h)});var h,Vt=function(s){var a=s.ref.buttonRemoveItem.rect.element;return a.hidden?null:a.width+a.left},Ia=function(s){return s.ref.buttonAbortItemLoad.rect.element.width},Xi=function(s){return Math.floor(s.ref.buttonRemoveItem.rect.element.height/4)},Ta=function(s){return Math.floor(s.ref.buttonRemoveItem.rect.element.left/2)},Ji=function(s){return s.query("GET_STYLE_BUTTON_REMOVE_ITEM_POSITION")},al={buttonAbortItemLoad:{opacity:0},buttonRetryItemLoad:{opacity:0},buttonRemoveItem:{opacity:0},buttonProcessItem:{opacity:0},buttonAbortItemProcessing:{opacity:0},buttonRetryItemProcessing:{opacity:0},buttonRevertItemProcessing:{opacity:0},loadProgressIndicator:{opacity:0,align:function(s){return s.query("GET_STYLE_LOAD_INDICATOR_POSITION")}},processProgressIndicator:{opacity:0,align:function(s){return s.query("GET_STYLE_PROGRESS_INDICATOR_POSITION")}},processingCompleteIndicator:{opacity:0,scaleX:.75,scaleY:.75},info:{translateX:0,translateY:0,opacity:0},status:{translateX:0,translateY:0,opacity:0}},wa={buttonRemoveItem:{opacity:1},buttonProcessItem:{opacity:1},info:{translateX:Vt},status:{translateX:Vt}},Yo={buttonAbortItemProcessing:{opacity:1},processProgressIndicator:{opacity:1},status:{opacity:1}},$r={DID_THROW_ITEM_INVALID:{buttonRemoveItem:{opacity:1},info:{translateX:Vt},status:{translateX:Vt,opacity:1}},DID_START_ITEM_LOAD:{buttonAbortItemLoad:{opacity:1},loadProgressIndicator:{opacity:1},status:{opacity:1}},DID_THROW_ITEM_LOAD_ERROR:{buttonRetryItemLoad:{opacity:1},buttonRemoveItem:{opacity:1},info:{translateX:Vt},status:{opacity:1}},DID_START_ITEM_REMOVE:{processProgressIndicator:{opacity:1,align:Ji},info:{translateX:Vt},status:{opacity:0}},DID_THROW_ITEM_REMOVE_ERROR:{processProgressIndicator:{opacity:0,align:Ji},buttonRemoveItem:{opacity:1},info:{translateX:Vt},status:{opacity:1,translateX:Vt}},DID_LOAD_ITEM:wa,DID_LOAD_LOCAL_ITEM:{buttonRemoveItem:{opacity:1},info:{translateX:Vt},status:{translateX:Vt}},DID_START_ITEM_PROCESSING:Yo,DID_REQUEST_ITEM_PROCESSING:Yo,DID_UPDATE_ITEM_PROCESS_PROGRESS:Yo,DID_COMPLETE_ITEM_PROCESSING:{buttonRevertItemProcessing:{opacity:1},info:{opacity:1},status:{opacity:1}},DID_THROW_ITEM_PROCESSING_ERROR:{buttonRemoveItem:{opacity:1},buttonRetryItemProcessing:{opacity:1},status:{opacity:1},info:{translateX:Vt}},DID_THROW_ITEM_PROCESSING_REVERT_ERROR:{buttonRevertItemProcessing:{opacity:1},status:{opacity:1},info:{opacity:1}},DID_ABORT_ITEM_PROCESSING:{buttonRemoveItem:{opacity:1},buttonProcessItem:{opacity:1},info:{translateX:Vt},status:{opacity:1}},DID_REVERT_ITEM_PROCESSING:wa},Qo=ht({create:function(s){var a=s.root;a.element.innerHTML=a.query("GET_ICON_DONE")},name:"processing-complete-indicator",ignoreRect:!0,mixins:{styles:["scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",opacity:{type:"tween",duration:250}}}}),jt=Ft({DID_SET_LABEL_BUTTON_ABORT_ITEM_PROCESSING:function(s){s.root.ref.buttonAbortItemProcessing.label=s.action.value},DID_SET_LABEL_BUTTON_ABORT_ITEM_LOAD:function(s){s.root.ref.buttonAbortItemLoad.label=s.action.value},DID_SET_LABEL_BUTTON_ABORT_ITEM_REMOVAL:function(s){s.root.ref.buttonAbortItemRemoval.label=s.action.value},DID_REQUEST_ITEM_PROCESSING:function(s){var a=s.root;a.ref.processProgressIndicator.spin=!0,a.ref.processProgressIndicator.progress=0},DID_START_ITEM_LOAD:function(s){var a=s.root;a.ref.loadProgressIndicator.spin=!0,a.ref.loadProgressIndicator.progress=0},DID_START_ITEM_REMOVE:function(s){var a=s.root;a.ref.processProgressIndicator.spin=!0,a.ref.processProgressIndicator.progress=0},DID_UPDATE_ITEM_LOAD_PROGRESS:function(s){var a=s.root,c=s.action;a.ref.loadProgressIndicator.spin=!1,a.ref.loadProgressIndicator.progress=c.progress},DID_UPDATE_ITEM_PROCESS_PROGRESS:function(s){var a=s.root,c=s.action;a.ref.processProgressIndicator.spin=!1,a.ref.processProgressIndicator.progress=c.progress}}),pr=ht({create:function(s){var C,a=s.root,f=s.props.id,g=a.query("GET_ALLOW_REVERT"),y=a.query("GET_ALLOW_REMOVE"),v=a.query("GET_ALLOW_PROCESS"),_=a.query("GET_INSTANT_UPLOAD"),I=a.query("IS_ASYNC"),T=a.query("GET_STYLE_BUTTON_REMOVE_ITEM_ALIGN");I?v&&!g?C=function($){return!/RevertItemProcessing/.test($)}:!v&&g?C=function($){return!/ProcessItem|RetryItemProcessing|AbortItemProcessing/.test($)}:!v&&!g&&(C=function($){return!/Process/.test($)}):C=function($){return!/Process/.test($)};var S=C?Da.filter(C):Da.concat();if(_&&g&&(gi.RevertItemProcessing.label="GET_LABEL_BUTTON_REMOVE_ITEM",gi.RevertItemProcessing.icon="GET_ICON_REMOVE"),I&&!g){var N=$r.DID_COMPLETE_ITEM_PROCESSING;N.info.translateX=Ta,N.info.translateY=Xi,N.status.translateY=Xi,N.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1}}if(I&&!v&&(["DID_START_ITEM_PROCESSING","DID_REQUEST_ITEM_PROCESSING","DID_UPDATE_ITEM_PROCESS_PROGRESS","DID_THROW_ITEM_PROCESSING_ERROR"].forEach(function(B){$r[B].status.translateY=Xi}),$r.DID_THROW_ITEM_PROCESSING_ERROR.status.translateX=Ia),T&&g){gi.RevertItemProcessing.align="BUTTON_REMOVE_ITEM_POSITION";var k=$r.DID_COMPLETE_ITEM_PROCESSING;k.info.translateX=Vt,k.status.translateY=Xi,k.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1}}y||(gi.RemoveItem.disabled=!0),Ee(gi,function(B,$){var ne=a.createChildView(F,{label:a.query($.label),icon:a.query($.icon),opacity:0});S.includes(B)&&a.appendChildView(ne),$.disabled&&(ne.element.setAttribute("disabled","disabled"),ne.element.setAttribute("hidden","hidden")),ne.element.dataset.align=a.query("GET_STYLE_"+$.align),ne.element.classList.add($.className),ne.on("click",function(j){j.stopPropagation(),!$.disabled&&a.dispatch($.action,{query:f})}),a.ref["button"+B]=ne}),a.ref.processingCompleteIndicator=a.appendChildView(a.createChildView(Qo)),a.ref.processingCompleteIndicator.element.dataset.align=a.query("GET_STYLE_BUTTON_PROCESS_ITEM_POSITION"),a.ref.info=a.appendChildView(a.createChildView(Rg,{id:f})),a.ref.status=a.appendChildView(a.createChildView(ol,{id:f}));var H=a.appendChildView(a.createChildView(Ea,{opacity:0,align:a.query("GET_STYLE_LOAD_INDICATOR_POSITION")}));H.element.classList.add("filepond--load-indicator"),a.ref.loadProgressIndicator=H;var P=a.appendChildView(a.createChildView(Ea,{opacity:0,align:a.query("GET_STYLE_PROGRESS_INDICATOR_POSITION")}));P.element.classList.add("filepond--process-indicator"),a.ref.processProgressIndicator=P,a.ref.activeStyles=[]},write:function(s){var a=s.root,c=s.actions;jt({root:a,actions:c,props:s.props});var g=c.concat().filter(function(v){return/^DID_/.test(v.type)}).reverse().find(function(v){return $r[v.type]});if(g){a.ref.activeStyles=[];var y=$r[g.type];Ee(al,function(v,_){var I=a.ref[v];Ee(_,function(T,C){a.ref.activeStyles.push({control:I,key:T,value:y[v]&&void 0!==y[v][T]?y[v][T]:C})})})}a.ref.activeStyles.forEach(function(v){var T=v.value;v.control[v.key]="function"==typeof T?T(a):T})},didCreateView:function(s){st("CREATE_VIEW",Object.assign({},s,{view:s}))},name:"file"}),nf=ht({create:function(s){var a=s.root,c=s.props;a.ref.fileName=In("legend"),a.appendChild(a.ref.fileName),a.ref.file=a.appendChildView(a.createChildView(pr,{id:c.id})),a.ref.data=!1},ignoreRect:!0,write:Ft({DID_LOAD_ITEM:function(s){var a=s.root;Z(a.ref.fileName,a.query("GET_ITEM_NAME",s.props.id))}}),didCreateView:function(s){st("CREATE_VIEW",Object.assign({},s,{view:s}))},tag:"fieldset",name:"file-wrapper"}),ul={type:"spring",damping:.6,mass:7},of=function(s,a,c){var f=ht({name:"panel-"+a.name+" filepond--"+c,mixins:a.mixins,ignoreRectUpdate:!0}),g=s.createChildView(f,a.props);s.ref[a.name]=s.appendChildView(g)},eo=ht({name:"panel",write:function(s){var a=s.root,c=s.props;if((null===a.ref.scalable||c.scalable!==a.ref.scalable)&&(a.ref.scalable=!od(c.scalable)||c.scalable,a.element.dataset.scalable=a.ref.scalable),c.height){var f=a.ref.top.rect.element,g=a.ref.bottom.rect.element,y=Math.max(f.height+g.height,c.height);a.ref.center.translateY=f.height,a.ref.center.scaleY=(y-f.height-g.height)/100,a.ref.bottom.translateY=y-g.height}},create:function(s){var a=s.root,c=s.props;[{name:"top"},{name:"center",props:{translateY:null,scaleY:null},mixins:{animations:{scaleY:ul},styles:["translateY","scaleY"]}},{name:"bottom",props:{translateY:null},mixins:{animations:{translateY:ul},styles:["translateY"]}}].forEach(function(f){of(a,f,c.name)}),a.element.classList.add("filepond--"+c.name),a.ref.scalable=null},ignoreRect:!0,mixins:{apis:["height","scalable"]}}),to={type:"spring",stiffness:.75,damping:.45,mass:10},ba={DID_START_ITEM_LOAD:"busy",DID_UPDATE_ITEM_LOAD_PROGRESS:"loading",DID_THROW_ITEM_INVALID:"load-invalid",DID_THROW_ITEM_LOAD_ERROR:"load-error",DID_LOAD_ITEM:"idle",DID_THROW_ITEM_REMOVE_ERROR:"remove-error",DID_START_ITEM_REMOVE:"busy",DID_START_ITEM_PROCESSING:"busy processing",DID_REQUEST_ITEM_PROCESSING:"busy processing",DID_UPDATE_ITEM_PROCESS_PROGRESS:"processing",DID_COMPLETE_ITEM_PROCESSING:"processing-complete",DID_THROW_ITEM_PROCESSING_ERROR:"processing-error",DID_THROW_ITEM_PROCESSING_REVERT_ERROR:"processing-revert-error",DID_ABORT_ITEM_PROCESSING:"cancelled",DID_REVERT_ITEM_PROCESSING:"idle"},gr=Ft({DID_UPDATE_PANEL_HEIGHT:function(s){s.root.height=s.action.height}}),no=Ft({DID_GRAB_ITEM:function(s){var a=s.root;s.props.dragOrigin={x:a.translateX,y:a.translateY}},DID_DRAG_ITEM:function(s){s.root.element.dataset.dragState="drag"},DID_DROP_ITEM:function(s){var a=s.root,c=s.props;c.dragOffset=null,c.dragOrigin=null,a.element.dataset.dragState="drop"}},function(h){var s=h.root,a=h.actions,c=h.props,f=h.shouldOptimize;"drop"===s.element.dataset.dragState&&s.scaleX<=1&&(s.element.dataset.dragState="idle");var g=a.concat().filter(function(v){return/^DID_/.test(v.type)}).reverse().find(function(v){return ba[v.type]});g&&g.type!==c.currentState&&(c.currentState=g.type,s.element.dataset.filepondItemState=ba[c.currentState]||"");var y=s.query("GET_ITEM_PANEL_ASPECT_RATIO")||s.query("GET_PANEL_ASPECT_RATIO");y?f||(s.height=s.rect.element.width*y):(gr({root:s,actions:a,props:c}),!s.height&&s.ref.container.rect.element.height>0&&(s.height=s.ref.container.rect.element.height)),f&&(s.ref.panel.height=null),s.ref.panel.height=s.height}),uf=ht({create:function(s){var a=s.root,c=s.props;if(a.ref.handleClick=function(g){return a.dispatch("DID_ACTIVATE_ITEM",{id:c.id})},a.element.id="filepond--item-"+c.id,a.element.addEventListener("click",a.ref.handleClick),a.ref.container=a.appendChildView(a.createChildView(nf,{id:c.id})),a.ref.panel=a.appendChildView(a.createChildView(eo,{name:"item-panel"})),a.ref.panel.height=null,c.markedForRemoval=!1,a.query("GET_ALLOW_REORDER")){a.element.dataset.dragState="idle";a.element.addEventListener("pointerdown",function(y){if(y.isPrimary){var v=!1,_={x:y.pageX,y:y.pageY};c.dragOrigin={x:a.translateX,y:a.translateY},c.dragCenter={x:y.offsetX,y:y.offsetY};var I=function(s){var a=s.map(function(f){return f.id}),c=void 0;return{setIndex:function(g){c=g},getIndex:function(){return c},getItemIndex:function(g){return a.indexOf(g.id)}}}(a.query("GET_ACTIVE_ITEMS"));a.dispatch("DID_GRAB_ITEM",{id:c.id,dragState:I});var T=function(N){N.isPrimary&&(N.stopPropagation(),N.preventDefault(),c.dragOffset={x:N.pageX-_.x,y:N.pageY-_.y},c.dragOffset.x*c.dragOffset.x+c.dragOffset.y*c.dragOffset.y>16&&!v&&(v=!0,a.element.removeEventListener("click",a.ref.handleClick)),a.dispatch("DID_DRAG_ITEM",{id:c.id,dragState:I}))};document.addEventListener("pointermove",T),document.addEventListener("pointerup",function S(N){!N.isPrimary||(document.removeEventListener("pointermove",T),document.removeEventListener("pointerup",S),c.dragOffset={x:N.pageX-_.x,y:N.pageY-_.y},a.dispatch("DID_DROP_ITEM",{id:c.id,dragState:I}),v&&setTimeout(function(){return a.element.addEventListener("click",a.ref.handleClick)},0))})}})}},write:no,destroy:function(s){var a=s.root,c=s.props;a.element.removeEventListener("click",a.ref.handleClick),a.dispatch("RELEASE_ITEM",{query:c.id})},tag:"li",name:"item",mixins:{apis:["id","interactionMethod","markedForRemoval","spawnDate","dragCenter","dragOrigin","dragOffset"],styles:["translateX","translateY","scaleX","scaleY","opacity","height"],animations:{scaleX:"spring",scaleY:"spring",translateX:to,translateY:to,opacity:{type:"tween",duration:150}}}}),Sa=function(s,a,c){if(c){var g=a.length,y=null;if(0===g||c.top<a[0].rect.element.top)return-1;var _=a[0].rect.element,T=_.width+(_.marginLeft+_.marginRight),C=Math.round(s.rect.element.width/T);if(1===C){for(var S=0;S<g;S++){var N=a[S];if(c.top<N.rect.outer.top+.5*N.rect.element.height)return S}return g}for(var P=_.height+(_.marginTop+_.marginBottom),B=0;B<g;B++){var $=B%C,Re=Math.floor(B/C)*P;if(c.top<Re+P+_.marginBottom&&c.top>Re-_.marginTop){if(c.left<$*T+T)return B;y=B!==g-1?B:null}}return null!==y?y:g}},mr={height:0,width:0,get getHeight(){return this.height},set setHeight(h){(0===this.height||0===h)&&(this.height=h)},get getWidth(){return this.width},set setWidth(h){(0===this.width||0===h)&&(this.width=h)},setDimensions:function(s,a){(0===this.height||0===s)&&(this.height=s),(0===this.width||0===a)&&(this.width=a)}},ll=function(s,a,c){var f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,g=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;s.dragOffset?(s.translateX=null,s.translateY=null,s.translateX=s.dragOrigin.x+s.dragOffset.x,s.translateY=s.dragOrigin.y+s.dragOffset.y,s.scaleX=1.025,s.scaleY=1.025):(s.translateX=a,s.translateY=c,Date.now()>s.spawnDate&&(0===s.opacity&&Pg(s,a,c,f,g),s.scaleX=1,s.scaleY=1,s.opacity=1))},Pg=function(s,a,c,f,g){s.interactionMethod===mn_NONE?(s.translateX=null,s.translateX=a,s.translateY=null,s.translateY=c):s.interactionMethod===mn_DROP?(s.translateX=null,s.translateX=a-20*f,s.translateY=null,s.translateY=c-10*g,s.scaleX=.8,s.scaleY=.8):s.interactionMethod===mn_BROWSE?(s.translateY=null,s.translateY=c-30):s.interactionMethod===mn_API&&(s.translateX=null,s.translateX=a-30,s.translateY=null)},mi=function(s){return s.rect.element.height+.5*s.rect.element.marginBottom+.5*s.rect.element.marginTop},Xo=Ft({DID_ADD_ITEM:function(s){var a=s.root,c=s.action,f=c.id,g=c.index,y=c.interactionMethod;a.ref.addIndex=g;var v=Date.now(),_=v,I=1;if(y!==mn_NONE){I=0;var T=a.query("GET_ITEM_INSERT_INTERVAL"),C=v-a.ref.lastItemSpanwDate;_=C<T?v+(T-C):v}a.ref.lastItemSpanwDate=_,a.appendChildView(a.createChildView(uf,{spawnDate:_,id:f,opacity:I,interactionMethod:y}),g)},DID_REMOVE_ITEM:function(s){var f=s.action.id,g=s.root.childViews.find(function(y){return y.id===f});!g||(g.scaleX=.9,g.scaleY=.9,g.opacity=0,g.markedForRemoval=!0)},DID_DRAG_ITEM:function(s){var a=s.root,c=s.action,f=c.id,g=c.dragState,y=a.query("GET_ITEM",{id:f}),v=a.childViews.find(function($){return $.id===f}),_=a.childViews.length,I=g.getItemIndex(y);if(v){var T={x:v.dragOrigin.x+v.dragOffset.x+v.dragCenter.x,y:v.dragOrigin.y+v.dragOffset.y+v.dragCenter.y},C=mi(v),S=function(s){return s.rect.element.width+.5*s.rect.element.marginLeft+.5*s.rect.element.marginRight}(v),N=Math.floor(a.rect.outer.width/S);N>_&&(N=_);var k=Math.floor(_/N+1);mr.setHeight=C*k,mr.setWidth=S*N;var H={y:Math.floor(T.y/C),x:Math.floor(T.x/S),getGridIndex:function(){return T.y>mr.getHeight||T.y<0||T.x>mr.getWidth||T.x<0?I:this.y*N+this.x},getColIndex:function(){for(var ne=a.query("GET_ACTIVE_ITEMS"),j=a.childViews.filter(function(oe){return oe.rect.element.height}),Re=ne.map(function(oe){return j.find(function(je){return je.id===oe.id})}),ae=Re.findIndex(function(oe){return oe===v}),Ve=mi(v),xe=Re.length,q=xe,te=0,re=0,z=0,ee=0;ee<xe;ee++)if(te=mi(Re[ee]),T.y<(re=(z=re)+te)){if(ae>ee){if(T.y<z+Ve){q=ee;break}continue}q=ee;break}return q}},P=N>1?H.getGridIndex():H.getColIndex();a.dispatch("MOVE_ITEM",{query:v,index:P});var B=g.getIndex();if(void 0===B||B!==P){if(g.setIndex(P),void 0===B)return;a.dispatch("DID_REORDER_ITEMS",{items:a.query("GET_ACTIVE_ITEMS"),origin:I,target:P})}}}}),yi=ht({create:function(s){var a=s.root;Ie(a.element,"role","list"),a.ref.lastItemSpanwDate=Date.now()},write:function(s){var a=s.root,c=s.props,g=s.shouldOptimize;Xo({root:a,props:c,actions:s.actions});var y=c.dragCoordinates,v=a.rect.element.width,_=a.childViews.filter(function(q){return q.rect.element.height}),I=a.query("GET_ACTIVE_ITEMS").map(function(q){return _.find(function(te){return te.id===q.id})}).filter(function(q){return q}),T=y?Sa(a,I,y):null,C=a.ref.addIndex||null;a.ref.addIndex=null;var S=0,N=0,k=0;if(0!==I.length){var H=I[0].rect.element,P=H.marginTop+H.marginBottom,$=H.width+(H.marginLeft+H.marginRight),ne=H.height+P,j=Math.round(v/$);if(1===j){var Re=0,ae=0;I.forEach(function(q,te){if(T){var re=te-T;ae=-2===re?.25*-P:-1===re?.75*-P:0===re?.75*P:1===re?.25*P:0}g&&(q.translateX=null,q.translateY=null),q.markedForRemoval||ll(q,0,Re+ae),Re+=(q.rect.element.height+P)*(q.markedForRemoval?q.opacity:1)})}else{var Ve=0,xe=0;I.forEach(function(q,te){te===T&&(S=1),te===C&&(k+=1),q.markedForRemoval&&q.opacity<.5&&(N-=1);var re=te+k+S+N,z=re%j,ee=Math.floor(re/j),oe=z*$,je=ee*ne,ke=Math.sign(oe-Ve),se=Math.sign(je-xe);Ve=oe,xe=je,!q.markedForRemoval&&(g&&(q.translateX=null,q.translateY=null),ll(q,oe,je,ke,se))})}}},tag:"ul",name:"list",didWriteView:function(s){var a=s.root;a.childViews.filter(function(c){return c.markedForRemoval&&0===c.opacity&&c.resting}).forEach(function(c){c._destroy(),a.removeChildView(c)})},filterFrameActionsForChild:function(s,a){return a.filter(function(c){return!c.data||!c.data.id||s.id===c.data.id})},mixins:{apis:["dragCoordinates"]}}),Jo=Ft({DID_DRAG:function(s){var a=s.root,c=s.props,f=s.action;!a.query("GET_ITEM_INSERT_LOCATION_FREEDOM")||(c.dragCoordinates={left:f.position.scopeLeft-a.ref.list.rect.element.left,top:f.position.scopeTop-(a.rect.outer.top+a.rect.element.marginTop+a.rect.element.scrollTop)})},DID_END_DRAG:function(s){s.props.dragCoordinates=null}}),hl=ht({create:function(s){var a=s.root,c=s.props;a.ref.list=a.appendChildView(a.createChildView(yi)),c.dragCoordinates=null,c.overflowing=!1},write:function(s){var a=s.root,c=s.props;if(Jo({root:a,props:c,actions:s.actions}),a.ref.list.dragCoordinates=c.dragCoordinates,c.overflowing&&!c.overflow&&(c.overflowing=!1,a.element.dataset.state="",a.height=null),c.overflow){var g=Math.round(c.overflow);g!==a.height&&(c.overflowing=!0,a.element.dataset.state="overflow",a.height=g)}},name:"list-scroller",mixins:{apis:["overflow","dragCoordinates"],styles:["height","translateY"],animations:{translateY:"spring"}}}),dn=function(s,a,c){c?Ie(s,a,arguments.length>3&&void 0!==arguments[3]?arguments[3]:""):s.removeAttribute(a)},Ei=function(s){var a=s.root,c=s.action;!a.query("GET_ALLOW_SYNC_ACCEPT_ATTRIBUTE")||dn(a.element,"accept",!!c.value,c.value?c.value.join(","):"")},es=function(s){dn(s.root.element,"multiple",s.action.value)},ts=function(s){dn(s.root.element,"webkitdirectory",s.action.value)},_i=function(s){var a=s.root,c=a.query("GET_DISABLED"),f=a.query("GET_ALLOW_BROWSE");dn(a.element,"disabled",c||!f)},ro=function(s){var a=s.root;s.action.value?0===a.query("GET_TOTAL_ITEMS")&&dn(a.element,"required",!0):dn(a.element,"required",!1)},pl=function(s){var c=s.action;dn(s.root.element,"capture",!!c.value,!0===c.value?"":c.value)},Ra=function(s){var a=s.root,c=a.element;a.query("GET_TOTAL_ITEMS")>0?(dn(c,"required",!1),dn(c,"name",!1)):(dn(c,"name",!0,a.query("GET_NAME")),a.query("GET_CHECK_VALIDITY")&&c.setCustomValidity(""),a.query("GET_REQUIRED")&&dn(c,"required",!0))},ml=ht({tag:"input",name:"browser",ignoreRect:!0,ignoreRectUpdate:!0,attributes:{type:"file"},create:function(s){var a=s.root,c=s.props;a.element.id="filepond--browser-"+c.id,Ie(a.element,"name",a.query("GET_NAME")),Ie(a.element,"aria-controls","filepond--assistant-"+c.id),Ie(a.element,"aria-labelledby","filepond--drop-label-"+c.id),Ei({root:a,action:{value:a.query("GET_ACCEPTED_FILE_TYPES")}}),es({root:a,action:{value:a.query("GET_ALLOW_MULTIPLE")}}),ts({root:a,action:{value:a.query("GET_ALLOW_DIRECTORIES_ONLY")}}),_i({root:a}),ro({root:a,action:{value:a.query("GET_REQUIRED")}}),pl({root:a,action:{value:a.query("GET_CAPTURE_METHOD")}}),a.ref.handleChange=function(f){if(a.element.value){var g=Array.from(a.element.files).map(function(y){return y._relativePath=y.webkitRelativePath,y});setTimeout(function(){c.onload(g),function(s){if(s&&""!==s.value){try{s.value=""}catch(g){}if(s.value){var a=In("form"),c=s.parentNode,f=s.nextSibling;a.appendChild(s),a.reset(),f?c.insertBefore(s,f):c.appendChild(s)}}}(a.element)},250)}},a.element.addEventListener("change",a.ref.handleChange)},destroy:function(s){var a=s.root;a.element.removeEventListener("change",a.ref.handleChange)},write:Ft({DID_LOAD_ITEM:Ra,DID_REMOVE_ITEM:Ra,DID_THROW_ITEM_INVALID:function(s){var a=s.root;!a.query("GET_CHECK_VALIDITY")||a.element.setCustomValidity(a.query("GET_LABEL_INVALID_FIELD"))},DID_SET_DISABLED:_i,DID_SET_ALLOW_BROWSE:_i,DID_SET_ALLOW_DIRECTORIES_ONLY:ts,DID_SET_ALLOW_MULTIPLE:es,DID_SET_ACCEPTED_FILE_TYPES:Ei,DID_SET_CAPTURE_METHOD:pl,DID_SET_REQUIRED:ro})}),Oa_ENTER=13,Oa_SPACE=32,yl=function(s,a){s.innerHTML=a;var c=s.querySelector(".filepond--label-action");return c&&Ie(c,"tabindex","0"),a},ns=ht({name:"drop-label",ignoreRect:!0,create:function(s){var a=s.root,c=s.props,f=In("label");Ie(f,"for","filepond--browser-"+c.id),Ie(f,"id","filepond--drop-label-"+c.id),Ie(f,"aria-hidden","true"),a.ref.handleKeyDown=function(g){g.keyCode!==Oa_ENTER&&g.keyCode!==Oa_SPACE||(g.preventDefault(),a.ref.label.click())},a.ref.handleClick=function(g){g.target===f||f.contains(g.target)||a.ref.label.click()},f.addEventListener("keydown",a.ref.handleKeyDown),a.element.addEventListener("click",a.ref.handleClick),yl(f,c.caption),a.appendChild(f),a.ref.label=f},destroy:function(s){var a=s.root;a.ref.label.addEventListener("keydown",a.ref.handleKeyDown),a.element.removeEventListener("click",a.ref.handleClick)},write:Ft({DID_SET_LABEL_IDLE:function(s){yl(s.root.ref.label,s.action.value)}}),mixins:{styles:["opacity","translateX","translateY"],animations:{opacity:{type:"tween",duration:150},translateX:"spring",translateY:"spring"}}}),io=ht({name:"drip-blob",ignoreRect:!0,mixins:{styles:["translateX","translateY","scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",translateX:"spring",translateY:"spring",opacity:{type:"tween",duration:250}}}}),Pa=Ft({DID_DRAG:function(s){var a=s.root,c=s.action;a.ref.blob?(a.ref.blob.translateX=c.position.scopeLeft,a.ref.blob.translateY=c.position.scopeTop,a.ref.blob.scaleX=1,a.ref.blob.scaleY=1,a.ref.blob.opacity=1):function(s){var a=s.root;a.ref.blob=a.appendChildView(a.createChildView(io,{opacity:0,scaleX:2.5,scaleY:2.5,translateX:.5*a.rect.element.width,translateY:.5*a.rect.element.height}))}({root:a})},DID_DROP:function(s){var a=s.root;!a.ref.blob||(a.ref.blob.scaleX=2.5,a.ref.blob.scaleY=2.5,a.ref.blob.opacity=0)},DID_END_DRAG:function(s){var a=s.root;!a.ref.blob||(a.ref.blob.opacity=0)}}),Na=ht({ignoreRect:!0,ignoreRectUpdate:!0,name:"drip",write:function(s){var a=s.root,f=s.actions;Pa({root:a,props:s.props,actions:f});var g=a.ref.blob;0===f.length&&g&&0===g.opacity&&(a.removeChildView(g),a.ref.blob=null)}}),yr=function(s,a){return s.ref.fields[a]},vr=function(s){s.query("GET_ACTIVE_ITEMS").forEach(function(a){!s.ref.fields[a.id]||s.element.appendChild(s.ref.fields[a.id])})},Fa=function(s){return vr(s.root)},xg=Ft({DID_SET_DISABLED:function(s){var a=s.root;a.element.disabled=a.query("GET_DISABLED")},DID_ADD_ITEM:function(s){var a=s.root,c=s.action,f=In("input");f.type="hidden",f.name=a.query("GET_NAME"),f.disabled=a.query("GET_DISABLED"),a.ref.fields[c.id]=f,vr(a)},DID_LOAD_ITEM:function(s){var c=s.action,f=yr(s.root,c.id);!f||null===c.serverFileReference||(f.value=c.serverFileReference)},DID_REMOVE_ITEM:function(s){var a=s.root,c=s.action,f=yr(a,c.id);!f||(f.parentNode.removeChild(f),delete a.ref.fields[c.id])},DID_DEFINE_VALUE:function(s){var a=s.root,c=s.action,f=yr(a,c.id);!f||(null===c.value?f.removeAttribute("value"):f.value=c.value,vr(a))},DID_REORDER_ITEMS:Fa,DID_SORT_ITEMS:Fa}),kg=ht({tag:"fieldset",name:"data",create:function(s){return s.root.ref.fields={}},write:xg,ignoreRect:!0}),Vg=["jpg","jpeg","png","gif","bmp","webp","svg","tiff"],jg=["css","csv","html","txt"],Hg={zip:"zip|compressed",epub:"application/epub+zip"},yf=function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return s=s.toLowerCase(),Vg.includes(s)?"image/"+("jpg"===s?"jpeg":"svg"===s?"svg+xml":s):jg.includes(s)?"text/"+s:Hg[s]||""},zr=function(s){return new Promise(function(a,c){var f=is(s);if(f.length&&!Ug(s))return a(f);vt(s).then(a)})},Ug=function(s){return!!s.files&&s.files.length>0},vt=function(s){return new Promise(function(a,c){var f=(s.items?Array.from(s.items):[]).filter(function(g){return xa(g)}).map(function(g){return oo(g)});f.length?Promise.all(f).then(function(g){var y=[];g.forEach(function(v){y.push.apply(y,v)}),a(y.filter(function(v){return v}).map(function(v){return v._relativePath||(v._relativePath=v.webkitRelativePath),v}))}).catch(console.error):a(s.files?Array.from(s.files):[])})},xa=function(s){if(Tn(s)){var a=rs(s);if(a)return a.isFile||a.isDirectory}return"file"===s.kind},oo=function(s){return new Promise(function(a,c){fn(s)?Gg(rs(s)).then(a).catch(c):a([s.getAsFile()])})},Gg=function(s){return new Promise(function(a,c){var f=[],g=0,y=0,v=function(){0===y&&0===g&&a(f)};!function I(T){g++;var C=T.createReader();!function N(){C.readEntries(function(k){if(0===k.length)return g--,void v();k.forEach(function(H){H.isDirectory?I(H):(y++,H.file(function(P){var B=vf(P);H.fullPath&&(B._relativePath=H.fullPath),f.push(B),y--,v()}))}),N()},c)}()}(s)})},vf=function(s){if(s.type.length)return s;var a=s.lastModifiedDate,c=s.name;return(s=s.slice(0,s.size,yf(fa(s.name)))).name=c,s.lastModifiedDate=a,s},fn=function(s){return Tn(s)&&(rs(s)||{}).isDirectory},Tn=function(s){return"webkitGetAsEntry"in s},rs=function(s){return s.webkitGetAsEntry()},is=function(s){var a=[];try{if((a=_l(s)).length)return a;a=so(s)}catch(c){}return a},so=function(s){var a=s.getData("url");return"string"==typeof a&&a.length?[a]:[]},_l=function(s){var a=s.getData("text/html");if("string"==typeof a&&a.length){var c=a.match(/src\s*=\s*"(.+?)"/);if(c)return[c[1]]}return[]},os=[],qr=function(s){return{pageLeft:s.pageX,pageTop:s.pageY,scopeLeft:s.offsetX||s.layerX,scopeTop:s.offsetY||s.layerY}},zg=function(s){var a=os.find(function(f){return f.element===s});if(a)return a;var c=Dl(s);return os.push(c),c},Dl=function(s){var a=[],c={dragenter:Il,dragover:Ef,dragleave:Df,drop:_f},f={};Ee(c,function(y,v){f[y]=v(s,a),s.addEventListener(y,f[y],!1)});var g={element:s,addListener:function(v){return a.push(v),function(){a.splice(a.indexOf(v),1),0===a.length&&(os.splice(os.indexOf(g),1),Ee(c,function(_){s.removeEventListener(_,f[_],!1)}))}}};return g},ao=function(s,a){var c=function(s){return"getRootNode"in s?s.getRootNode():document}(a),f=function(s,a){return"elementFromPoint"in s||(s=document),s.elementFromPoint(a.x,a.y)}(c,{x:s.pageX-window.pageXOffset,y:s.pageY-window.pageYOffset});return f===a||a.contains(f)},Wr=null,ka=function(s,a){try{s.dropEffect=a}catch(c){}},Il=function(s,a){return function(c){c.preventDefault(),Wr=c.target,a.forEach(function(f){var y=f.onenter;ao(c,f.element)&&(f.state="enter",y(qr(c)))})}},Ef=function(s,a){return function(c){c.preventDefault();var f=c.dataTransfer;zr(f).then(function(g){var y=!1;a.some(function(v){var _=v.filterElement,I=v.element,T=v.onenter,C=v.onexit,S=v.ondrag,N=v.allowdrop;ka(f,"copy");var k=N(g);if(k)if(ao(c,I)){if(y=!0,null===v.state)return v.state="enter",void T(qr(c));if(v.state="over",_&&!k)return void ka(f,"none");S(qr(c))}else _&&!y&&ka(f,"none"),v.state&&(v.state=null,C(qr(c)));else ka(f,"none")})})}},_f=function(s,a){return function(c){c.preventDefault(),zr(c.dataTransfer).then(function(g){a.forEach(function(y){var v=y.filterElement,_=y.element,I=y.ondrop,T=y.onexit,C=y.allowdrop;if(y.state=null,!v||ao(c,_)){if(!C(g))return T(qr(c));I(qr(c),g)}})})}},Df=function(s,a){return function(c){Wr===c.target&&a.forEach(function(f){var g=f.onexit;f.state=null,g(qr(c))})}},If=function(s,a,c){s.classList.add("filepond--hopper");var y=c.filterItems,v=void 0===y?function(S){return S}:y,_=function(s,a,c){var f=zg(a),g={element:s,filterElement:c,state:null,ondrop:function(){},onenter:function(){},ondrag:function(){},onexit:function(){},onload:function(){},allowdrop:function(){}};return g.destroy=f.addListener(g),g}(s,c.catchesDropsOnPage?document.documentElement:s,c.requiresDropOnElement),I="",T="";_.allowdrop=function(S){return a(v(S))},_.ondrop=function(S,N){var k=v(N);a(k)?(T="drag-drop",C.onload(k,S)):C.ondragend(S)},_.ondrag=function(S){C.ondrag(S)},_.onenter=function(S){T="drag-over",C.ondragstart(S)},_.onexit=function(S){T="drag-exit",C.ondragend(S)};var C={updateHopperState:function(){I!==T&&(s.dataset.hopperState=T,I=T)},onload:function(){},ondragstart:function(){},ondrag:function(){},ondragend:function(){},destroy:function(){_.destroy()}};return C},Ba=!1,Yr=[],ss=function(s){var a=document.activeElement;if(a&&/textarea|input/i.test(a.nodeName)){for(var c=!1,f=a;f!==document.body;){if(f.classList.contains("filepond--root")){c=!0;break}f=f.parentNode}if(!c)return}zr(s.clipboardData).then(function(g){!g.length||Yr.forEach(function(y){return y(g)})})},uo=function(){var s=function(f){a.onload(f)},a={destroy:function(){!function(s){U(Yr,Yr.indexOf(s)),0===Yr.length&&(document.removeEventListener("paste",ss),Ba=!1)}(s)},onload:function(){}};return function(s){Yr.includes(s)||(Yr.push(s),!Ba&&(Ba=!0,document.addEventListener("paste",ss)))}(s),a},lo=null,Tl=null,ja=[],us=function(s,a){s.element.textContent=a},bl=function(s,a,c){var f=s.query("GET_TOTAL_ITEMS");us(s,c+" "+a+", "+f+" "+s.query(1===f?"GET_LABEL_FILE_COUNT_SINGULAR":"GET_LABEL_FILE_COUNT_PLURAL")),clearTimeout(Tl),Tl=setTimeout(function(){!function(s){s.element.textContent=""}(s)},1500)},wi=function(s){return s.element.parentNode.contains(document.activeElement)},Ha=function(s){var a=s.root,g=a.query("GET_ITEM",s.action.id).filename,y=a.query("GET_LABEL_FILE_PROCESSING_ABORTED");us(a,g+" "+y)},ls=function(s){var a=s.root,c=s.action,f=a.query("GET_ITEM",c.id);us(a,c.status.main+" "+f.filename+" "+c.status.sub)},Ua=ht({create:function(s){var a=s.root;a.element.id="filepond--assistant-"+s.props.id,Ie(a.element,"role","status"),Ie(a.element,"aria-live","polite"),Ie(a.element,"aria-relevant","additions")},ignoreRect:!0,ignoreRectUpdate:!0,write:Ft({DID_LOAD_ITEM:function(s){var a=s.root,c=s.action;if(wi(a)){a.element.textContent="";var f=a.query("GET_ITEM",c.id);ja.push(f.filename),clearTimeout(lo),lo=setTimeout(function(){bl(a,ja.join(", "),a.query("GET_LABEL_FILE_ADDED")),ja.length=0},750)}},DID_REMOVE_ITEM:function(s){var a=s.root,c=s.action;wi(a)&&bl(a,c.item.filename,a.query("GET_LABEL_FILE_REMOVED"))},DID_COMPLETE_ITEM_PROCESSING:function(s){var a=s.root,g=a.query("GET_ITEM",s.action.id).filename,y=a.query("GET_LABEL_FILE_PROCESSING_COMPLETE");us(a,g+" "+y)},DID_ABORT_ITEM_PROCESSING:Ha,DID_REVERT_ITEM_PROCESSING:Ha,DID_THROW_ITEM_REMOVE_ERROR:ls,DID_THROW_ITEM_LOAD_ERROR:ls,DID_THROW_ITEM_INVALID:ls,DID_THROW_ITEM_PROCESSING_ERROR:ls}),tag:"span",name:"assistant"}),bi=function(s){return s.replace(new RegExp((arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-")+".","g"),function(c){return c.charAt(1).toUpperCase()})},Cl=function(s){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,c=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],f=Date.now(),g=null;return function(){for(var y=arguments.length,v=new Array(y),_=0;_<y;_++)v[_]=arguments[_];clearTimeout(g);var I=Date.now()-f,T=function(){f=Date.now(),s.apply(void 0,v)};I<a?c||(g=setTimeout(T,a-I)):T()}},cs=function(s){return s.preventDefault()},Al=function(s){var a=s.ref.list.childViews[0].childViews[0];return a?{top:a.rect.element.marginTop,bottom:a.rect.element.marginBottom}:{top:0,bottom:0}},fs=function(s){var a=0,c=0,f=s.ref.list,g=f.childViews[0],y=g.childViews.filter(function(ne){return ne.rect.element.height}),v=s.query("GET_ACTIVE_ITEMS").map(function(ne){return y.find(function(j){return j.id===ne.id})}).filter(function(ne){return ne});if(0===v.length)return{visual:a,bounds:c};var _=g.rect.element.width,I=Sa(g,v,f.dragCoordinates),T=v[0].rect.element,C=T.marginTop+T.marginBottom,N=T.width+(T.marginLeft+T.marginRight),k=T.height+C,H=void 0!==I&&I>=0?1:0,P=v.find(function(ne){return ne.markedForRemoval&&ne.opacity<.45})?-1:0,B=v.length+H+P,$=Math.round(_/N);return 1===$?v.forEach(function(ne){var j=ne.rect.element.height+C;c+=j,a+=j*ne.opacity}):(c=Math.ceil(B/$)*k,a=c),{visual:a,bounds:c}},bf=function(s){var a=s.ref.measureHeight||null;return{cappedHeight:parseInt(s.style.maxHeight,10)||null,fixedHeight:0===a?null:a}},$a=function(s,a){var c=s.query("GET_ALLOW_REPLACE"),f=s.query("GET_ALLOW_MULTIPLE"),g=s.query("GET_TOTAL_ITEMS"),y=s.query("GET_MAX_FILES"),v=a.length;return!f&&v>1||!!(oi(y=f||c?y:1)&&g+v>y)&&(s.dispatch("DID_THROW_MAX_FILES",{source:a,error:ut("warning",0,"Max files")}),!0)},za=function(s,a,c){var f=s.childViews[0];return Sa(f,a,{left:c.scopeLeft-f.rect.element.left,top:c.scopeTop-(s.rect.outer.top+s.rect.element.marginTop+s.rect.element.scrollTop)})},co=function(s){var a=s.query("GET_ALLOW_DROP"),c=s.query("GET_DISABLED"),f=a&&!c;if(f&&!s.ref.hopper){var g=If(s.element,function(y){if($a(s,y))return!1;var v=s.query("GET_BEFORE_DROP_FILE")||function(){return!0};return!s.query("GET_DROP_VALIDATION")||y.every(function(I){return st("ALLOW_HOPPER_ITEM",I,{query:s.query}).every(function(T){return!0===T})&&v(I)})},{filterItems:function(v){var _=s.query("GET_IGNORED_FILES");return v.filter(function(I){return!Gr(I)||!_.includes(I.name.toLowerCase())})},catchesDropsOnPage:s.query("GET_DROP_ON_PAGE"),requiresDropOnElement:s.query("GET_DROP_ON_ELEMENT")});g.onload=function(y,v){var I=s.ref.list.childViews[0].childViews.filter(function(C){return C.rect.element.height}),T=s.query("GET_ACTIVE_ITEMS").map(function(C){return I.find(function(S){return S.id===C.id})}).filter(function(C){return C});s.dispatch("ADD_ITEMS",{items:y,index:za(s.ref.list,T,v),interactionMethod:mn_DROP}),s.dispatch("DID_DROP",{position:v}),s.dispatch("DID_END_DRAG",{position:v})},g.ondragstart=function(y){s.dispatch("DID_START_DRAG",{position:y})},g.ondrag=Cl(function(y){s.dispatch("DID_DRAG",{position:y})}),g.ondragend=function(y){s.dispatch("DID_END_DRAG",{position:y})},s.ref.hopper=g,s.ref.drip=s.appendChildView(s.createChildView(Na))}else!f&&s.ref.hopper&&(s.ref.hopper.destroy(),s.ref.hopper=null,s.removeChildView(s.ref.drip))},qa=function(s,a){var c=s.query("GET_ALLOW_BROWSE"),f=s.query("GET_DISABLED"),g=c&&!f;g&&!s.ref.browser?s.ref.browser=s.appendChildView(s.createChildView(ml,Object.assign({},a,{onload:function(v){if($a(s,v))return!1;s.dispatch("ADD_ITEMS",{items:v,index:-1,interactionMethod:mn_BROWSE})}})),0):!g&&s.ref.browser&&(s.removeChildView(s.ref.browser),s.ref.browser=null)},Ml=function(s){var a=s.query("GET_ALLOW_PASTE"),c=s.query("GET_DISABLED"),f=a&&!c;f&&!s.ref.paster?(s.ref.paster=uo(),s.ref.paster.onload=function(g){s.dispatch("ADD_ITEMS",{items:g,index:-1,interactionMethod:mn_PASTE})}):!f&&s.ref.paster&&(s.ref.paster.destroy(),s.ref.paster=null)},Sf=Ft({DID_SET_ALLOW_BROWSE:function(s){qa(s.root,s.props)},DID_SET_ALLOW_DROP:function(s){co(s.root)},DID_SET_ALLOW_PASTE:function(s){Ml(s.root)},DID_SET_DISABLED:function(s){var a=s.root,c=s.props;co(a),Ml(a),qa(a,c),a.query("GET_DISABLED")?a.element.dataset.disabled="disabled":a.element.removeAttribute("data-disabled")}}),Si=ht({name:"root",read:function(s){var a=s.root;a.ref.measure&&(a.ref.measureHeight=a.ref.measure.offsetHeight)},create:function(s){var a=s.root,c=s.props,f=a.query("GET_ID");f&&(a.element.id=f);var g=a.query("GET_CLASS_NAME");g&&g.split(" ").filter(function(_){return _.length}).forEach(function(_){a.element.classList.add(_)}),a.ref.label=a.appendChildView(a.createChildView(ns,Object.assign({},c,{translateY:null,caption:a.query("GET_LABEL_IDLE")}))),a.ref.list=a.appendChildView(a.createChildView(hl,{translateY:null})),a.ref.panel=a.appendChildView(a.createChildView(eo,{name:"panel-root"})),a.ref.assistant=a.appendChildView(a.createChildView(Ua,Object.assign({},c))),a.ref.data=a.appendChildView(a.createChildView(kg,Object.assign({},c))),a.ref.measure=In("div"),a.ref.measure.style.height="100%",a.element.appendChild(a.ref.measure),a.ref.bounds=null,a.query("GET_STYLES").filter(function(_){return!Ln(_.value)}).map(function(_){a.element.dataset[_.name]=_.value}),a.ref.widthPrevious=null,a.ref.widthUpdated=Cl(function(){a.ref.updateHistory=[],a.dispatch("DID_RESIZE_ROOT")},250),a.ref.previousAspectRatio=null,a.ref.updateHistory=[];var y=window.matchMedia("(pointer: fine) and (hover: hover)").matches,v="PointerEvent"in window;a.query("GET_ALLOW_REORDER")&&v&&!y&&(a.element.addEventListener("touchmove",cs,{passive:!1}),a.element.addEventListener("gesturestart",cs))},write:function(s){var a=s.root,f=s.actions;if(Sf({root:a,props:s.props,actions:f}),f.filter(function(_e){return/^DID_SET_STYLE_/.test(_e.type)}).filter(function(_e){return!Ln(_e.data.value)}).map(function(_e){var Kn=_e.data,_r=bi(_e.type.substr(8).toLowerCase(),"_");a.element.dataset[_r]=Kn.value,a.invalidateLayout()}),!a.rect.element.hidden){a.rect.element.width!==a.ref.widthPrevious&&(a.ref.widthPrevious=a.rect.element.width,a.ref.widthUpdated());var g=a.ref.bounds;g||(g=a.ref.bounds=bf(a),a.element.removeChild(a.ref.measure),a.ref.measure=null);var y=a.ref,v=y.hopper,_=y.label,I=y.list,T=y.panel;v&&v.updateHopperState();var C=a.query("GET_PANEL_ASPECT_RATIO"),S=a.query("GET_ALLOW_MULTIPLE"),N=a.query("GET_TOTAL_ITEMS"),H=N===(S?a.query("GET_MAX_FILES")||1e6:1),P=f.find(function(_e){return"DID_ADD_ITEM"===_e.type});if(H&&P){var B=P.data.interactionMethod;_.opacity=0,S?_.translateY=-40:B===mn_API?_.translateX=40:_.translateY=B===mn_BROWSE?40:30}else H||(_.opacity=1,_.translateX=0,_.translateY=0);var $=Al(a),ne=fs(a),j=_.rect.element.height,Re=!S||H?0:j,ae=H?I.rect.element.marginTop:0,Ve=0===N?0:I.rect.element.marginBottom,xe=Re+ae+ne.visual+Ve,q=Re+ae+ne.bounds+Ve;if(I.translateY=Math.max(0,Re-I.rect.element.marginTop)-$.top,C){var te=a.rect.element.width,re=te*C;C!==a.ref.previousAspectRatio&&(a.ref.previousAspectRatio=C,a.ref.updateHistory=[]);var z=a.ref.updateHistory;z.push(te);if(z.length>4)for(var oe=z.length,je=oe-10,ke=0,se=oe;se>=je;se--)if(z[se]===z[se-2]&&ke++,ke>=2)return;T.scalable=!1,T.height=re;var x=re-Re-(Ve-$.bottom)-(H?ae:0);I.overflow=ne.visual>x?x:null,a.height=re}else if(g.fixedHeight){T.scalable=!1;var A=g.fixedHeight-Re-(Ve-$.bottom)-(H?ae:0);I.overflow=ne.visual>A?A:null}else if(g.cappedHeight){var Q=xe>=g.cappedHeight,fe=Math.min(g.cappedHeight,xe);T.scalable=!0,T.height=Q?fe:fe-$.top-$.bottom;var ge=fe-Re-(Ve-$.bottom)-(H?ae:0);I.overflow=xe>g.cappedHeight&&ne.visual>ge?ge:null,a.height=Math.min(g.cappedHeight,q-$.top-$.bottom)}else{var Ce=N>0?$.top+$.bottom:0;T.scalable=!0,T.height=Math.max(j,xe-Ce),a.height=Math.max(j,q-Ce)}}},destroy:function(s){var a=s.root;a.ref.paster&&a.ref.paster.destroy(),a.ref.hopper&&a.ref.hopper.destroy(),a.element.removeEventListener("touchmove",cs),a.element.removeEventListener("gesturestart",cs)},mixins:{styles:["height"]}}),fo=function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=null,c=qt(),f=Nn(ta(c),[Nd,Yu(c)],[hr,ve(c)]);f.dispatch("SET_OPTIONS",{options:s});var g=function(){document.hidden||f.dispatch("KICK")};document.addEventListener("visibilitychange",g);var y=null,v=!1,_=!1,I=null,T=null,C=function(){v||(v=!0),clearTimeout(y),y=setTimeout(function(){v=!1,I=null,T=null,_&&(_=!1,f.dispatch("DID_STOP_RESIZE"))},500)};window.addEventListener("resize",C);var S=Si(f,{id:Y()}),N=!1,k=!1,H={_read:function(){v&&(T=window.innerWidth,I||(I=T),!_&&T!==I&&(f.dispatch("DID_START_RESIZE"),_=!0)),k&&N&&(N=null===S.element.offsetParent),!N&&(S._read(),k=S.rect.element.hidden)},_write:function(x){var A=f.processActionQueue().filter(function(Q){return!/^SET_/.test(Q.type)});N&&!A.length||(ne(A),N=S._write(x,A,_),Br(f.query("GET_ITEMS")),N&&f.processDispatchQueue())}},P=function(x){return function(A){var Q={type:x};if(!A)return Q;if(A.hasOwnProperty("error")&&(Q.error=A.error?Object.assign({},A.error):null),A.status&&(Q.status=Object.assign({},A.status)),A.file&&(Q.output=A.file),A.source)Q.file=A.source;else if(A.item||A.id){var fe=A.item?A.item:f.query("GET_ITEM",A.id);Q.file=fe?Be(fe):null}return A.items&&(Q.items=A.items.map(Be)),/progress/.test(x)&&(Q.progress=A.progress),A.hasOwnProperty("origin")&&A.hasOwnProperty("target")&&(Q.origin=A.origin,Q.target=A.target),Q}},B={DID_DESTROY:P("destroy"),DID_INIT:P("init"),DID_THROW_MAX_FILES:P("warning"),DID_INIT_ITEM:P("initfile"),DID_START_ITEM_LOAD:P("addfilestart"),DID_UPDATE_ITEM_LOAD_PROGRESS:P("addfileprogress"),DID_LOAD_ITEM:P("addfile"),DID_THROW_ITEM_INVALID:[P("error"),P("addfile")],DID_THROW_ITEM_LOAD_ERROR:[P("error"),P("addfile")],DID_THROW_ITEM_REMOVE_ERROR:[P("error"),P("removefile")],DID_PREPARE_OUTPUT:P("preparefile"),DID_START_ITEM_PROCESSING:P("processfilestart"),DID_UPDATE_ITEM_PROCESS_PROGRESS:P("processfileprogress"),DID_ABORT_ITEM_PROCESSING:P("processfileabort"),DID_COMPLETE_ITEM_PROCESSING:P("processfile"),DID_COMPLETE_ITEM_PROCESSING_ALL:P("processfiles"),DID_REVERT_ITEM_PROCESSING:P("processfilerevert"),DID_THROW_ITEM_PROCESSING_ERROR:[P("error"),P("processfile")],DID_REMOVE_ITEM:P("removefile"),DID_UPDATE_ITEMS:P("updatefiles"),DID_ACTIVATE_ITEM:P("activatefile"),DID_REORDER_ITEMS:P("reorderfiles")},$=function(x){var A=Object.assign({pond:ke},x);delete A.type,S.element.dispatchEvent(new CustomEvent("FilePond:"+x.type,{detail:A,bubbles:!0,cancelable:!0,composed:!0}));var Q=[];x.hasOwnProperty("error")&&Q.push(x.error),x.hasOwnProperty("file")&&Q.push(x.file);var fe=["type","error","file"];Object.keys(x).filter(function(Ce){return!fe.includes(Ce)}).forEach(function(Ce){return Q.push(x[Ce])}),ke.fire.apply(ke,[x.type].concat(Q));var ge=f.query("GET_ON"+x.type.toUpperCase());ge&&ge.apply(void 0,Q)},ne=function(x){!x.length||x.filter(function(A){return B[A.type]}).forEach(function(A){var Q=B[A.type];(Array.isArray(Q)?Q:[Q]).forEach(function(fe){"DID_INIT_ITEM"===A.type?$(fe(A.data)):setTimeout(function(){$(fe(A.data))},0)})})},j=function(x){return f.dispatch("SET_OPTIONS",{options:x})},Re=function(x){return f.query("GET_ACTIVE_ITEM",x)},ae=function(x){return new Promise(function(A,Q){f.dispatch("REQUEST_ITEM_PREPARE",{query:x,success:function(ge){A(ge)},failure:function(ge){Q(ge)}})})},Ve=function(x){var A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(Q,fe){te([{source:x,options:A}],{index:A.index}).then(function(ge){return Q(ge&&ge[0])}).catch(fe)})},xe=function(x){return x.file&&x.id},q=function(x,A){return"object"==typeof x&&!xe(x)&&!A&&(A=x,x=void 0),f.dispatch("REMOVE_ITEM",Object.assign({},A,{query:x})),null===f.query("GET_ACTIVE_ITEM",x)},te=function(){for(var x=arguments.length,A=new Array(x),Q=0;Q<x;Q++)A[Q]=arguments[Q];return new Promise(function(fe,ge){var Ce=[],_e={};if(Ao(A[0]))Ce.push.apply(Ce,A[0]),Object.assign(_e,A[1]||{});else{var Oe=A[A.length-1];"object"==typeof Oe&&!(Oe instanceof Blob)&&Object.assign(_e,A.pop()),Ce.push.apply(Ce,A)}f.dispatch("ADD_ITEMS",{items:Ce,index:_e.index,interactionMethod:mn_API,success:fe,failure:ge})})},re=function(){return f.query("GET_ACTIVE_ITEMS")},z=function(x){return new Promise(function(A,Q){f.dispatch("REQUEST_ITEM_PROCESSING",{query:x,success:function(ge){A(ge)},failure:function(ge){Q(ge)}})})},ee=function(){for(var x=arguments.length,A=new Array(x),Q=0;Q<x;Q++)A[Q]=arguments[Q];var fe=Array.isArray(A[0])?A[0]:A,ge=fe.length?fe:re();return Promise.all(ge.map(ae))},oe=function(){for(var x=arguments.length,A=new Array(x),Q=0;Q<x;Q++)A[Q]=arguments[Q];var fe=Array.isArray(A[0])?A[0]:A;if(!fe.length){var ge=re().filter(function(Ce){return!(Ce.status===K.IDLE&&Ce.origin===yt.LOCAL)&&Ce.status!==K.PROCESSING&&Ce.status!==K.PROCESSING_COMPLETE&&Ce.status!==K.PROCESSING_REVERT_ERROR});return Promise.all(ge.map(z))}return Promise.all(fe.map(z))},je=function(){for(var x=arguments.length,A=new Array(x),Q=0;Q<x;Q++)A[Q]=arguments[Q];var ge,fe=Array.isArray(A[0])?A[0]:A;"object"==typeof fe[fe.length-1]?ge=fe.pop():Array.isArray(A[0])&&(ge=A[1]);var Ce=re();return fe.length?fe.map(function(Oe){return ri(Oe)?Ce[Oe]?Ce[Oe].id:null:Oe}).filter(function(Oe){return Oe}).map(function(Oe){return q(Oe,ge)}):Promise.all(Ce.map(function(Oe){return q(Oe,ge)}))},ke=Object.assign({},Ke(),{},H,{},na(f,c),{setOptions:j,addFile:Ve,addFiles:te,getFile:Re,processFile:z,prepareFile:ae,removeFile:q,moveFile:function(x,A){return f.dispatch("MOVE_ITEM",{query:x,index:A})},getFiles:re,processFiles:oe,removeFiles:je,prepareFiles:ee,sort:function(x){return f.dispatch("SORT",{compare:x})},browse:function(){var x=S.element.querySelector("input[type=file]");x&&x.click()},destroy:function(){ke.fire("destroy",S.element),f.dispatch("ABORT_ALL"),S._destroy(),window.removeEventListener("resize",C),document.removeEventListener("visibilitychange",g),f.dispatch("DID_DESTROY")},insertBefore:function(x){return Hu(S.element,x)},insertAfter:function(x){return Uu(S.element,x)},appendTo:function(x){return x.appendChild(S.element)},replaceElement:function(x){Hu(S.element,x),x.parentNode.removeChild(x),a=x},restoreElement:function(){!a||(Uu(a,S.element),S.element.parentNode.removeChild(S.element),a=null)},isAttachedTo:function(x){return S.element===x||a===x},element:{get:function(){return S.element}},status:{get:function(){return f.query("GET_STATUS")}}});return f.dispatch("DID_INIT"),Ge(ke)},Rl=function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a={};return Ee(qt(),function(f,g){a[f]=g[0]}),fo(Object.assign({},a,{},s))},Ol=function(s){return bi(s.replace(/^data-/,""))},Cf=function h(s,a){Ee(a,function(c,f){Ee(s,function(g,y){var v=new RegExp(c);if(v.test(g)&&(delete s[g],!1!==f)){if(Lt(f))return void(s[f]=y);var I=f.group;wt(f)&&!s[I]&&(s[I]={}),s[I][function(s){return s.charAt(0).toLowerCase()+s.slice(1)}(g.replace(v,""))]=y}}),f.mapping&&h(s[f.group],f.mapping)})},Yg=function(s){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=[];Ee(s.attributes,function(g){c.push(s.attributes[g])});var f=c.filter(function(g){return g.name}).reduce(function(g,y){var v=Ie(s,y.name);return g[Ol(y.name)]=v===y.name||v,g},{});return Cf(f,a),f},Af=function(s){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c={"^class$":"className","^multiple$":"allowMultiple","^capture$":"captureMethod","^webkitdirectory$":"allowDirectoriesOnly","^server":{group:"server",mapping:{"^process":{group:"process"},"^revert":{group:"revert"},"^fetch":{group:"fetch"},"^restore":{group:"restore"},"^load":{group:"load"}}},"^type$":!1,"^files$":!1};st("SET_ATTRIBUTE_TO_OPTION_MAP",c);var f=Object.assign({},a),g=Yg("FIELDSET"===s.nodeName?s.querySelector("input[type=file]"):s,c);Object.keys(g).forEach(function(v){wt(g[v])?(wt(f[v])||(f[v]={}),Object.assign(f[v],g[v])):f[v]=g[v]}),f.files=(a.files||[]).concat(Array.from(s.querySelectorAll("input:not([type=file])")).map(function(v){return{source:v.value,options:{type:v.dataset.type}}}));var y=Rl(f);return s.files&&Array.from(s.files).forEach(function(v){y.addFile(v)}),y.replaceElement(s),y},Mf=function(){return pn(arguments.length<=0?void 0:arguments[0])?Af.apply(void 0,arguments):Rl.apply(void 0,arguments)},Rf=["fire","_read","_write"],Pl=function(s){var a={};return zt(s,a,Rf),a},Qg=function(s,a){return s.replace(/(?:{([a-zA-Z]+)})/g,function(c,f){return a[f]})},tn=function(s){var a=new Blob(["(",s.toString(),")()"],{type:"application/javascript"}),c=URL.createObjectURL(a),f=new Worker(c);return{transfer:function(y,v){},post:function(y,v,_){var I=Y();f.onmessage=function(T){T.data.id===I&&v(T.data.message)},f.postMessage({id:I,message:y},_)},terminate:function(){f.terminate(),URL.revokeObjectURL(c)}}},Of=function(s){return new Promise(function(a,c){var f=new Image;f.onload=function(){a(f)},f.onerror=function(g){c(g)},f.src=s})},Nl=function(s,a){var c=s.slice(0,s.size,s.type);return c.lastModifiedDate=s.lastModifiedDate,c.name=a,c},Pf=function(s){return Nl(s,s.name)},Wa=[],Ht=function(s){Wa.includes(s)||(Wa.push(s),function(s){Object.assign(li,s)}(s({addFilter:$i,utils:{Type:L,forin:Ee,isString:Lt,isFile:Gr,toNaturalFileSize:Me,replaceInString:Qg,getExtensionFromFilename:fa,getFilenameWithoutExtension:Hd,guesstimateMimeType:yf,getFileFromBlob:zi,getFilenameFromURL:jo,createRoute:Ft,createWorker:tn,createView:ht,createItemAPI:Be,loadImage:Of,copyFile:Pf,renameFile:Nl,createBlob:xd,applyFilterChain:Jt,text:Z,getNumericAspectRatioFromString:_n},views:{fileActionButton:F}}).options))},hs=(h=Gt()&&!("[object OperaMini]"===Object.prototype.toString.call(window.operamini))&&"visibilityState"in document&&"Promise"in window&&"slice"in Blob.prototype&&"URL"in window&&"createObjectURL"in window.URL&&"performance"in window&&("supports"in(window.CSS||{})||/MSIE|Trident/.test(window.navigator.userAgent)),function(){return h}),Er={apps:[]},Qr=function(){};if(J.Status={},J.FileStatus={},J.FileOrigin={},J.OptionTypes={},J.create=Qr,J.destroy=Qr,J.parse=Qr,J.find=Qr,J.registerPlugin=Qr,J.getOptions=Qr,J.setOptions=Qr,hs()){!function(s,a){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60,f="__framePainter";if(window[f])return window[f].readers.push(s),void window[f].writers.push(a);window[f]={readers:[s],writers:[a]};var g=window[f],y=1e3/c,v=null,_=null,I=null,T=null,C=function(){document.hidden?(I=function(){return window.setTimeout(function(){return S(performance.now())},y)},T=function(){return window.clearTimeout(_)}):(I=function(){return window.requestAnimationFrame(S)},T=function(){return window.cancelAnimationFrame(_)})};document.addEventListener("visibilitychange",function(){T&&T(),C(),S(performance.now())});var S=function N(k){_=I(N),v||(v=k);var H=k-v;H<=y||(v=k-H%y,g.readers.forEach(function(P){return P()}),g.writers.forEach(function(P){return P(k)}))};C(),S(performance.now())}(function(){Er.apps.forEach(function(h){return h._read()})},function(h){Er.apps.forEach(function(s){return s._write(h)})});var Ka=function h(){document.dispatchEvent(new CustomEvent("FilePond:loaded",{detail:{supported:hs,create:J.create,destroy:J.destroy,parse:J.parse,find:J.find,registerPlugin:J.registerPlugin,setOptions:J.setOptions}})),document.removeEventListener("DOMContentLoaded",h)};"loading"!==document.readyState?setTimeout(function(){return Ka()},0):document.addEventListener("DOMContentLoaded",Ka);var kl=function(){return Ee(qt(),function(s,a){J.OptionTypes[s]=a[1]})};J.Status=Object.assign({},dr),J.FileOrigin=Object.assign({},yt),J.FileStatus=Object.assign({},K),J.OptionTypes={},kl(),J.create=function(){var s=Mf.apply(void 0,arguments);return s.on("destroy",J.destroy),Er.apps.push(s),Pl(s)},J.destroy=function(s){var a=Er.apps.findIndex(function(f){return f.isAttachedTo(s)});return a>=0&&(Er.apps.splice(a,1)[0].restoreElement(),!0)},J.parse=function(s){return Array.from(s.querySelectorAll(".filepond")).filter(function(f){return!Er.apps.find(function(g){return g.isAttachedTo(f)})}).map(function(f){return J.create(f)})},J.find=function(s){var a=Er.apps.find(function(c){return c.isAttachedTo(s)});return a?Pl(a):null},J.registerPlugin=function(){for(var s=arguments.length,a=new Array(s),c=0;c<s;c++)a[c]=arguments[c];a.forEach(Ht),kl()},J.getOptions=function(){var s={};return Ee(qt(),function(a,c){s[a]=c[0]}),s},J.setOptions=function(s){return wt(s)&&(Er.apps.forEach(function(a){a.setOptions(s)}),function(s){Ee(s,function(a,c){!li[a]||(li[a][0]=qe(c,li[a][0],li[a][1]))})}(s)),J.getOptions()}}J.supported=hs,Object.defineProperty(J,"__esModule",{value:!0})}(Je)}},lg={};function Pn(ft){var Je=lg[ft];if(void 0!==Je)return Je.exports;var J=lg[ft]={exports:{}};return xD[ft].call(J.exports,J,J.exports,Pn),J.exports}Pn.n=ft=>{var Je=ft&&ft.__esModule?()=>ft.default:()=>ft;return Pn.d(Je,{a:Je}),Je},Pn.d=(ft,Je)=>{for(var J in Je)Pn.o(Je,J)&&!Pn.o(ft,J)&&Object.defineProperty(ft,J,{enumerable:!0,get:Je[J]})},Pn.o=(ft,Je)=>Object.prototype.hasOwnProperty.call(ft,Je),(()=>{"use strict";function ft(t){return"function"==typeof t}let Je=!1;const J={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else Je&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Je=t},get useDeprecatedSynchronousErrorHandling(){return Je}};function pn(t){setTimeout(()=>{throw t},0)}const Nn={closed:!0,next(t){},error(t){if(J.useDeprecatedSynchronousErrorHandling)throw t;pn(t)},complete(){}},Bi=Array.isArray||(t=>t&&"number"==typeof t.length);function Ee(t){return null!==t&&"object"==typeof t}const Ie=(()=>{function t(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((n,r)=>`${r+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return t.prototype=Object.create(Error.prototype),t})();class Ae{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:r,_unsubscribe:i,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof Ae)n.remove(this);else if(null!==n)for(let u=0;u<n.length;++u)n[u].remove(this);if(ft(i)){r&&(this._unsubscribe=void 0);try{i.call(this)}catch(u){e=u instanceof Ie?At(u.errors):[u]}}if(Bi(o)){let u=-1,l=o.length;for(;++u<l;){const d=o[u];if(Ee(d))try{d.unsubscribe()}catch(p){e=e||[],p instanceof Ie?e=e.concat(At(p.errors)):e.push(p)}}}if(e)throw new Ie(e)}add(e){let n=e;if(!e)return Ae.EMPTY;switch(typeof e){case"function":n=new Ae(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof Ae)){const o=n;n=new Ae,n._subscriptions=[o]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:r}=n;if(null===r)n._parentOrParents=this;else if(r instanceof Ae){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}const i=this._subscriptions;return null===i?this._subscriptions=[n]:i.push(n),n}remove(e){const n=this._subscriptions;if(n){const r=n.indexOf(e);-1!==r&&n.splice(r,1)}}}var t;function At(t){return t.reduce((e,n)=>e.concat(n instanceof Ie?n.errors:n),[])}Ae.EMPTY=((t=new Ae).closed=!0,t);const Ut="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class et extends Ae{constructor(e,n,r){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Nn;break;case 1:if(!e){this.destination=Nn;break}if("object"==typeof e){e instanceof et?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new sn(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new sn(this,e,n,r)}}[Ut](){return this}static create(e,n,r){const i=new et(e,n,r);return i.syncErrorThrowable=!1,i}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class sn extends et{constructor(e,n,r,i){super(),this._parentSubscriber=e;let o,u=this;ft(n)?o=n:n&&(o=n.next,r=n.error,i=n.complete,n!==Nn&&(u=Object.create(n),ft(u.unsubscribe)&&this.add(u.unsubscribe.bind(u)),u.unsubscribe=this.unsubscribe.bind(this))),this._context=u,this._next=o,this._error=r,this._complete=i}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:n}=this;J.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?this.__tryOrSetError(n,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:n}=this,{useDeprecatedSynchronousErrorHandling:r}=J;if(this._error)r&&n.syncErrorThrowable?(this.__tryOrSetError(n,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(n.syncErrorThrowable)r?(n.syncErrorValue=e,n.syncErrorThrown=!0):pn(e),this.unsubscribe();else{if(this.unsubscribe(),r)throw e;pn(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const n=()=>this._complete.call(this._context);J.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,n){try{e.call(this._context,n)}catch(r){if(this.unsubscribe(),J.useDeprecatedSynchronousErrorHandling)throw r;pn(r)}}__tryOrSetError(e,n,r){if(!J.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{n.call(this._context,r)}catch(i){return J.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=i,e.syncErrorThrown=!0,!0):(pn(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const Gt="function"==typeof Symbol&&Symbol.observable||"@@observable";function Fn(t){return t}let tt=(()=>{class t{constructor(n){this._isScalar=!1,n&&(this._subscribe=n)}lift(n){const r=new t;return r.source=this,r.operator=n,r}subscribe(n,r,i){const{operator:o}=this,u=function gn(t,e,n){if(t){if(t instanceof et)return t;if(t[Ut])return t[Ut]()}return t||e||n?new et(t,e,n):new et(Nn)}(n,r,i);if(u.add(o?o.call(u,this.source):this.source||J.useDeprecatedSynchronousErrorHandling&&!u.syncErrorThrowable?this._subscribe(u):this._trySubscribe(u)),J.useDeprecatedSynchronousErrorHandling&&u.syncErrorThrowable&&(u.syncErrorThrowable=!1,u.syncErrorThrown))throw u.syncErrorValue;return u}_trySubscribe(n){try{return this._subscribe(n)}catch(r){J.useDeprecatedSynchronousErrorHandling&&(n.syncErrorThrown=!0,n.syncErrorValue=r),function ni(t){for(;t;){const{closed:e,destination:n,isStopped:r}=t;if(e||r)return!1;t=n&&n instanceof et?n:null}return!0}(n)?n.error(r):console.warn(r)}}forEach(n,r){return new(r=zs(r))((i,o)=>{let u;u=this.subscribe(l=>{try{n(l)}catch(d){o(d),u&&u.unsubscribe()}},o,i)})}_subscribe(n){const{source:r}=this;return r&&r.subscribe(n)}[Gt](){return this}pipe(...n){return 0===n.length?this:function Nr(t){return 0===t.length?Fn:1===t.length?t[0]:function(n){return t.reduce((r,i)=>i(r),n)}}(n)(this)}toPromise(n){return new(n=zs(n))((r,i)=>{let o;this.subscribe(u=>o=u,u=>i(u),()=>r(o))})}}return t.create=e=>new t(e),t})();function zs(t){if(t||(t=J.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const ii=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class Fu extends Ae{constructor(e,n){super(),this.subject=e,this.subscriber=n,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,n=e.observers;if(this.subject=null,!n||0===n.length||e.isStopped||e.closed)return;const r=n.indexOf(this.subscriber);-1!==r&&n.splice(r,1)}}class Jc extends et{constructor(e){super(e),this.destination=e}}let So=(()=>{class t extends tt{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Ut](){return new Jc(this)}lift(n){const r=new Lu(this,this);return r.operator=n,r}next(n){if(this.closed)throw new ii;if(!this.isStopped){const{observers:r}=this,i=r.length,o=r.slice();for(let u=0;u<i;u++)o[u].next(n)}}error(n){if(this.closed)throw new ii;this.hasError=!0,this.thrownError=n,this.isStopped=!0;const{observers:r}=this,i=r.length,o=r.slice();for(let u=0;u<i;u++)o[u].error(n);this.observers.length=0}complete(){if(this.closed)throw new ii;this.isStopped=!0;const{observers:n}=this,r=n.length,i=n.slice();for(let o=0;o<r;o++)i[o].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(n){if(this.closed)throw new ii;return super._trySubscribe(n)}_subscribe(n){if(this.closed)throw new ii;return this.hasError?(n.error(this.thrownError),Ae.EMPTY):this.isStopped?(n.complete(),Ae.EMPTY):(this.observers.push(n),new Fu(this,n))}asObservable(){const n=new tt;return n.source=this,n}}return t.create=(e,n)=>new Lu(e,n),t})();class Lu extends So{constructor(e,n){super(),this.destination=e,this.source=n}next(e){const{destination:n}=this;n&&n.next&&n.next(e)}error(e){const{destination:n}=this;n&&n.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:n}=this;return n?this.source.subscribe(e):Ae.EMPTY}}function qs(t){return t&&"function"==typeof t.schedule}function Ws(t,e){return function(r){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new Ys(t,e))}}class Ys{constructor(e,n){this.project=e,this.thisArg=n}call(e,n){return n.subscribe(new ed(e,this.project,this.thisArg))}}class ed extends et{constructor(e,n,r){super(e),this.project=n,this.count=0,this.thisArg=r||this}_next(e){let n;try{n=this.project.call(this.thisArg,e,this.count++)}catch(r){return void this.destination.error(r)}this.destination.next(n)}}const xu=t=>e=>{for(let n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()},Co=function nd(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),ku=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function Bu(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const Vu=t=>{if(t&&"function"==typeof t[Gt])return(t=>e=>{const n=t[Gt]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)})(t);if(ku(t))return xu(t);if(Bu(t))return(t=>e=>(t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,pn),e))(t);if(t&&"function"==typeof t[Co])return(t=>e=>{const n=t[Co]();for(;;){let r;try{r=n.next()}catch(i){return e.error(i),e}if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e})(t);{const n=`You provided ${Ee(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(n)}};function Qs(t,e){return new tt(n=>{const r=new Ae;let i=0;return r.add(e.schedule(function(){i!==t.length?(n.next(t[i++]),n.closed||r.add(this.schedule())):n.complete()})),r})}function Ln(t,e){return e?function Ao(t,e){if(null!=t){if(function Hu(t){return t&&"function"==typeof t[Gt]}(t))return function ju(t,e){return new tt(n=>{const r=new Ae;return r.add(e.schedule(()=>{const i=t[Gt]();r.add(i.subscribe({next(o){r.add(e.schedule(()=>n.next(o)))},error(o){r.add(e.schedule(()=>n.error(o)))},complete(){r.add(e.schedule(()=>n.complete()))}}))})),r})}(t,e);if(Bu(t))return function ht(t,e){return new tt(n=>{const r=new Ae;return r.add(e.schedule(()=>t.then(i=>{r.add(e.schedule(()=>{n.next(i),r.add(e.schedule(()=>n.complete()))}))},i=>{r.add(e.schedule(()=>n.error(i)))}))),r})}(t,e);if(ku(t))return Qs(t,e);if(function Uu(t){return t&&"function"==typeof t[Co]}(t)||"string"==typeof t)return function Ft(t,e){if(!t)throw new Error("Iterable cannot be null");return new tt(n=>{const r=new Ae;let i;return r.add(()=>{i&&"function"==typeof i.return&&i.return()}),r.add(e.schedule(()=>{i=t[Co](),r.add(e.schedule(function(){if(n.closed)return;let o,u;try{const l=i.next();o=l.value,u=l.done}catch(l){return void n.error(l)}u?n.complete():(n.next(o),this.schedule())}))})),r})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof tt?t:new tt(Vu(t))}class Gu extends et{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class $u extends et{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function Zs(t,e){if(!e.closed)return t instanceof tt?t.subscribe(e):Vu(t)(e)}function Lt(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(Lt((i,o)=>Ln(t(i,o)).pipe(Ws((u,l)=>e(i,u,o,l))),n)):("number"==typeof e&&(n=e),r=>r.lift(new zu(t,n)))}class zu{constructor(e,n=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=n}call(e,n){return n.subscribe(new Mo(e,this.project,this.concurrent))}}class Mo extends $u{constructor(e,n,r=Number.POSITIVE_INFINITY){super(e),this.project=n,this.concurrent=r,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let n;const r=this.index++;try{n=this.project(e,r)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(n)}_innerSub(e){const n=new Gu(this),r=this.destination;r.add(n);const i=Zs(e,n);i!==n&&r.add(i)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function oi(t=Number.POSITIVE_INFINITY){return Lt(Fn,t)}function Xs(t,e){return e?Qs(t,e):new tt(xu(t))}function Fr(...t){let e=Number.POSITIVE_INFINITY,n=null,r=t[t.length-1];return qs(r)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof r&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof tt?t[0]:oi(e)(Xs(t,n))}function qu(){return function(e){return e.lift(new Wu(e))}}class Wu{constructor(e){this.connectable=e}call(e,n){const{connectable:r}=this;r._refCount++;const i=new ad(e,r),o=n.subscribe(i);return i.closed||(i.connection=r.connect()),o}}class ad extends et{constructor(e,n){super(e),this.connectable=n}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const n=e._refCount;if(n<=0)return void(this.connection=null);if(e._refCount=n-1,n>1)return void(this.connection=null);const{connection:r}=this,i=e._connection;this.connection=null,i&&(!r||i===r)&&i.unsubscribe()}}class ud extends tt{constructor(e,n){super(),this.source=e,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new Ae,e.add(this.source.subscribe(new cd(this.getSubject(),this))),e.closed&&(this._connection=null,e=Ae.EMPTY)),e}refCount(){return qu()(this)}}const ld=(()=>{const t=ud.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class cd extends Jc{constructor(e,n){super(e),this.connectable=n}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const n=e._connection;e._refCount=0,e._subject=null,e._connection=null,n&&n.unsubscribe()}}}class fd{constructor(e,n){this.subjectFactory=e,this.selector=n}call(e,n){const{selector:r}=this,i=this.subjectFactory(),o=r(i).subscribe(e);return o.add(n.subscribe(i)),o}}function hd(){return new So}function qe(t){for(let e in t)if(t[e]===qe)return e;throw Error("Could not find renamed property on target object.")}function $e(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map($e).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function ta(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const Ro=qe({__forward_ref__:qe});function na(t){return t.__forward_ref__=na,t.toString=function(){return $e(this())},t}function ve(t){return function Yu(t){return"function"==typeof t&&t.hasOwnProperty(Ro)&&t.__forward_ref__===na}(t)?t():t}class Y extends Error{constructor(e,n){super(function Vi(t,e){return`NG0${Math.abs(t)}${e?": "+e:""}`}(e,n)),this.code=e}}function Mt(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():function de(t){return"string"==typeof t?t:null==t?"":String(t)}(t)}function ra(t,e){const n=e?` in ${e}`:"";throw new Y(-201,`No provider for ${Mt(t)} found${n}`)}function un(t,e){null==t&&function ze(t,e,n,r){throw new Error(`ASSERTION ERROR: ${t}`+(null==r?"":` [Expected=> ${n} ${r} ${e} <=Actual]`))}(e,t,null,"!=")}function Ye(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ur(t){return{providers:t.providers||[],imports:t.imports||[]}}function ji(t){return Ed(t,aa)||Ed(t,Ku)}function Ed(t,e){return t.hasOwnProperty(e)?t[e]:null}function _d(t){return t&&(t.hasOwnProperty(ua)||t.hasOwnProperty(Dd))?t[ua]:null}const aa=qe({\u0275prov:qe}),ua=qe({\u0275inj:qe}),Ku=qe({ngInjectableDef:qe}),Dd=qe({ngInjectorDef:qe});var me=(()=>((me=me||{})[me.Default=0]="Default",me[me.Host=1]="Host",me[me.Self=2]="Self",me[me.SkipSelf=4]="SkipSelf",me[me.Optional=8]="Optional",me))();let No;function yn(t){const e=No;return No=t,e}function Id(t,e,n){const r=ji(t);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&me.Optional?null:void 0!==e?e:void ra($e(t),"Injector")}function Lr(t){return{toString:t}.toString()}var xn=(()=>((xn=xn||{})[xn.OnPush=0]="OnPush",xn[xn.Default=1]="Default",xn))(),vn=(()=>(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(vn||(vn={})),vn))();const pg="undefined"!=typeof globalThis&&globalThis,gg="undefined"!=typeof window&&window,Td="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,We=pg||"undefined"!=typeof global&&global||gg||Td,si={},Qe=[],Fo=qe({\u0275cmp:qe}),Hi=qe({\u0275dir:qe}),Xu=qe({\u0275pipe:qe}),Ju=qe({\u0275mod:qe}),kn=qe({\u0275fac:qe}),Lo=qe({__NG_ELEMENT_ID__:qe});let mg=0;function ca(t){return Lr(()=>{const n={},r={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===xn.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Qe,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||vn.Emulated,id:"c",styles:t.styles||Qe,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,o=t.features,u=t.pipes;return r.id+=mg++,r.inputs=Rd(t.inputs,n),r.outputs=Rd(t.outputs),o&&o.forEach(l=>l(r)),r.directiveDefs=i?()=>("function"==typeof i?i():i).map(Cd):null,r.pipeDefs=u?()=>("function"==typeof u?u():u).map(Ad):null,r})}function Cd(t){return Rt(t)||function xr(t){return t[Hi]||null}(t)}function Ad(t){return function lr(t){return t[Xu]||null}(t)}const Md={};function ai(t){return Lr(()=>{const e={type:t.type,bootstrap:t.bootstrap||Qe,declarations:t.declarations||Qe,imports:t.imports||Qe,exports:t.exports||Qe,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(Md[t.id]=t.type),e})}function Rd(t,e){if(null==t)return si;const n={};for(const r in t)if(t.hasOwnProperty(r)){let i=t[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,e&&(e[i]=o)}return n}function Rt(t){return t[Fo]||null}function ln(t,e){const n=t[Ju]||null;if(!n&&!0===e)throw new Error(`Type ${$e(t)} does not have '\u0275mod' property.`);return n}function _n(t){return Array.isArray(t)&&"object"==typeof t[1]}function at(t){return Array.isArray(t)&&!0===t[1]}function dr(t){return 0!=(8&t.flags)}function Bo(t){return 2==(2&t.flags)}function Vo(t){return 1==(1&t.flags)}function Dn(t){return null!==t.template}function Od(t){return 0!=(512&t[2])}function Hr(t,e){return t.hasOwnProperty(kn)?t[kn]:null}class tl{constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function ci(){return Uo}function Uo(t){return t.type.prototype.ngOnChanges&&(t.setInput=nl),kd}function kd(){const t=ut(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===si)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function nl(t,e,n,r){const i=ut(t)||function Ur(t,e){return t[fr]=e}(t,{previous:si,current:null}),o=i.current||(i.current={}),u=i.previous,l=this.declaredInputs[n],d=u[l];o[l]=new tl(d&&d.currentValue,e,u===si),t[r]=e}ci.ngInherit=!0;const fr="__ngSimpleChanges__";function ut(t){return t[fr]||null}let $o;function it(t){return!!t.listen}const Gr={createRenderer:(t,e)=>function ma(){return void 0!==$o?$o:"undefined"!=typeof document?document:void 0}()};function pt(t){for(;Array.isArray(t);)t=t[0];return t}function Qt(t,e){return pt(e[t.index])}function di(t,e){return t.data[e]}function kt(t,e){const n=e[t];return _n(n)?n:n[0]}function ya(t){return 4==(4&t[2])}function Qi(t){return 128==(128&t[2])}function hr(t,e){return null==e?null:t[e]}function zo(t){t[18]=0}function In(t,e){t[5]+=e;let n=t,r=t[3];for(;null!==r&&(1===e&&1===n[5]||-1===e&&0===n[5]);)r[5]+=e,n=r,r=r[3]}const Z={lFrame:wa(null),bindingsEnabled:!0};function Ea(){return Z.bindingsEnabled}function F(){return Z.lFrame.lView}function Me(){return Z.lFrame.tView}function gt(){let t=_a();for(;null!==t&&64===t.type;)t=t.parent;return t}function _a(){return Z.lFrame.currentTNode}function Bn(t,e){const n=Z.lFrame;n.currentTNode=t,n.isParent=e}function qo(){return Z.lFrame.isParent}function gi(t,e){const n=Z.lFrame;n.bindingIndex=n.bindingRootIndex=t,Vt(e)}function Vt(t){Z.lFrame.currentDirectiveIndex=t}function Xi(){return Z.lFrame.currentQueryIndex}function Ta(t){Z.lFrame.currentQueryIndex=t}function Xd(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function sl(t,e,n){if(n&me.SkipSelf){let i=e,o=t;for(;!(i=i.parent,null!==i||n&me.Host||(i=Xd(o),null===i||(o=o[15],10&i.type))););if(null===i)return!1;e=i,t=o}const r=Z.lFrame=al();return r.currentTNode=e,r.lView=t,!0}function Ji(t){const e=al(),n=t[1];Z.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function al(){const t=Z.lFrame,e=null===t?null:t.child;return null===e?wa(t):e}function wa(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function Yo(){const t=Z.lFrame;return Z.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const $r=Yo;function Qo(){const t=Yo();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function pr(t){Z.lFrame.selectedIndex=t}function eo(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n<r;n++){const o=t.data[n].type.prototype,{ngAfterContentInit:u,ngAfterContentChecked:l,ngAfterViewInit:d,ngAfterViewChecked:p,ngOnDestroy:m}=o;u&&(t.contentHooks||(t.contentHooks=[])).push(-n,u),l&&((t.contentHooks||(t.contentHooks=[])).push(n,l),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,l)),d&&(t.viewHooks||(t.viewHooks=[])).push(-n,d),p&&((t.viewHooks||(t.viewHooks=[])).push(n,p),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,p)),null!=m&&(t.destroyHooks||(t.destroyHooks=[])).push(n,m)}}function Ko(t,e,n){ba(t,e,3,n)}function to(t,e,n,r){(3&t[2])===n&&ba(t,e,n,r)}function Zo(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function ba(t,e,n,r){const o=null!=r?r:-1,u=e.length-1;let l=0;for(let d=void 0!==r?65535&t[18]:0;d<u;d++)if("number"==typeof e[d+1]){if(l=e[d],null!=r&&l>=r)break}else e[d]<0&&(t[18]+=65536),(l<o||-1==o)&&(af(t,n,e,d),t[18]=(4294901760&t[18])+d+2),d++}function af(t,e,n,r){const i=n[r]<0,o=n[r+1],l=t[i?-n[r]:n[r]];if(i){if(t[2]>>11<t[18]>>16&&(3&t[2])===e){t[2]+=2048;try{o.call(l)}finally{}}}else try{o.call(l)}finally{}}class no{constructor(e,n,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function mi(t,e,n){const r=it(t);let i=0;for(;i<n.length;){const o=n[i];if("number"==typeof o){if(0!==o)break;i++;const u=n[i++],l=n[i++],d=n[i++];r?t.setAttribute(e,l,d,u):e.setAttributeNS(u,l,d)}else{const u=o,l=n[++i];Aa(u)?r&&t.setProperty(e,u,l):r?t.setAttribute(e,u,l):e.setAttribute(u,l),i++}}return i}function cl(t){return 3===t||4===t||6===t}function Aa(t){return 64===t.charCodeAt(0)}function Xo(t,e){if(null!==e&&0!==e.length)if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let r=0;r<e.length;r++){const i=e[r];"number"==typeof i?n=i:0===n||dl(t,n,i,null,-1===n||2===n?e[++r]:null)}}return t}function dl(t,e,n,r,i){let o=0,u=t.length;if(-1===e)u=-1;else for(;o<t.length;){const l=t[o++];if("number"==typeof l){if(l===e){u=-1;break}if(l>e){u=o-1;break}}}for(;o<t.length;){const l=t[o];if("number"==typeof l)break;if(l===n){if(null===r)return void(null!==i&&(t[o+1]=i));if(r===t[o+1])return void(t[o+2]=i)}o++,null!==r&&o++,null!==i&&o++}-1!==u&&(t.splice(u,0,e),o=u+1),t.splice(o++,0,n),null!==r&&t.splice(o++,0,r),null!==i&&t.splice(o++,0,i)}function fl(t){return-1!==t}function yi(t){return 32767&t}function vi(t,e){let n=function cf(t){return t>>16}(t),r=e;for(;n>0;)r=r[15],n--;return r}let Ma=!0;function Jo(t){const e=Ma;return Ma=t,e}let df=0;function Ei(t,e){const n=ts(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,es(r.data,t),es(e,null),es(r.blueprint,null));const i=_i(t,e),o=t.injectorIndex;if(fl(i)){const u=yi(i),l=vi(i,e),d=l[1].data;for(let p=0;p<8;p++)e[o+p]=l[u+p]|d[u+p]}return e[o+8]=i,o}function es(t,e){t.push(0,0,0,0,0,0,0,0,e)}function ts(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function _i(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,r=null,i=e;for(;null!==i;){const o=i[1],u=o.type;if(r=2===u?o.declTNode:1===u?i[6]:null,null===r)return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function ro(t,e,n){!function ff(t,e,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Lo)&&(r=n[Lo]),null==r&&(r=n[Lo]=df++);const i=255&r;e.data[t+(i>>5)]|=1<<i}(t,e,n)}function Ra(t,e,n){if(n&me.Optional)return t;ra(e,"NodeInjector")}function gl(t,e,n,r){if(n&me.Optional&&void 0===r&&(r=null),0==(n&(me.Self|me.Host))){const i=t[9],o=yn(void 0);try{return i?i.get(e,r,n&me.Optional):Id(e,r,n&me.Optional)}finally{yn(o)}}return Ra(r,e,n)}function ml(t,e,n,r=me.Default,i){if(null!==t){const o=function pf(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(Lo)?t[Lo]:void 0;return"number"==typeof e?e>=0?255&e:hf:e}(n);if("function"==typeof o){if(!sl(e,t,r))return r&me.Host?Ra(i,n,r):gl(e,n,r,i);try{const u=o(r);if(null!=u||r&me.Optional)return u;ra(n)}finally{$r()}}else if("number"==typeof o){let u=null,l=ts(t,e),d=-1,p=r&me.Host?e[16][6]:null;for((-1===l||r&me.SkipSelf)&&(d=-1===l?_i(t,e):e[l+8],-1!==d&&El(r,!1)?(u=e[1],l=yi(d),e=vi(d,e)):l=-1);-1!==l;){const m=e[1];if(vl(o,l,m.data)){const E=yl(l,e,n,u,r,p);if(E!==Oa)return E}d=e[l+8],-1!==d&&El(r,e[1].data[l+8]===p)&&vl(o,l,e)?(u=m,l=yi(d),e=vi(d,e)):l=-1}}}return gl(e,n,r,i)}const Oa={};function hf(){return new Di(gt(),F())}function yl(t,e,n,r,i,o){const u=e[1],l=u.data[t+8],m=ns(l,u,n,null==r?Bo(l)&&Ma:r!=u&&0!=(3&l.type),i&me.Host&&o===l);return null!==m?io(e,u,m,l):Oa}function ns(t,e,n,r,i){const o=t.providerIndexes,u=e.data,l=1048575&o,d=t.directiveStart,m=o>>20,D=i?l+m:t.directiveEnd;for(let w=r?l:l+m;w<D;w++){const b=u[w];if(w<d&&n===b||w>=d&&b.type===n)return w}if(i){const w=u[d];if(w&&Dn(w)&&w.type===n)return d}return null}function io(t,e,n,r){let i=t[n];const o=e.data;if(function uf(t){return t instanceof no}(i)){const u=i;u.resolving&&function cg(t,e){const n=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new Y(-200,`Circular dependency in DI detected for ${t}${n}`)}(Mt(o[n]));const l=Jo(u.canSeeViewProviders);u.resolving=!0;const d=u.injectImpl?yn(u.injectImpl):null;sl(t,r,me.Default);try{i=t[n]=u.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&function sf(t,e,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(r){const u=Uo(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,u),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,u)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o))}(n,o[n],e)}finally{null!==d&&yn(d),Jo(l),u.resolving=!1,$r()}}return i}function vl(t,e,n){return!!(n[e+(t>>5)]&1<<t)}function El(t,e){return!(t&me.Self||t&me.Host&&e)}class Di{constructor(e,n){this._tNode=e,this._lView=n}get(e,n,r){return ml(this._tNode,this._lView,e,r,n)}}class Fe{constructor(e,n){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=Ye({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}function fn(t,e){void 0===e&&(e=t);for(let n=0;n<t.length;n++){let r=t[n];Array.isArray(r)?(e===t&&(e=t.slice(0,n)),fn(r,e)):e!==t&&e.push(r)}return e}function Tn(t,e){t.forEach(n=>Array.isArray(n)?Tn(n,e):e(n))}function rs(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function is(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}const uo={},lo="ngTempTokenPath",ja=/\n/gm,wl="__source",bl=qe({provide:String,useValue:qe});let wi;function Sl(t){const e=wi;return wi=t,e}function Tf(t,e=me.Default){if(void 0===wi)throw new Y(203,"");return null===wi?Id(t,void 0,e):wi.get(t,e&me.Optional?null:void 0,e)}function Se(t,e=me.Default){return(function la(){return No}()||Tf)(ve(t),e)}const ls=Se;function Ua(t){const e=[];for(let n=0;n<t.length;n++){const r=ve(t[n]);if(Array.isArray(r)){if(0===r.length)throw new Y(900,"");let i,o=me.Default;for(let u=0;u<r.length;u++){const l=r[u],d=Cl(l);"number"==typeof d?-1===d?i=l.token:o|=d:i=l}e.push(Se(i,o))}else e.push(Se(r))}return e}function Cl(t){return t.__NG_DI_FLAG__}var tn=(()=>((tn=tn||{})[tn.Important=1]="Important",tn[tn.DashCase=2]="DashCase",tn))();const Ll="__ngContext__";function Ot(t,e){t[Ll]=e}function Qa(t){const e=function ho(t){return t[Ll]||null}(t);return e?Array.isArray(e)?e:e.lView:null}function a(t,e){return undefined(t,e)}function g(t){const e=t[3];return at(e)?e[3]:e}function _(t){return T(t[13])}function I(t){return T(t[4])}function T(t){for(;null!==t&&!at(t);)t=t[4];return t}function S(t,e,n,r,i){if(null!=r){let o,u=!1;at(r)?o=r:_n(r)&&(u=!0,r=r[0]);const l=pt(r);0===t&&null!==n?null==i?ke(e,n,l):je(e,n,l,i||null,!0):1===t&&null!==n?je(e,n,l,i||null,!0):2===t?function ps(t,e,n){const r=A(t,e);r&&function x(t,e,n,r){it(t)?t.removeChild(e,n,r):e.removeChild(n)}(t,r,e,n)}(e,l,u):3===t&&e.destroyNode(l),null!=o&&function jl(t,e,n,r,i){const o=n[7];o!==pt(n)&&S(e,t,r,o,i);for(let l=10;l<n.length;l++){const d=n[l];po(d[1],d,t,e,r,o)}}(e,t,o,n,i)}}function P(t,e,n){if(it(t))return t.createElement(e,n);{const r=null!==n?function Wi(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(n):null;return null===r?t.createElement(e):t.createElementNS(r,e)}}function Ve(t,e){const n=t[9],r=n.indexOf(e),i=e[3];1024&e[2]&&(e[2]&=-1025,In(i,-1)),n.splice(r,1)}function xe(t,e){if(t.length<=10)return;const n=10+e,r=t[n];if(r){const i=r[17];null!==i&&i!==t&&Ve(i,r),e>0&&(t[n-1][4]=r[4]);const o=is(t,10+e);!function B(t,e){po(t,e,e[11],2,null,null),e[0]=null,e[6]=null}(r[1],r);const u=o[19];null!==u&&u.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function q(t,e){if(!(256&e[2])){const n=e[11];it(n)&&n.destroyNode&&po(t,e,n,3,null,null),function j(t){let e=t[13];if(!e)return te(t[1],t);for(;e;){let n=null;if(_n(e))n=e[13];else{const r=e[10];r&&(n=r)}if(!n){for(;e&&!e[4]&&e!==t;)_n(e)&&te(e[1],e),e=e[3];null===e&&(e=t),_n(e)&&te(e[1],e),n=e&&e[4]}e=n}}(e)}}function te(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function z(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let r=0;r<n.length;r+=2){const i=e[n[r]];if(!(i instanceof no)){const o=n[r+1];if(Array.isArray(o))for(let u=0;u<o.length;u+=2){const l=i[o[u]],d=o[u+1];try{d.call(l)}finally{}}else try{o.call(i)}finally{}}}}(t,e),function re(t,e){const n=t.cleanup,r=e[7];let i=-1;if(null!==n)for(let o=0;o<n.length-1;o+=2)if("string"==typeof n[o]){const u=n[o+1],l="function"==typeof u?u(e):pt(e[u]),d=r[i=n[o+2]],p=n[o+3];"boolean"==typeof p?l.removeEventListener(n[o],d,p):p>=0?r[i=p]():r[i=-p].unsubscribe(),o+=2}else{const u=r[i=n[o+1]];n[o].call(u)}if(null!==r){for(let o=i+1;o<r.length;o++)r[o]();e[7]=null}}(t,e),1===e[1].type&&it(e[11])&&e[11].destroy();const n=e[17];if(null!==n&&at(e[3])){n!==e[3]&&Ve(n,e);const r=e[19];null!==r&&r.detachView(t)}}}function ee(t,e,n){return function oe(t,e,n){let r=e;for(;null!==r&&40&r.type;)r=(e=r).parent;if(null===r)return n[0];if(2&r.flags){const i=t.data[r.directiveStart].encapsulation;if(i===vn.None||i===vn.Emulated)return null}return Qt(r,n)}(t,e.parent,n)}function je(t,e,n,r,i){it(t)?t.insertBefore(e,n,r,i):e.insertBefore(n,r,i)}function ke(t,e,n){it(t)?t.appendChild(e,n):e.appendChild(n)}function se(t,e,n,r,i){null!==r?je(t,e,n,r,i):ke(t,e,n)}function A(t,e){return it(t)?t.parentNode(e):e.parentNode}let Ce=function ge(t,e,n){return 40&t.type?Qt(t,n):null};function Kn(t,e,n,r){const i=ee(t,r,e),o=e[11],l=function fe(t,e,n){return Ce(t,e,n)}(r.parent||e[6],r,e);if(null!=i)if(Array.isArray(n))for(let d=0;d<n.length;d++)se(o,i,n[d],l,!1);else se(o,i,n,l,!1)}function _r(t,e){if(null!==e){const n=e.type;if(3&n)return Qt(e,t);if(4&n)return Za(-1,t[e.index]);if(8&n){const r=e.child;if(null!==r)return _r(t,r);{const i=t[e.index];return at(i)?Za(-1,i):pt(i)}}if(32&n)return a(e,t)()||pt(t[e.index]);{const r=Bl(t,e);return null!==r?Array.isArray(r)?r[0]:_r(g(t[16]),r):_r(t,e.next)}}return null}function Bl(t,e){return null!==e?t[16][6].projection[e.projection]:null}function Za(t,e){const n=10+t+1;if(n<e.length){const r=e[n],i=r[1].firstChild;if(null!==i)return _r(r,i)}return e[7]}function Xa(t,e,n,r,i,o,u){for(;null!=n;){const l=r[n.index],d=n.type;if(u&&0===e&&(l&&Ot(pt(l),r),n.flags|=4),64!=(64&n.flags))if(8&d)Xa(t,e,n.child,r,i,o,!1),S(e,t,i,l,o);else if(32&d){const p=a(n,r);let m;for(;m=p();)S(e,t,i,m,o);S(e,t,i,l,o)}else 16&d?Vl(t,e,r,n,i,o):S(e,t,i,l,o);n=u?n.projectionNext:n.next}}function po(t,e,n,r,i,o){Xa(n,r,t.firstChild,e,i,o,!1)}function Vl(t,e,n,r,i,o){const u=n[16],d=u[6].projection[r.projection];if(Array.isArray(d))for(let p=0;p<d.length;p++)S(e,t,i,d[p],o);else Xa(t,e,d,u[3],i,o,!0)}function Ja(t,e,n){it(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function eu(t,e,n){it(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}function Hf(t){return t.ngOriginalError}function EI(t,...e){t.error(...e)}class ou{constructor(){this._console=console}handleError(e){const n=this._findOriginalError(e),r=function vI(t){return t&&t.ngErrorLogger||EI}(e);r(this._console,"ERROR",e),n&&r(this._console,"ORIGINAL ERROR",n)}_findOriginalError(e){let n=e&&Hf(e);for(;n&&Hf(n);)n=Hf(n);return n||null}}const SI=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(We))();function Tr(t){return t instanceof Function?t():t}function cm(t,e,n){let r=t.length;for(;;){const i=t.indexOf(e,n);if(-1===i)return i;if(0===i||t.charCodeAt(i-1)<=32){const o=e.length;if(i+o===r||t.charCodeAt(i+o)<=32)return i}n=i+1}}const dm="ng-template";function RI(t,e,n){let r=0;for(;r<t.length;){let i=t[r++];if(n&&"class"===i){if(i=t[r],-1!==cm(i.toLowerCase(),e,0))return!0}else if(1===i){for(;r<t.length&&"string"==typeof(i=t[r++]);)if(i.toLowerCase()===e)return!0;return!1}}return!1}function fm(t){return 4===t.type&&t.value!==dm}function OI(t,e,n){return e===(4!==t.type||n?t.value:dm)}function PI(t,e,n){let r=4;const i=t.attrs||[],o=function LI(t){for(let e=0;e<t.length;e++)if(cl(t[e]))return e;return t.length}(i);let u=!1;for(let l=0;l<e.length;l++){const d=e[l];if("number"!=typeof d){if(!u)if(4&r){if(r=2|1&r,""!==d&&!OI(t,d,n)||""===d&&1===e.length){if(Jn(r))return!1;u=!0}}else{const p=8&r?d:e[++l];if(8&r&&null!==t.attrs){if(!RI(t.attrs,p,n)){if(Jn(r))return!1;u=!0}continue}const E=NI(8&r?"class":d,i,fm(t),n);if(-1===E){if(Jn(r))return!1;u=!0;continue}if(""!==p){let D;D=E>o?"":i[E+1].toLowerCase();const w=8&r?D:null;if(w&&-1!==cm(w,p,0)||2&r&&p!==D){if(Jn(r))return!1;u=!0}}}}else{if(!u&&!Jn(r)&&!Jn(d))return!1;if(u&&Jn(d))continue;u=!1,r=d|1&r}}return Jn(r)||u}function Jn(t){return 0==(1&t)}function NI(t,e,n,r){if(null===e)return-1;let i=0;if(r||!n){let o=!1;for(;i<e.length;){const u=e[i];if(u===t)return i;if(3===u||6===u)o=!0;else{if(1===u||2===u){let l=e[++i];for(;"string"==typeof l;)l=e[++i];continue}if(4===u)break;if(0===u){i+=4;continue}}i+=o?1:2}return-1}return function xI(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const r=t[n];if("number"==typeof r)return-1;if(r===e)return n;n++}return-1}(e,t)}function hm(t,e,n=!1){for(let r=0;r<e.length;r++)if(PI(t,e[r],n))return!0;return!1}function pm(t,e){return t?":not("+e.trim()+")":e}function BI(t){let e=t[0],n=1,r=2,i="",o=!1;for(;n<t.length;){let u=t[n];if("string"==typeof u)if(2&r){const l=t[++n];i+="["+u+(l.length>0?'="'+l+'"':"")+"]"}else 8&r?i+="."+u:4&r&&(i+=" "+u);else""!==i&&!Jn(u)&&(e+=pm(o,i),i=""),r=u,o=o||!Jn(r);n++}return""!==i&&(e+=pm(o,i)),e}const ye={};function Sm(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const i=n[r],o=n[r+1];if(-1!==o){const u=t.data[o];Ta(i),u.contentQueries(2,e[o],o)}}}function su(t,e,n,r,i,o,u,l,d,p){const m=e.blueprint.slice();return m[0]=i,m[2]=140|r,zo(m),m[3]=m[15]=t,m[8]=n,m[10]=u||t&&t[10],m[11]=l||t&&t[11],m[12]=d||t&&t[12]||null,m[9]=p||t&&t[9]||null,m[6]=o,m[16]=2==e.type?t[16]:m,m}function ms(t,e,n,r,i){let o=t.data[e];if(null===o)o=function Jf(t,e,n,r,i){const o=_a(),u=qo(),d=t.data[e]=function rT(t,e,n,r,i,o){return{type:n,index:r,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,u?o:o&&o.parent,n,e,r,i);return null===t.firstChild&&(t.firstChild=d),null!==o&&(u?null==o.child&&null!==d.parent&&(o.child=d):null===o.next&&(o.next=d)),d}(t,e,n,r,i),function Zi(){return Z.lFrame.inI18n}()&&(o.flags|=64);else if(64&o.type){o.type=n,o.value=r,o.attrs=i;const u=function hi(){const t=Z.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}();o.injectorIndex=null===u?-1:u.injectorIndex}return Bn(o,!0),o}function ys(t,e,n,r){if(0===n)return-1;const i=e.length;for(let o=0;o<n;o++)e.push(r),t.blueprint.push(r),t.data.push(null);return i}function au(t,e,n){Ji(e);try{const r=t.viewQuery;null!==r&&uh(1,r,n);const i=t.template;null!==i&&Cm(t,e,i,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Sm(t,e),t.staticViewQueries&&uh(2,t.viewQuery,n);const o=t.components;null!==o&&function eT(t,e){for(let n=0;n<e.length;n++)DT(t,e[n])}(e,o)}catch(r){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),r}finally{e[2]&=-5,Qo()}}function vs(t,e,n,r){const i=e[2];if(256!=(256&i)){Ji(e);try{zo(e),function il(t){return Z.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==n&&Cm(t,e,n,2,r);const u=3==(3&i);if(u){const p=t.preOrderCheckHooks;null!==p&&Ko(e,p,null)}else{const p=t.preOrderHooks;null!==p&&to(e,p,0,null),Zo(e,0)}if(function ET(t){for(let e=_(t);null!==e;e=I(e)){if(!e[2])continue;const n=e[9];for(let r=0;r<n.length;r++){const i=n[r],o=i[3];0==(1024&i[2])&&In(o,1),i[2]|=1024}}}(e),function vT(t){for(let e=_(t);null!==e;e=I(e))for(let n=10;n<e.length;n++){const r=e[n],i=r[1];Qi(r)&&vs(i,r,i.template,r[8])}}(e),null!==t.contentQueries&&Sm(t,e),u){const p=t.contentCheckHooks;null!==p&&Ko(e,p)}else{const p=t.contentHooks;null!==p&&to(e,p,1),Zo(e,1)}!function XI(t,e){const n=t.hostBindingOpCodes;if(null!==n)try{for(let r=0;r<n.length;r++){const i=n[r];if(i<0)pr(~i);else{const o=i,u=n[++r],l=n[++r];gi(u,o),l(2,e[o])}}}finally{pr(-1)}}(t,e);const l=t.components;null!==l&&function JI(t,e){for(let n=0;n<e.length;n++)_T(t,e[n])}(e,l);const d=t.viewQuery;if(null!==d&&uh(2,d,r),u){const p=t.viewCheckHooks;null!==p&&Ko(e,p)}else{const p=t.viewHooks;null!==p&&to(e,p,2),Zo(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),e[2]&=-73,1024&e[2]&&(e[2]&=-1025,In(e[3],-1))}finally{Qo()}}}function tT(t,e,n,r){const i=e[10],u=ya(e);try{!u&&i.begin&&i.begin(),u&&au(t,e,r),vs(t,e,n,r)}finally{!u&&i.end&&i.end()}}function Cm(t,e,n,r,i){const o=function jt(){return Z.lFrame.selectedIndex}(),u=2&r;try{pr(-1),u&&e.length>20&&function gm(t,e,n,r){if(!r)if(3==(3&e[2])){const o=t.preOrderCheckHooks;null!==o&&Ko(e,o,n)}else{const o=t.preOrderHooks;null!==o&&to(e,o,0,n)}pr(n)}(t,e,20,!1),n(r,i)}finally{pr(o)}}function Mm(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=Wl(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function Wl(t,e,n,r,i,o,u,l,d,p){const m=20+r,E=m+i,D=function nT(t,e){const n=[];for(let r=0;r<e;r++)n.push(r<t?null:ye);return n}(m,E),w="function"==typeof p?p():p;return D[1]={type:t,blueprint:D,template:n,queries:null,viewQuery:l,declTNode:e,data:D.slice().fill(null,m),bindingStartIndex:m,expandoStartIndex:E,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof u?u():u,firstChild:null,schemas:d,consts:w,incompleteFirstPass:!1}}function Pm(t,e,n,r){const i=Um(e);null===n?i.push(r):(i.push(n),t.firstCreatePass&&Gm(t).push(r,i.length-1))}function Nm(t,e,n){for(let r in t)if(t.hasOwnProperty(r)){const i=t[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(e,i):n[r]=[e,i]}return n}function Lm(t,e,n,r,i,o){const u=o.hostBindings;if(u){let l=t.hostBindingOpCodes;null===l&&(l=t.hostBindingOpCodes=[]);const d=~e.index;(function lT(t){let e=t.length;for(;e>0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(l)!=d&&l.push(d),l.push(r,i,u)}}function xm(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function km(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function pT(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;Dn(e)&&(n[""]=t)}}function Bm(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function Vm(t,e,n,r,i){t.data[r]=i;const o=i.factory||(i.factory=Hr(i.type)),u=new no(o,Dn(i),null);t.blueprint[r]=u,n[r]=u,Lm(t,e,0,r,ys(t,n,i.hostVars,ye),i)}function gT(t,e,n){const r=Qt(e,t),i=Mm(n),o=t[10],u=Yl(t,su(t,i,null,n.onPush?64:16,r,e,o,o.createRenderer(r,n),null,null));t[e.index]=u}function mT(t,e,n,r,i,o){const u=o[e];if(null!==u){const l=r.setInput;for(let d=0;d<u.length;){const p=u[d++],m=u[d++],E=u[d++];null!==l?r.setInput(n,E,p,m):n[m]=E}}}function yT(t,e){let n=null,r=0;for(;r<e.length;){const i=e[r];if(0!==i)if(5!==i){if("number"==typeof i)break;t.hasOwnProperty(i)&&(null===n&&(n=[]),n.push(i,t[i],e[r+1])),r+=2}else r+=2;else r+=4}return n}function _T(t,e){const n=kt(e,t);if(Qi(n)){const r=n[1];80&n[2]?vs(r,n,r.template,n[8]):n[5]>0&&ih(n)}}function ih(t){for(let r=_(t);null!==r;r=I(r))for(let i=10;i<r.length;i++){const o=r[i];if(1024&o[2]){const u=o[1];vs(u,o,u.template,o[8])}else o[5]>0&&ih(o)}const n=t[1].components;if(null!==n)for(let r=0;r<n.length;r++){const i=kt(n[r],t);Qi(i)&&i[5]>0&&ih(i)}}function DT(t,e){const n=kt(e,t),r=n[1];(function IT(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])})(r,n),au(r,n,n[8])}function Yl(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function oh(t){for(;t;){t[2]|=64;const e=g(t);if(Od(t)&&!e)return t;t=e}return null}function Hm(t){!function sh(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],r=Qa(n),i=r[1];tT(i,r,i.template,n)}}(t[8])}function uh(t,e,n){Ta(0),e(t,n)}const wT=(()=>Promise.resolve(null))();function Um(t){return t[7]||(t[7]=[])}function Gm(t){return t.cleanup||(t.cleanup=[])}function zm(t,e){const n=t[9],r=n?n.get(ou,null):null;r&&r.handleError(e)}function qm(t,e,n,r,i){for(let o=0;o<n.length;){const u=n[o++],l=n[o++],d=e[u],p=t.data[u];null!==p.setInput?p.setInput(d,i,r,l):d[l]=i}}function Ql(t,e,n){let r=n?t.styles:null,i=n?t.classes:null,o=0;if(null!==e)for(let u=0;u<e.length;u++){const l=e[u];"number"==typeof l?o=l:1==o?i=ta(i,l):2==o&&(r=ta(r,l+": "+e[++u]+";"))}n?t.styles=r:t.stylesWithoutHost=r,n?t.classes=i:t.classesWithoutHost=i}const lh=new Fe("INJECTOR",-1);class Wm{get(e,n=uo){if(n===uo){const r=new Error(`NullInjectorError: No provider for ${$e(e)}!`);throw r.name="NullInjectorError",r}return n}}const ch=new Fe("Set Injector scope."),uu={},CT={};let dh;function Ym(){return void 0===dh&&(dh=new Wm),dh}function Qm(t,e=null,n=null,r){const i=Km(t,e,n,r);return i._resolveInjectorDefTypes(),i}function Km(t,e=null,n=null,r){return new AT(t,n,e||Ym(),r)}class AT{constructor(e,n,r,i=null){this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const o=[];n&&Tn(n,l=>this.processProvider(l,e,n)),Tn([e],l=>this.processInjectorType(l,[],o)),this.records.set(lh,Es(void 0,this));const u=this.records.get(ch);this.scope=null!=u?u.value:null,this.source=i||("object"==typeof e?null:$e(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,n=uo,r=me.Default){this.assertNotDestroyed();const i=Sl(this),o=yn(void 0);try{if(!(r&me.SkipSelf)){let l=this.records.get(e);if(void 0===l){const d=function xT(t){return"function"==typeof t||"object"==typeof t&&t instanceof Fe}(e)&&ji(e);l=d&&this.injectableDefInScope(d)?Es(fh(e),uu):null,this.records.set(e,l)}if(null!=l)return this.hydrate(e,l)}return(r&me.Self?Ym():this.parent).get(e,n=r&me.Optional&&n===uo?null:n)}catch(u){if("NullInjectorError"===u.name){if((u[lo]=u[lo]||[]).unshift($e(e)),i)throw u;return function wf(t,e,n,r){const i=t[lo];throw e[wl]&&i.unshift(e[wl]),t.message=function cs(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let i=$e(e);if(Array.isArray(e))i=e.map($e).join(" -> ");else if("object"==typeof e){let o=[];for(let u in e)if(e.hasOwnProperty(u)){let l=e[u];o.push(u+":"+("string"==typeof l?JSON.stringify(l):$e(l)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${t.replace(ja,"\n ")}`}("\n"+t.message,i,n,r),t.ngTokenPath=i,t[lo]=null,t}(u,e,"R3InjectorError",this.source)}throw u}finally{yn(o),Sl(i)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((r,i)=>e.push($e(i))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Y(205,!1)}processInjectorType(e,n,r){if(!(e=ve(e)))return!1;let i=_d(e);const o=null==i&&e.ngModule||void 0,u=void 0===o?e:o,l=-1!==r.indexOf(u);if(void 0!==o&&(i=_d(o)),null==i)return!1;if(null!=i.imports&&!l){let m;r.push(u);try{Tn(i.imports,E=>{this.processInjectorType(E,n,r)&&(void 0===m&&(m=[]),m.push(E))})}finally{}if(void 0!==m)for(let E=0;E<m.length;E++){const{ngModule:D,providers:w}=m[E];Tn(w,b=>this.processProvider(b,D,w||Qe))}}this.injectorDefTypes.add(u);const d=Hr(u)||(()=>new u);this.records.set(u,Es(d,uu));const p=i.providers;if(null!=p&&!l){const m=e;Tn(p,E=>this.processProvider(E,m,p))}return void 0!==o&&void 0!==e.providers}processProvider(e,n,r){let i=_s(e=ve(e))?e:ve(e&&e.provide);const o=function RT(t,e,n){return Xm(t)?Es(void 0,t.useValue):Es(function Zm(t,e,n){let r;if(_s(t)){const i=ve(t);return Hr(i)||fh(i)}if(Xm(t))r=()=>ve(t.useValue);else if(function PT(t){return!(!t||!t.useFactory)}(t))r=()=>t.useFactory(...Ua(t.deps||[]));else if(function OT(t){return!(!t||!t.useExisting)}(t))r=()=>Se(ve(t.useExisting));else{const i=ve(t&&(t.useClass||t.provide));if(!function FT(t){return!!t.deps}(t))return Hr(i)||fh(i);r=()=>new i(...Ua(t.deps))}return r}(t),uu)}(e);if(_s(e)||!0!==e.multi)this.records.get(i);else{let u=this.records.get(i);u||(u=Es(void 0,uu,!0),u.factory=()=>Ua(u.multi),this.records.set(i,u)),i=e,u.multi.push(e)}this.records.set(i,o)}hydrate(e,n){return n.value===uu&&(n.value=CT,n.value=n.factory()),"object"==typeof n.value&&n.value&&function LT(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(e){if(!e.providedIn)return!1;const n=ve(e.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function fh(t){const e=ji(t),n=null!==e?e.factory:Hr(t);if(null!==n)return n;if(t instanceof Fe)throw new Y(204,!1);if(t instanceof Function)return function MT(t){const e=t.length;if(e>0)throw function so(t,e){const n=[];for(let r=0;r<t;r++)n.push(e);return n}(e,"?"),new Y(204,!1);const n=function fg(t){const e=t&&(t[aa]||t[Ku]);if(e){const n=function hg(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Y(204,!1)}function Es(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Xm(t){return null!==t&&"object"==typeof t&&bl in t}function _s(t){return"function"==typeof t}let jn=(()=>{class t{static create(n,r){var i;if(Array.isArray(n))return Qm({name:""},r,n,"");{const o=null!==(i=n.name)&&void 0!==i?i:"";return Qm({name:o},n.parent,n.providers,o)}}}return t.THROW_IF_NOT_FOUND=uo,t.NULL=new Wm,t.\u0275prov=Ye({token:t,providedIn:"any",factory:()=>Se(lh)}),t.__NG_ELEMENT_ID__=-1,t})();function $T(t,e){eo(Qa(t)[1],gt())}let Kl=null;function Ds(){if(!Kl){const t=We.Symbol;if(t&&t.iterator)Kl=t.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let n=0;n<e.length;++n){const r=e[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(Kl=r)}}}return Kl}function be(t,e=me.Default){const n=F();return null===n?Se(t,e):ml(gt(),n,ve(t),e)}function Dh(t,e,n){const r=F();return function Kt(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}(r,function pi(){return Z.lFrame.bindingIndex++}(),e)&&function bn(t,e,n,r,i,o,u,l){const d=Qt(e,n);let m,p=e.inputs;!l&&null!=p&&(m=p[r])?(qm(t,n,m,r,i),Bo(e)&&function sT(t,e){const n=kt(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3&e.type&&(r=function oT(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(r),i=null!=u?u(i,e.value||"",r):i,it(o)?o.setProperty(d,r,i):Aa(r)||(d.setProperty?d.setProperty(r,i):d[r]=i))}(Me(),function nt(){const t=Z.lFrame;return di(t.tView,t.selectedIndex)}(),r,t,e,r[11],n,!1),Dh}function Ih(t,e,n,r,i){const u=i?"class":"style";qm(t,n,e.inputs[u],u,r)}function du(t,e,n,r){const i=F(),o=Me(),u=20+t,l=i[11],d=i[u]=P(l,e,function of(){return Z.lFrame.currentNamespace}()),p=o.firstCreatePass?function bw(t,e,n,r,i,o,u){const l=e.consts,p=ms(e,t,2,i,hr(l,o));return function nh(t,e,n,r){let i=!1;if(Ea()){const o=function fT(t,e,n){const r=t.directiveRegistry;let i=null;if(r)for(let o=0;o<r.length;o++){const u=r[o];hm(n,u.selectors,!1)&&(i||(i=[]),ro(Ei(n,e),t,u.type),Dn(u)?(km(t,n),i.unshift(u)):i.push(u))}return i}(t,e,n),u=null===r?null:{"":-1};if(null!==o){i=!0,Bm(n,t.data.length,o.length);for(let m=0;m<o.length;m++){const E=o[m];E.providersResolver&&E.providersResolver(E)}let l=!1,d=!1,p=ys(t,e,o.length,null);for(let m=0;m<o.length;m++){const E=o[m];n.mergedAttrs=Xo(n.mergedAttrs,E.hostAttrs),Vm(t,n,e,p,E),pT(p,E,u),null!==E.contentQueries&&(n.flags|=8),(null!==E.hostBindings||null!==E.hostAttrs||0!==E.hostVars)&&(n.flags|=128);const D=E.type.prototype;!l&&(D.ngOnChanges||D.ngOnInit||D.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index),l=!0),!d&&(D.ngOnChanges||D.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index),d=!0),p++}!function iT(t,e){const r=e.directiveEnd,i=t.data,o=e.attrs,u=[];let l=null,d=null;for(let p=e.directiveStart;p<r;p++){const m=i[p],E=m.inputs,D=null===o||fm(e)?null:yT(E,o);u.push(D),l=Nm(E,p,l),d=Nm(m.outputs,p,d)}null!==l&&(l.hasOwnProperty("class")&&(e.flags|=16),l.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=u,e.inputs=l,e.outputs=d}(t,n)}u&&function hT(t,e,n){if(e){const r=t.localNames=[];for(let i=0;i<e.length;i+=2){const o=n[e[i+1]];if(null==o)throw new Y(-301,!1);r.push(e[i],o)}}}(n,r,u)}return n.mergedAttrs=Xo(n.mergedAttrs,n.attrs),i}(e,n,p,hr(l,u)),null!==p.attrs&&Ql(p,p.attrs,!1),null!==p.mergedAttrs&&Ql(p,p.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,p),p}(u,o,i,0,e,n,r):o.data[u];Bn(p,!0);const m=p.mergedAttrs;null!==m&&mi(l,d,m);const E=p.classes;null!==E&&eu(l,d,E);const D=p.styles;return null!==D&&Ja(l,d,D),64!=(64&p.flags)&&Kn(o,i,d,p),0===function qd(){return Z.lFrame.elementDepthCount}()&&Ot(d,i),function Wd(){Z.lFrame.elementDepthCount++}(),Vo(p)&&(function eh(t,e,n){!Ea()||(function cT(t,e,n,r){const i=n.directiveStart,o=n.directiveEnd;t.firstCreatePass||Ei(n,e),Ot(r,e);const u=n.initialInputs;for(let l=i;l<o;l++){const d=t.data[l],p=Dn(d);p&&gT(e,n,d);const m=io(e,t,l,n);Ot(m,e),null!==u&&mT(0,l-i,m,d,0,u),p&&(kt(n.index,e)[8]=m)}}(t,e,n,Qt(n,e)),128==(128&n.flags)&&function dT(t,e,n){const r=n.directiveStart,i=n.directiveEnd,u=n.index,l=function Da(){return Z.lFrame.currentDirectiveIndex}();try{pr(u);for(let d=r;d<i;d++){const p=t.data[d],m=e[d];Vt(d),(null!==p.hostBindings||0!==p.hostVars||null!==p.hostAttrs)&&xm(p,m)}}finally{pr(-1),Vt(l)}}(t,e,n))}(o,i,p),function Am(t,e,n){if(dr(e)){const i=e.directiveEnd;for(let o=e.directiveStart;o<i;o++){const u=t.data[o];u.contentQueries&&u.contentQueries(1,n[o],o)}}}(o,p,i)),null!==r&&function th(t,e,n=Qt){const r=e.localNames;if(null!==r){let i=e.index+1;for(let o=0;o<r.length;o+=2){const u=r[o+1],l=-1===u?n(e,t):t[u];t[i++]=l}}}(i,p),du}function fu(){let t=gt();qo()?function Wo(){Z.lFrame.isParent=!1}():(t=t.parent,Bn(t,!1));const e=t;!function Yd(){Z.lFrame.elementDepthCount--}();const n=Me();return n.firstCreatePass&&(eo(n,t),dr(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function lf(t){return 0!=(16&t.flags)}(e)&&Ih(n,e,F(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function ll(t){return 0!=(32&t.flags)}(e)&&Ih(n,e,F(),e.stylesWithoutHost,!1),fu}function Th(t,e,n,r){return du(t,e,n,r),fu(),Th}function Sh(t){return!!t&&"function"==typeof t.then}const Aw=function Ny(t){return!!t&&"function"==typeof t.subscribe};function Ch(t,e,n,r){const i=F(),o=Me(),u=gt();return function Ly(t,e,n,r,i,o,u,l){const d=Vo(r),m=t.firstCreatePass&&Gm(t),E=e[8],D=Um(e);let w=!0;if(3&r.type||l){const O=Qt(r,e),V=l?l(O):O,R=D.length,G=l?ie=>l(pt(ie[r.index])):r.index;if(it(n)){let ie=null;if(!l&&d&&(ie=function Mw(t,e,n,r){const i=t.cleanup;if(null!=i)for(let o=0;o<i.length-1;o+=2){const u=i[o];if(u===n&&i[o+1]===r){const l=e[7],d=i[o+2];return l.length>d?l[d]:null}"string"==typeof u&&(o+=2)}return null}(t,e,i,r.index)),null!==ie)(ie.__ngLastListenerFn__||ie).__ngNextListenerFn__=o,ie.__ngLastListenerFn__=o,w=!1;else{o=Ah(r,e,E,o,!1);const we=n.listen(V,i,o);D.push(o,we),m&&m.push(i,G,R,R+1)}}else o=Ah(r,e,E,o,!0),V.addEventListener(i,o,u),D.push(o),m&&m.push(i,G,R,u)}else o=Ah(r,e,E,o,!1);const b=r.outputs;let M;if(w&&null!==b&&(M=b[i])){const O=M.length;if(O)for(let V=0;V<O;V+=2){const ot=e[M[V]][M[V+1]].subscribe(o),ct=D.length;D.push(o,ot),m&&m.push(i,r.index,ct,-(ct+1))}}}(o,i,i[11],u,t,e,!!n,r),Ch}function xy(t,e,n,r){try{return!1!==n(r)}catch(i){return zm(t,i),!1}}function Ah(t,e,n,r,i){return function o(u){if(u===Function)return r;const l=2&t.flags?kt(t.index,e):e;0==(32&e[2])&&oh(l);let d=xy(e,0,r,u),p=o.__ngNextListenerFn__;for(;p;)d=xy(e,0,p,u)&&d,p=p.__ngNextListenerFn__;return i&&!1===d&&(u.preventDefault(),u.returnValue=!1),d}}const ec="en-US";let Mv=ec;class eE{}class DS{resolveComponentFactory(e){throw function _S(t){const e=Error(`No component factory found for ${$e(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(e)}}let Ls=(()=>{class t{}return t.NULL=new DS,t})();function IS(){return xs(gt(),F())}function xs(t,e){return new yo(Qt(t,e))}let yo=(()=>{class t{constructor(n){this.nativeElement=n}}return t.__NG_ELEMENT_ID__=IS,t})();function TS(t){return t instanceof yo?t.nativeElement:t}class vu{}let SS=(()=>{class t{}return t.\u0275prov=Ye({token:t,providedIn:"root",factory:()=>null}),t})();class oc{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const CS=new oc("13.4.0"),Bh={};function sc(t,e,n,r,i=!1){for(;null!==n;){const o=e[n.index];if(null!==o&&r.push(pt(o)),at(o))for(let l=10;l<o.length;l++){const d=o[l],p=d[1].firstChild;null!==p&&sc(d[1],d,p,r)}const u=n.type;if(8&u)sc(t,e,n.child,r);else if(32&u){const l=a(n,e);let d;for(;d=l();)r.push(d)}else if(16&u){const l=Bl(e,n);if(Array.isArray(l))r.push(...l);else{const d=g(e[16]);sc(d[1],d,l,r,!0)}}n=i?n.projectionNext:n.next}return r}class Eu{constructor(e,n){this._lView=e,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,n=e[1];return sc(n,e,n.firstChild,[])}get context(){return this._lView[8]}set context(e){this._lView[8]=e}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[3];if(at(e)){const n=e[8],r=n?n.indexOf(this):-1;r>-1&&(xe(e,r),is(n,r))}this._attachedToViewContainer=!1}q(this._lView[1],this._lView)}onDestroy(e){Pm(this._lView[1],this._lView,null,e)}markForCheck(){oh(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function ah(t,e,n){const r=e[10];r.begin&&r.begin();try{vs(t,e,t.template,n)}catch(i){throw zm(e,i),i}finally{r.end&&r.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Y(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function ne(t,e){po(t,e,e[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Y(902,"");this._appRef=e}}class AS extends Eu{constructor(e){super(e),this._view=e}detectChanges(){Hm(this._view)}checkNoChanges(){}get context(){return null}}class rE extends Ls{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const n=Rt(e);return new Vh(n,this.ngModule)}}function iE(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}class Vh extends eE{constructor(e,n){super(),this.componentDef=e,this.ngModule=n,this.componentType=e.type,this.selector=function VI(t){return t.map(BI).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return iE(this.componentDef.inputs)}get outputs(){return iE(this.componentDef.outputs)}create(e,n,r,i){const o=(i=i||this.ngModule)?function RS(t,e){return{get:(n,r,i)=>{const o=t.get(n,Bh,i);return o!==Bh||r===Bh?o:e.get(n,r,i)}}}(e,i.injector):e,u=o.get(vu,Gr),l=o.get(SS,null),d=u.createRenderer(null,this.componentDef),p=this.componentDef.selectors[0][0]||"div",m=r?function Om(t,e,n){if(it(t))return t.selectRootElement(e,n===vn.ShadowDom);let r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(d,r,this.componentDef.encapsulation):P(u.createRenderer(null,this.componentDef),p,function MS(t){const e=t.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(p)),E=this.componentDef.onPush?576:528,D=function ly(t,e){return{components:[],scheduler:t||SI,clean:wT,playerHandler:e||null,flags:0}}(),w=Wl(0,null,null,1,0,null,null,null,null,null),b=su(null,w,D,E,null,null,u,d,l,o);let M,O;Ji(b);try{const V=function ay(t,e,n,r,i,o){const u=n[1];n[20]=t;const d=ms(u,20,2,"#host",null),p=d.mergedAttrs=e.hostAttrs;null!==p&&(Ql(d,p,!0),null!==t&&(mi(i,t,p),null!==d.classes&&eu(i,t,d.classes),null!==d.styles&&Ja(i,t,d.styles)));const m=r.createRenderer(t,e),E=su(n,Mm(e),null,e.onPush?64:16,n[20],d,r,m,o||null,null);return u.firstCreatePass&&(ro(Ei(d,n),u,e.type),km(u,d),Bm(d,n.length,1)),Yl(n,E),n[20]=E}(m,this.componentDef,b,u,d);if(m)if(r)mi(d,m,["ng-version",CS.full]);else{const{attrs:R,classes:G}=function jI(t){const e=[],n=[];let r=1,i=2;for(;r<t.length;){let o=t[r];if("string"==typeof o)2===i?""!==o&&e.push(o,t[++r]):8===i&&n.push(o);else{if(!Jn(i))break;i=o}r++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);R&&mi(d,m,R),G&&G.length>0&&eu(d,m,G.join(" "))}if(O=di(w,20),void 0!==n){const R=O.projection=[];for(let G=0;G<this.ngContentSelectors.length;G++){const ie=n[G];R.push(null!=ie?Array.from(ie):null)}}M=function uy(t,e,n,r,i){const o=n[1],u=function uT(t,e,n){const r=gt();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Vm(t,r,e,ys(t,e,1,null),n));const i=io(e,t,r.directiveStart,r);Ot(i,e);const o=Qt(r,e);return o&&Ot(o,e),i}(o,n,e);if(r.components.push(u),t[8]=u,i&&i.forEach(d=>d(u,e)),e.contentQueries){const d=gt();e.contentQueries(1,u,d.directiveStart)}const l=gt();return!o.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(pr(l.index),Lm(n[1],l,0,l.directiveStart,l.directiveEnd,e),xm(e,u)),u}(V,this.componentDef,b,D,[$T]),au(w,b,null)}finally{Qo()}return new PS(this.componentType,M,xs(O,b),b,O)}}class PS extends class ES{}{constructor(e,n,r,i,o){super(),this.location=r,this._rootLView=i,this._tNode=o,this.instance=n,this.hostView=this.changeDetectorRef=new AS(i),this.componentType=e}get injector(){return new Di(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}class ks{}const Bs=new Map;class aE extends ks{constructor(e,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new rE(this);const r=ln(e);this._bootstrapComponents=Tr(r.bootstrap),this._r3Injector=Km(e,n,[{provide:ks,useValue:this},{provide:Ls,useValue:this.componentFactoryResolver}],$e(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,n=jn.THROW_IF_NOT_FOUND,r=me.Default){return e===jn||e===ks||e===lh?this:this._r3Injector.get(e,n,r)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class jh extends class FS{}{constructor(e){super(),this.moduleType=e,null!==ln(e)&&function LS(t){const e=new Set;!function n(r){const i=ln(r,!0),o=i.id;null!==o&&(function oE(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${$e(e)} vs ${$e(e.name)}`)}(o,Bs.get(o),r),Bs.set(o,r));const u=Tr(i.imports);for(const l of u)e.has(l)||(e.add(l),n(l))}(t)}(e)}create(e){return new aE(this.moduleType,e)}}function Hh(t){return e=>{setTimeout(t,void 0,e)}}const Ar=class JS extends So{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,n,r){var i,o,u;let l=e,d=n||(()=>null),p=r;if(e&&"object"==typeof e){const E=e;l=null===(i=E.next)||void 0===i?void 0:i.bind(E),d=null===(o=E.error)||void 0===o?void 0:o.bind(E),p=null===(u=E.complete)||void 0===u?void 0:u.bind(E)}this.__isAsync&&(d=Hh(d),l&&(l=Hh(l)),p&&(p=Hh(p)));const m=super.subscribe({next:l,error:d,complete:p});return e instanceof Ae&&e.add(m),m}};function eC(){return this._results[Ds()]()}class Uh{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=Ds(),r=Uh.prototype;r[n]||(r[n]=eC)}get changes(){return this._changes||(this._changes=new Ar)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,n){return this._results.reduce(e,n)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,n){const r=this;r.dirty=!1;const i=fn(e);(this._changesDetected=!function vf(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){let i=t[r],o=e[r];if(n&&(i=n(i),o=n(o)),o!==i)return!1}return!0}(r._results,i,n))&&(r._results=i,r.length=i.length,r.last=i[this.length-1],r.first=i[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let Xr=(()=>{class t{}return t.__NG_ELEMENT_ID__=rC,t})();const tC=Xr,nC=class extends tC{constructor(e,n,r){super(),this._declarationLView=e,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(e){const n=this._declarationTContainer.tViews,r=su(this._declarationLView,n,e,16,null,n.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const o=this._declarationLView[19];return null!==o&&(r[19]=o.createEmbeddedView(n)),au(n,r,e),new Eu(r)}};function rC(){return ac(gt(),F())}function ac(t,e){return 4&t.type?new nC(e,t,xs(t,e)):null}let Mr=(()=>{class t{}return t.__NG_ELEMENT_ID__=iC,t})();function iC(){return gE(gt(),F())}const oC=Mr,hE=class extends oC{constructor(e,n,r){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=r}get element(){return xs(this._hostTNode,this._hostLView)}get injector(){return new Di(this._hostTNode,this._hostLView)}get parentInjector(){const e=_i(this._hostTNode,this._hostLView);if(fl(e)){const n=vi(e,this._hostLView),r=yi(e);return new Di(n[1].data[r+8],n)}return new Di(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const n=pE(this._lContainer);return null!==n&&n[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,n,r){const i=e.createEmbeddedView(n||{});return this.insert(i,r),i}createComponent(e,n,r,i,o){const u=e&&!function oo(t){return"function"==typeof t}(e);let l;if(u)l=n;else{const E=n||{};l=E.index,r=E.injector,i=E.projectableNodes,o=E.ngModuleRef}const d=u?e:new Vh(Rt(e)),p=r||this.parentInjector;if(!o&&null==d.ngModule){const D=(u?p:this.parentInjector).get(ks,null);D&&(o=D)}const m=d.create(p,i,void 0,o);return this.insert(m.hostView,l),m}insert(e,n){const r=e._lView,i=r[1];if(function cn(t){return at(t[3])}(r)){const m=this.indexOf(e);if(-1!==m)this.detach(m);else{const E=r[3],D=new hE(E,E[6],E[3]);D.detach(D.indexOf(e))}}const o=this._adjustIndex(n),u=this._lContainer;!function Re(t,e,n,r){const i=10+r,o=n.length;r>0&&(n[i-1][4]=e),r<o-10?(e[4]=n[i],rs(n,10+r,e)):(n.push(e),e[4]=null),e[3]=n;const u=e[17];null!==u&&n!==u&&function ae(t,e){const n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(u,e);const l=e[19];null!==l&&l.insertView(t),e[2]|=128}(i,r,u,o);const l=Za(o,u),d=r[11],p=A(d,u[7]);return null!==p&&function $(t,e,n,r,i,o){r[0]=i,r[6]=e,po(t,r,n,1,i,o)}(i,u[6],d,r,p,l),e.attachToViewContainerRef(),rs(Gh(u),o,e),e}move(e,n){return this.insert(e,n)}indexOf(e){const n=pE(this._lContainer);return null!==n?n.indexOf(e):-1}remove(e){const n=this._adjustIndex(e,-1),r=xe(this._lContainer,n);r&&(is(Gh(this._lContainer),n),q(r[1],r))}detach(e){const n=this._adjustIndex(e,-1),r=xe(this._lContainer,n);return r&&null!=is(Gh(this._lContainer),n)?new Eu(r):null}_adjustIndex(e,n=0){return null==e?this.length+n:e}};function pE(t){return t[8]}function Gh(t){return t[8]||(t[8]=[])}function gE(t,e){let n;const r=e[t.index];if(at(r))n=r;else{let i;if(8&t.type)i=pt(r);else{const o=e[11];i=o.createComment("");const u=Qt(t,e);je(o,A(o,u),i,function Q(t,e){return it(t)?t.nextSibling(e):e.nextSibling}(o,u),!1)}e[t.index]=n=function jm(t,e,n,r){return new Array(t,!0,!1,e,null,0,r,n,null,null)}(r,e,i,t),Yl(e,n)}return new hE(n,t,e)}class $h{constructor(e){this.queryList=e,this.matches=null}clone(){return new $h(this.queryList)}setDirty(){this.queryList.setDirty()}}class zh{constructor(e=[]){this.queries=e}createEmbeddedView(e){const n=e.queries;if(null!==n){const r=null!==e.contentQueries?e.contentQueries[0]:n.length,i=[];for(let o=0;o<r;o++){const u=n.getByIndex(o);i.push(this.queries[u.indexInDeclarationView].clone())}return new zh(i)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let n=0;n<this.queries.length;n++)null!==TE(e,n).matches&&this.queries[n].setDirty()}}class mE{constructor(e,n,r=null){this.predicate=e,this.flags=n,this.read=r}}class qh{constructor(e=[]){this.queries=e}elementStart(e,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(e,n)}elementEnd(e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(e)}embeddedTView(e){let n=null;for(let r=0;r<this.length;r++){const i=null!==n?n.length:0,o=this.getByIndex(r).embeddedTView(e,i);o&&(o.indexInDeclarationView=r,null!==n?n.push(o):n=[o])}return null!==n?new qh(n):null}template(e,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(e,n)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class Wh{constructor(e,n=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}elementStart(e,n){this.isApplyingToNode(n)&&this.matchTNode(e,n)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,n){this.elementStart(e,n)}embeddedTView(e,n){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,n),new Wh(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const n=this._declarationNodeIndex;let r=e.parent;for(;null!==r&&8&r.type&&r.index!==n;)r=r.parent;return n===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(e,n){const r=this.metadata.predicate;if(Array.isArray(r))for(let i=0;i<r.length;i++){const o=r[i];this.matchTNodeWithReadOption(e,n,uC(n,o)),this.matchTNodeWithReadOption(e,n,ns(n,e,o,!1,!1))}else r===Xr?4&n.type&&this.matchTNodeWithReadOption(e,n,-1):this.matchTNodeWithReadOption(e,n,ns(n,e,r,!1,!1))}matchTNodeWithReadOption(e,n,r){if(null!==r){const i=this.metadata.read;if(null!==i)if(i===yo||i===Mr||i===Xr&&4&n.type)this.addMatch(n.index,-2);else{const o=ns(n,e,i,!1,!1);null!==o&&this.addMatch(n.index,o)}else this.addMatch(n.index,r)}}addMatch(e,n){null===this.matches?this.matches=[e,n]:this.matches.push(e,n)}}function uC(t,e){const n=t.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===e)return n[r+1];return null}function cC(t,e,n,r){return-1===n?function lC(t,e){return 11&t.type?xs(t,e):4&t.type?ac(t,e):null}(e,t):-2===n?function dC(t,e,n){return n===yo?xs(e,t):n===Xr?ac(e,t):n===Mr?gE(e,t):void 0}(t,e,r):io(t,t[1],n,e)}function yE(t,e,n,r){const i=e[19].queries[r];if(null===i.matches){const o=t.data,u=n.matches,l=[];for(let d=0;d<u.length;d+=2){const p=u[d];l.push(p<0?null:cC(e,o[p],u[d+1],n.metadata.read))}i.matches=l}return i.matches}function Yh(t,e,n,r){const i=t.queries.getByIndex(n),o=i.matches;if(null!==o){const u=yE(t,e,i,n);for(let l=0;l<o.length;l+=2){const d=o[l];if(d>0)r.push(u[l/2]);else{const p=o[l+1],m=e[-d];for(let E=10;E<m.length;E++){const D=m[E];D[17]===D[3]&&Yh(D[1],D,p,r)}if(null!==m[9]){const E=m[9];for(let D=0;D<E.length;D++){const w=E[D];Yh(w[1],w,p,r)}}}}}return r}function vE(t){const e=F(),n=Me(),r=Xi();Ta(r+1);const i=TE(n,r);if(t.dirty&&ya(e)===(2==(2&i.metadata.flags))){if(null===i.matches)t.reset([]);else{const o=i.crossesNgTemplate?Yh(n,e,r,[]):yE(n,e,i,r);t.reset(o,TS),t.notifyOnChanges()}return!0}return!1}function EE(t,e,n){const r=Me();r.firstCreatePass&&(function IE(t,e,n){null===t.queries&&(t.queries=new qh),t.queries.track(new Wh(e,n))}(r,new mE(t,e,n),-1),2==(2&e)&&(r.staticViewQueries=!0)),function DE(t,e,n){const r=new Uh(4==(4&n));Pm(t,e,r,r.destroy),null===e[19]&&(e[19]=new zh),e[19].queries.push(new $h(r))}(r,F(),e)}function TE(t,e){return t.queries.getByIndex(e)}function cc(...t){}const jE=new Fe("Application Initializer");let ep=(()=>{class t{constructor(n){this.appInits=n,this.resolve=cc,this.reject=cc,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i<this.appInits.length;i++){const o=this.appInits[i]();if(Sh(o))n.push(o);else if(Aw(o)){const u=new Promise((l,d)=>{o.subscribe({complete:l,error:d})});n.push(u)}}Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),0===n.length&&r(),this.initialized=!0}}return t.\u0275fac=function(n){return new(n||t)(Se(jE,8))},t.\u0275prov=Ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Tu=new Fe("AppId",{providedIn:"root",factory:function HE(){return`${tp()}${tp()}${tp()}`}});function tp(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const UE=new Fe("Platform Initializer"),GE=new Fe("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),PC=new Fe("appBootstrapListener"),Oi=new Fe("LocaleId",{providedIn:"root",factory:()=>ls(Oi,me.Optional|me.SkipSelf)||function NC(){return"undefined"!=typeof $localize&&$localize.locale||ec}()}),kC=(()=>Promise.resolve(0))();function np(t){"undefined"==typeof Zone?kC.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Pt{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ar(!1),this.onMicrotaskEmpty=new Ar(!1),this.onStable=new Ar(!1),this.onError=new Ar(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&n,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function BC(){let t=We.requestAnimationFrame,e=We.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function HC(t){const e=()=>{!function jC(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(We,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,ip(t),t.isCheckStableRunning=!0,rp(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),ip(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,u,l)=>{try{return $E(t),n.invokeTask(i,o,u,l)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&e(),zE(t)}},onInvoke:(n,r,i,o,u,l,d)=>{try{return $E(t),n.invoke(i,o,u,l,d)}finally{t.shouldCoalesceRunChangeDetection&&e(),zE(t)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,ip(t),rp(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(n,r,i,o)=>(n.handleError(i,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Pt.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Pt.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,n,r){return this._inner.run(e,n,r)}runTask(e,n,r,i){const o=this._inner,u=o.scheduleEventTask("NgZoneEvent: "+i,e,VC,cc,cc);try{return o.runTask(u,n,r)}finally{o.cancelTask(u)}}runGuarded(e,n,r){return this._inner.runGuarded(e,n,r)}runOutsideAngular(e){return this._outer.run(e)}}const VC={};function rp(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function ip(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function $E(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function zE(t){t._nesting--,rp(t)}class UC{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ar,this.onMicrotaskEmpty=new Ar,this.onStable=new Ar,this.onError=new Ar}run(e,n,r){return e.apply(n,r)}runGuarded(e,n,r){return e.apply(n,r)}runOutsideAngular(e){return e()}runTask(e,n,r,i){return e.apply(n,r)}}let op=(()=>{class t{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Pt.assertNotInAngularZone(),np(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())np(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(u=>u.timeoutId!==o),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:o,updateCb:i})}whenStable(n,r,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,r,i){return[]}}return t.\u0275fac=function(n){return new(n||t)(Se(Pt))},t.\u0275prov=Ye({token:t,factory:t.\u0275fac}),t})(),GC=(()=>{class t{constructor(){this._applications=new Map,sp.addToWindow(this)}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return sp.findTestabilityInTree(this,n,r)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=Ye({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();class $C{addToWindow(e){}findTestabilityInTree(e,n,r){return null}}let sp=new $C,vo=null;const qE=new Fe("AllowMultipleToken"),WE=new Fe("PlatformOnDestroy");function YE(t,e,n=[]){const r=`Platform: ${e}`,i=new Fe(r);return(o=[])=>{let u=ap();if(!u||u.injector.get(qE,!1)){const l=[...n,...o,{provide:i,useValue:!0}];t?t(l):function YC(t){if(vo&&!vo.get(qE,!1))throw new Y(400,"");vo=t;const e=t.get(QE),n=t.get(UE,null);n&&n.forEach(r=>r())}(function KC(t=[],e){return jn.create({name:e,providers:[{provide:ch,useValue:"platform"},{provide:WE,useValue:()=>vo=null},...t]})}(l,r))}return function QC(t){const e=ap();if(!e)throw new Y(401,"");return e}()}}function ap(){var t;return null!==(t=null==vo?void 0:vo.get(QE))&&void 0!==t?t:null}let QE=(()=>{class t{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const l=function ZC(t,e){let n;return n="noop"===t?new UC:("zone.js"===t?void 0:t)||new Pt({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),d=[{provide:Pt,useValue:l}];return l.run(()=>{const p=jn.create({providers:d,parent:this.injector,name:n.moduleType.name}),m=n.create(p),E=m.injector.get(ou,null);if(!E)throw new Y(402,"");return l.runOutsideAngular(()=>{const D=l.onError.subscribe({next:w=>{E.handleError(w)}});m.onDestroy(()=>{lp(this._modules,m),D.unsubscribe()})}),function XC(t,e,n){try{const r=n();return Sh(r)?r.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(E,l,()=>{const D=m.injector.get(ep);return D.runInitializers(),D.donePromise.then(()=>(function Tb(t){un(t,"Expected localeId to be defined"),"string"==typeof t&&(Mv=t.toLowerCase().replace(/_/g,"-"))}(m.injector.get(Oi,ec)||ec),this._moduleDoBootstrap(m),m))})})}bootstrapModule(n,r=[]){const i=KE({},r);return function qC(t,e,n){const r=new jh(n);return Promise.resolve(r)}(0,0,n).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(n){const r=n.injector.get(up);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!n.instance.ngDoBootstrap)throw new Y(403,"");n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Y(404,"");this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(WE,null);null==n||n(),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(n){return new(n||t)(Se(jn))},t.\u0275prov=Ye({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function KE(t,e){return Array.isArray(e)?e.reduce(KE,t):Object.assign(Object.assign({},t),e)}let up=(()=>{class t{constructor(n,r,i,o){this._zone=n,this._injector=r,this._exceptionHandler=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const u=new tt(d=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{d.next(this._stable),d.complete()})}),l=new tt(d=>{let p;this._zone.runOutsideAngular(()=>{p=this._zone.onStable.subscribe(()=>{Pt.assertNotInAngularZone(),np(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,d.next(!0))})})});const m=this._zone.onUnstable.subscribe(()=>{Pt.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{d.next(!1)}))});return()=>{p.unsubscribe(),m.unsubscribe()}});this.isStable=Fr(u,l.pipe(function pd(){return t=>qu()(function Js(t,e){return function(r){let i;if(i="function"==typeof t?t:function(){return t},"function"==typeof e)return r.lift(new fd(i,e));const o=Object.create(r,ld);return o.source=r,o.subjectFactory=i,o}}(hd)(t))}()))}bootstrap(n,r){if(!this._initStatus.done)throw new Y(405,"");let i;i=n instanceof eE?n:this._injector.get(Ls).resolveComponentFactory(n),this.componentTypes.push(i.componentType);const o=function WC(t){return t.isBoundToModule}(i)?void 0:this._injector.get(ks),l=i.create(jn.NULL,[],r||i.selector,o),d=l.location.nativeElement,p=l.injector.get(op,null),m=p&&l.injector.get(GC);return p&&m&&m.registerApplication(d,p),l.onDestroy(()=>{this.detachView(l.hostView),lp(this.components,l),m&&m.unregisterApplication(d)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new Y(101,"");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;lp(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(PC,[]).concat(this._bootstrapListeners).forEach(i=>i(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(n){return new(n||t)(Se(Pt),Se(jn),Se(ou),Se(ep))},t.\u0275prov=Ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function lp(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}let XE=!0,t_=(()=>{class t{}return t.__NG_ELEMENT_ID__=t0,t})();function t0(t){return function n0(t,e,n){if(Bo(t)&&!n){const r=kt(t.index,e);return new Eu(r,r)}return 47&t.type?new Eu(e[16],e):null}(gt(),F(),16==(16&t))}const m0=YE(null,"core",[]);let y0=(()=>{class t{constructor(n){}}return t.\u0275fac=function(n){return new(n||t)(Se(up))},t.\u0275mod=ai({type:t}),t.\u0275inj=ur({}),t})(),pc=null;function bu(){return pc}const Un=new Fe("DocumentToken");let M_=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=ai({type:t}),t.\u0275inj=ur({}),t})();class Mp extends class mM extends class _0{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function E0(t){pc||(pc=t)}(new Mp)}onAndCancel(e,n,r){return e.addEventListener(n,r,!1),()=>{e.removeEventListener(n,r,!1)}}dispatchEvent(e,n){e.dispatchEvent(n)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,n){return(n=n||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,n){return"window"===n?window:"document"===n?e:"body"===n?e.body:null}getBaseHref(e){const n=function yM(){return Mu=Mu||document.querySelector("base"),Mu?Mu.getAttribute("href"):null}();return null==n?null:function vM(t){Sc=Sc||document.createElement("a"),Sc.setAttribute("href",t);const e=Sc.pathname;return"/"===e.charAt(0)?e:`/${e}`}(n)}resetBaseElement(){Mu=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function sA(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const r=n.indexOf("="),[i,o]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}(document.cookie,e)}}let Sc,Mu=null;const O_=new Fe("TRANSITION_ID"),_M=[{provide:jE,useFactory:function EM(t,e,n){return()=>{n.get(ep).donePromise.then(()=>{const r=bu(),i=e.querySelectorAll(`style[ng-transition="${t}"]`);for(let o=0;o<i.length;o++)r.remove(i[o])})}},deps:[O_,Un,jn],multi:!0}];class Rp{static init(){!function zC(t){sp=t}(new Rp)}addToWindow(e){We.getAngularTestability=(r,i=!0)=>{const o=e.findTestabilityInTree(r,i);if(null==o)throw new Error("Could not find testability for element.");return o},We.getAllAngularTestabilities=()=>e.getAllTestabilities(),We.getAllAngularRootElements=()=>e.getAllRootElements(),We.frameworkStabilizers||(We.frameworkStabilizers=[]),We.frameworkStabilizers.push(r=>{const i=We.getAllAngularTestabilities();let o=i.length,u=!1;const l=function(d){u=u||d,o--,0==o&&r(u)};i.forEach(function(d){d.whenStable(l)})})}findTestabilityInTree(e,n,r){if(null==n)return null;const i=e.getTestability(n);return null!=i?i:r?bu().isShadowRoot(n)?this.findTestabilityInTree(e,n.host,!0):this.findTestabilityInTree(e,n.parentElement,!0):null}}let DM=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=Ye({token:t,factory:t.\u0275fac}),t})();const Cc=new Fe("EventManagerPlugins");let Ac=(()=>{class t{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(i=>i.manager=this),this._plugins=n.slice().reverse()}addEventListener(n,r,i){return this._findPluginFor(r).addEventListener(n,r,i)}addGlobalEventListener(n,r,i){return this._findPluginFor(r).addGlobalEventListener(n,r,i)}getZone(){return this._zone}_findPluginFor(n){const r=this._eventNameToPlugin.get(n);if(r)return r;const i=this._plugins;for(let o=0;o<i.length;o++){const u=i[o];if(u.supports(n))return this._eventNameToPlugin.set(n,u),u}throw new Error(`No event manager plugin found for event ${n}`)}}return t.\u0275fac=function(n){return new(n||t)(Se(Cc),Se(Pt))},t.\u0275prov=Ye({token:t,factory:t.\u0275fac}),t})();class P_{constructor(e){this._doc=e}addGlobalEventListener(e,n,r){const i=bu().getGlobalEventTarget(this._doc,e);if(!i)throw new Error(`Unsupported event target ${i} for event ${n}`);return this.addEventListener(i,n,r)}}let N_=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(n){const r=new Set;n.forEach(i=>{this._stylesSet.has(i)||(this._stylesSet.add(i),r.add(i))}),this.onStylesAdded(r)}onStylesAdded(n){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=Ye({token:t,factory:t.\u0275fac}),t})(),Ru=(()=>{class t extends N_{constructor(n){super(),this._doc=n,this._hostNodes=new Map,this._hostNodes.set(n.head,[])}_addStylesToHost(n,r,i){n.forEach(o=>{const u=this._doc.createElement("style");u.textContent=o,i.push(r.appendChild(u))})}addHost(n){const r=[];this._addStylesToHost(this._stylesSet,n,r),this._hostNodes.set(n,r)}removeHost(n){const r=this._hostNodes.get(n);r&&r.forEach(F_),this._hostNodes.delete(n)}onStylesAdded(n){this._hostNodes.forEach((r,i)=>{this._addStylesToHost(n,i,r)})}ngOnDestroy(){this._hostNodes.forEach(n=>n.forEach(F_))}}return t.\u0275fac=function(n){return new(n||t)(Se(Un))},t.\u0275prov=Ye({token:t,factory:t.\u0275fac}),t})();function F_(t){bu().remove(t)}const Op={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Pp=/%COMP%/g;function Mc(t,e,n){for(let r=0;r<e.length;r++){let i=e[r];Array.isArray(i)?Mc(t,i,n):(i=i.replace(Pp,t),n.push(i))}return n}function k_(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let Rc=(()=>{class t{constructor(n,r,i){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new Np(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;switch(r.encapsulation){case vn.Emulated:{let i=this.rendererByCompId.get(r.id);return i||(i=new CM(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,i)),i.applyToHost(n),i}case 1:case vn.ShadowDom:return new AM(this.eventManager,this.sharedStylesHost,n,r);default:if(!this.rendererByCompId.has(r.id)){const i=Mc(r.id,r.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(n){return new(n||t)(Se(Ac),Se(Ru),Se(Tu))},t.\u0275prov=Ye({token:t,factory:t.\u0275fac}),t})();class Np{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,n){return n?document.createElementNS(Op[n]||n,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,n){e.appendChild(n)}insertBefore(e,n,r){e&&e.insertBefore(n,r)}removeChild(e,n){e&&e.removeChild(n)}selectRootElement(e,n){let r="string"==typeof e?document.querySelector(e):e;if(!r)throw new Error(`The selector "${e}" did not match any elements`);return n||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,n,r,i){if(i){n=i+":"+n;const o=Op[i];o?e.setAttributeNS(o,n,r):e.setAttribute(n,r)}else e.setAttribute(n,r)}removeAttribute(e,n,r){if(r){const i=Op[r];i?e.removeAttributeNS(i,n):e.removeAttribute(`${r}:${n}`)}else e.removeAttribute(n)}addClass(e,n){e.classList.add(n)}removeClass(e,n){e.classList.remove(n)}setStyle(e,n,r,i){i&(tn.DashCase|tn.Important)?e.style.setProperty(n,r,i&tn.Important?"important":""):e.style[n]=r}removeStyle(e,n,r){r&tn.DashCase?e.style.removeProperty(n):e.style[n]=""}setProperty(e,n,r){e[n]=r}setValue(e,n){e.nodeValue=n}listen(e,n,r){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,n,k_(r)):this.eventManager.addEventListener(e,n,k_(r))}}class CM extends Np{constructor(e,n,r,i){super(e),this.component=r;const o=Mc(i+"-"+r.id,r.styles,[]);n.addStyles(o),this.contentAttr=function wM(t){return"_ngcontent-%COMP%".replace(Pp,t)}(i+"-"+r.id),this.hostAttr=function bM(t){return"_nghost-%COMP%".replace(Pp,t)}(i+"-"+r.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,n){const r=super.createElement(e,n);return super.setAttribute(r,this.contentAttr,""),r}}class AM extends Np{constructor(e,n,r,i){super(e),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=Mc(i.id,i.styles,[]);for(let u=0;u<o.length;u++){const l=document.createElement("style");l.textContent=o[u],this.shadowRoot.appendChild(l)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,n){return super.appendChild(this.nodeOrShadowRoot(e),n)}insertBefore(e,n,r){return super.insertBefore(this.nodeOrShadowRoot(e),n,r)}removeChild(e,n){return super.removeChild(this.nodeOrShadowRoot(e),n)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let MM=(()=>{class t extends P_{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i){return n.addEventListener(r,i,!1),()=>this.removeEventListener(n,r,i)}removeEventListener(n,r,i){return n.removeEventListener(r,i)}}return t.\u0275fac=function(n){return new(n||t)(Se(Un))},t.\u0275prov=Ye({token:t,factory:t.\u0275fac}),t})();const V_=["alt","control","meta","shift"],OM={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},j_={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},PM={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let NM=(()=>{class t extends P_{constructor(n){super(n)}supports(n){return null!=t.parseEventName(n)}addEventListener(n,r,i){const o=t.parseEventName(r),u=t.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>bu().onAndCancel(n,o.domEventName,u))}static parseEventName(n){const r=n.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const o=t._normalizeKey(r.pop());let u="";if(V_.forEach(d=>{const p=r.indexOf(d);p>-1&&(r.splice(p,1),u+=d+".")}),u+=o,0!=r.length||0===o.length)return null;const l={};return l.domEventName=i,l.fullKey=u,l}static getEventFullKey(n){let r="",i=function FM(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&j_.hasOwnProperty(e)&&(e=j_[e]))}return OM[e]||e}(n);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),V_.forEach(o=>{o!=i&&PM[o](n)&&(r+=o+".")}),r+=i,r}static eventCallback(n,r,i){return o=>{t.getEventFullKey(o)===n&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return t.\u0275fac=function(n){return new(n||t)(Se(Un))},t.\u0275prov=Ye({token:t,factory:t.\u0275fac}),t})();const BM=YE(m0,"browser",[{provide:GE,useValue:"browser"},{provide:UE,useValue:function LM(){Mp.makeCurrent(),Rp.init()},multi:!0},{provide:Un,useFactory:function kM(){return function jd(t){$o=t}(document),document},deps:[]}]),VM=[{provide:ch,useValue:"root"},{provide:ou,useFactory:function xM(){return new ou},deps:[]},{provide:Cc,useClass:MM,multi:!0,deps:[Un,Pt,GE]},{provide:Cc,useClass:NM,multi:!0,deps:[Un]},{provide:Rc,useClass:Rc,deps:[Ac,Ru,Tu]},{provide:vu,useExisting:Rc},{provide:N_,useExisting:Ru},{provide:Ru,useClass:Ru,deps:[Un]},{provide:op,useClass:op,deps:[Pt]},{provide:Ac,useClass:Ac,deps:[Cc,Pt]},{provide:class pM{},useClass:DM,deps:[]}];let H_=(()=>{class t{constructor(n){if(n)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(n){return{ngModule:t,providers:[{provide:Tu,useValue:n.appId},{provide:O_,useExisting:Tu},_M]}}}return t.\u0275fac=function(n){return new(n||t)(Se(t,12))},t.\u0275mod=ai({type:t}),t.\u0275inj=ur({providers:VM,imports:[M_,y0]}),t})();"undefined"!=typeof window&&window;class KM extends Ae{constructor(e,n){super()}schedule(e,n=0){return this}}class ZM extends KM{constructor(e,n){super(e,n),this.scheduler=e,this.work=n,this.pending=!1}schedule(e,n=0){if(this.closed)return this;this.state=e;const r=this.id,i=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(i,r,n)),this.pending=!0,this.delay=n,this.id=this.id||this.requestAsyncId(i,this.id,n),this}requestAsyncId(e,n,r=0){return setInterval(e.flush.bind(e,this),r)}recycleAsyncId(e,n,r=0){if(null!==r&&this.delay===r&&!1===this.pending)return n;clearInterval(n)}execute(e,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(e,n);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,n){let i,r=!1;try{this.work(e)}catch(o){r=!0,i=!!o&&o||new Error(o)}if(r)return this.unsubscribe(),i}_unsubscribe(){const e=this.id,n=this.scheduler,r=n.actions,i=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&r.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(n,e,null)),this.delay=null}}let $_=(()=>{class t{constructor(n,r=t.now){this.SchedulerAction=n,this.now=r}schedule(n,r=0,i){return new this.SchedulerAction(this,n).schedule(i,r)}}return t.now=()=>Date.now(),t})();class Ni extends $_{constructor(e,n=$_.now){super(e,()=>Ni.delegate&&Ni.delegate!==this?Ni.delegate.now():n()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,n=0,r){return Ni.delegate&&Ni.delegate!==this?Ni.delegate.schedule(e,n,r):super.schedule(e,n,r)}flush(e){const{actions:n}=this;if(this.active)return void n.push(e);let r;this.active=!0;do{if(r=e.execute(e.state,e.delay))break}while(e=n.shift());if(this.active=!1,r){for(;e=n.shift();)e.unsubscribe();throw r}}}const eR=new class JM extends Ni{}(class XM extends ZM{constructor(e,n){super(e,n),this.scheduler=e,this.work=n}schedule(e,n=0){return n>0?super.schedule(e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)}execute(e,n){return n>0||this.closed?super.execute(e,n):this._execute(e,n)}requestAsyncId(e,n,r=0){return null!==r&&r>0||null===r&&this.delay>0?super.requestAsyncId(e,n,r):e.flush(this)}}),tR=new tt(t=>t.complete());function sR({error:t,subscriber:e}){e.error(t)}class zn{constructor(e,n,r){this.kind=e,this.value=n,this.error=r,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,n,r){switch(this.kind){case"N":return e&&e(this.value);case"E":return n&&n(this.error);case"C":return r&&r()}}accept(e,n,r){return e&&"function"==typeof e.next?this.observe(e):this.do(e,n,r)}toObservable(){switch(this.kind){case"N":return function iR(...t){let e=t[t.length-1];return qs(e)?(t.pop(),Qs(t,e)):Xs(t)}(this.value);case"E":return function oR(t,e){return new tt(e?n=>e.schedule(sR,0,{error:t,subscriber:n}):n=>n.error(t))}(this.error);case"C":return function nR(t){return t?function rR(t){return new tt(e=>t.schedule(()=>e.complete()))}(t):tR}()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new zn("N",e):zn.undefinedValueNotification}static createError(e){return new zn("E",void 0,e)}static createComplete(){return zn.completeNotification}}zn.completeNotification=new zn("C"),zn.undefinedValueNotification=new zn("N",void 0);class Oc extends et{constructor(e,n,r=0){super(e),this.scheduler=n,this.delay=r}static dispatch(e){const{notification:n,destination:r}=e;n.observe(r),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(Oc.dispatch,this.delay,new uR(e,this.destination)))}_next(e){this.scheduleMessage(zn.createNext(e))}_error(e){this.scheduleMessage(zn.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(zn.createComplete()),this.unsubscribe()}}class uR{constructor(e,n){this.notification=e,this.destination=n}}class lR extends So{constructor(e=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY,r){super(),this.scheduler=r,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){const n=this._events;n.push(e),n.length>this._bufferSize&&n.shift(),super.next(e)}nextTimeWindow(e){this._events.push(new cR(this._getNow(),e)),this._trimBufferThenGetEvents(),super.next(e)}_subscribe(e){const n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;let u;if(this.closed)throw new ii;if(this.isStopped||this.hasError?u=Ae.EMPTY:(this.observers.push(e),u=new Fu(this,e)),i&&e.add(e=new Oc(e,i)),n)for(let l=0;l<o&&!e.closed;l++)e.next(r[l]);else for(let l=0;l<o&&!e.closed;l++)e.next(r[l].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),u}_getNow(){return(this.scheduler||eR).now()}_trimBufferThenGetEvents(){const e=this._getNow(),n=this._bufferSize,r=this._windowTime,i=this._events,o=i.length;let u=0;for(;u<o&&!(e-i[u].time<r);)u++;return o>n&&(u=Math.max(u,o-n)),u>0&&i.splice(0,u),i}}class cR{constructor(e,n){this.time=e,this.value=n}}function z_(t,e){return"function"==typeof e?n=>n.pipe(z_((r,i)=>Ln(t(r,i)).pipe(Ws((o,u)=>e(r,o,i,u))))):n=>n.lift(new dR(t))}class dR{constructor(e){this.project=e}call(e,n){return n.subscribe(new fR(e,this.project))}}class fR extends $u{constructor(e,n){super(e),this.project=n,this.index=0}_next(e){let n;const r=this.index++;try{n=this.project(e,r)}catch(i){return void this.destination.error(i)}this._innerSub(n)}_innerSub(e){const n=this.innerSubscription;n&&n.unsubscribe();const r=new Gu(this),i=this.destination;i.add(r),this.innerSubscription=Zs(e,r),this.innerSubscription!==r&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;(!e||e.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const Pc={schedule(t,e){const n=setTimeout(t,e);return()=>clearTimeout(n)},scheduleBeforeRender(t){if("undefined"==typeof window)return Pc.schedule(t,0);if(void 0===window.requestAnimationFrame)return Pc.schedule(t,16);const e=window.requestAnimationFrame(t);return()=>window.cancelAnimationFrame(e)}};let Lp;function DR(t,e,n){let r=n;return function pR(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}(t)&&e.some((i,o)=>!("*"===i||!function mR(t,e){if(!Lp){const n=Element.prototype;Lp=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return t.nodeType===Node.ELEMENT_NODE&&Lp.call(t,e)}(t,i)||(r=o,0))),r}class TR{constructor(e,n){this.componentFactory=n.get(Ls).resolveComponentFactory(e)}create(e){return new wR(this.componentFactory,e)}}class wR{constructor(e,n){this.componentFactory=e,this.injector=n,this.eventEmitters=new lR(1),this.events=this.eventEmitters.pipe(z_(r=>Fr(...r))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:r})=>r)),this.ngZone=this.injector.get(Pt),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=Pc.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(e){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,n){this.runInZone(()=>{null!==this.componentRef?function yR(t,e){return t===e||t!=t&&e!=e}(n,this.getInputValue(e))&&(void 0!==n||!this.unchangedInputs.has(e))||(this.recordInputChange(e,n),this.unchangedInputs.delete(e),this.hasInputChanges=!0,this.componentRef.instance[e]=n,this.scheduleDetectChanges()):this.initialInputValues.set(e,n)})}initializeComponent(e){const n=jn.create({providers:[],parent:this.injector}),r=function _R(t,e){const n=t.childNodes,r=e.map(()=>[]);let i=-1;e.some((o,u)=>"*"===o&&(i=u,!0));for(let o=0,u=n.length;o<u;++o){const l=n[o],d=DR(l,e,i);-1!==d&&r[d].push(l)}return r}(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(n,r,e),this.viewChangeDetectorRef=this.componentRef.injector.get(t_),this.implementsOnChanges=function gR(t){return"function"==typeof t}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(up).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:e})=>{this.initialInputValues.has(e)&&this.setInputValue(e,this.initialInputValues.get(e))}),this.initialInputValues.clear()}initializeOutputs(e){const n=this.componentFactory.outputs.map(({propName:r,templateName:i})=>e.instance[r].pipe(Ws(u=>({name:i,value:u}))));this.eventEmitters.next(n)}callNgOnChanges(e){if(!this.implementsOnChanges||null===this.inputChanges)return;const n=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(n)}markViewForCheck(e){this.hasInputChanges&&(this.hasInputChanges=!1,e.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Pc.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(e,n){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const r=this.inputChanges[e];if(r)return void(r.currentValue=n);const i=this.unchangedInputs.has(e),o=i?void 0:this.getInputValue(e);this.inputChanges[e]=new tl(o,n,i)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}}class bR extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class q_{}const ei="*";function W_(t,e=null){return{type:2,steps:t,options:e}}function Y_(t){return{type:6,styles:t,offset:null}}function Q_(t){Promise.resolve(null).then(t)}class Ou{constructor(e=0,n=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+n}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Q_(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const n="start"==e?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}}class K_{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let n=0,r=0,i=0;const o=this.players.length;0==o?Q_(()=>this._onFinish()):this.players.forEach(u=>{u.onDone(()=>{++n==o&&this._onFinish()}),u.onDestroy(()=>{++r==o&&this._onDestroy()}),u.onStart(()=>{++i==o&&this._onStart()})}),this.totalTime=this.players.reduce((u,l)=>Math.max(u,l.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const n=e*this.totalTime;this.players.forEach(r=>{const i=r.totalTime?Math.min(1,n/r.totalTime):1;r.setPosition(i)})}getPosition(){const e=this.players.reduce((n,r)=>null===n||r.totalTime>n.totalTime?r:n,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const n="start"==e?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}}const Le=!1;function Z_(t){return new Y(3e3,Le)}function aO(){return"undefined"!=typeof window&&void 0!==window.document}function kp(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Fi(t){switch(t.length){case 0:return new Ou;case 1:return t[0];default:return new K_(t)}}function X_(t,e,n,r,i={},o={}){const u=[],l=[];let d=-1,p=null;if(r.forEach(m=>{const E=m.offset,D=E==d,w=D&&p||{};Object.keys(m).forEach(b=>{let M=b,O=m[b];if("offset"!==b)switch(M=e.normalizePropertyName(M,u),O){case"!":O=i[b];break;case ei:O=o[b];break;default:O=e.normalizeStyleValue(b,M,O,u)}w[M]=O}),D||l.push(w),p=w,d=E}),u.length)throw function KR(t){return new Y(3502,Le)}();return l}function Bp(t,e,n,r){switch(e){case"start":t.onStart(()=>r(n&&Vp(n,"start",t)));break;case"done":t.onDone(()=>r(n&&Vp(n,"done",t)));break;case"destroy":t.onDestroy(()=>r(n&&Vp(n,"destroy",t)))}}function Vp(t,e,n){const r=n.totalTime,o=jp(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==r?t.totalTime:r,!!n.disabled),u=t._data;return null!=u&&(o._data=u),o}function jp(t,e,n,r,i="",o=0,u){return{element:t,triggerName:e,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!u}}function Sn(t,e,n){let r;return t instanceof Map?(r=t.get(e),r||t.set(e,r=n)):(r=t[e],r||(r=t[e]=n)),r}function J_(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let Hp=(t,e)=>!1,eD=(t,e,n)=>[],tD=null;function Up(t){const e=t.parentNode||t.host;return e===tD?null:e}(kp()||"undefined"!=typeof Element)&&(aO()?(tD=(()=>document.documentElement)(),Hp=(t,e)=>{for(;e;){if(e===t)return!0;e=Up(e)}return!1}):Hp=(t,e)=>t.contains(e),eD=(t,e,n)=>{if(n)return Array.from(t.querySelectorAll(e));const r=t.querySelector(e);return r?[r]:[]});let _o=null,nD=!1;function rD(t){_o||(_o=function lO(){return"undefined"!=typeof document?document.body:null}()||{},nD=!!_o.style&&"WebkitAppearance"in _o.style);let e=!0;return _o.style&&!function uO(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in _o.style,!e&&nD&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in _o.style)),e}const iD=Hp,oD=eD;let sD=(()=>{class t{validateStyleProperty(n){return rD(n)}matchesElement(n,r){return!1}containsElement(n,r){return iD(n,r)}getParentElement(n){return Up(n)}query(n,r,i){return oD(n,r,i)}computeStyle(n,r,i){return i||""}animate(n,r,i,o,u,l=[],d){return new Ou(i,o)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=Ye({token:t,factory:t.\u0275fac}),t})(),Gp=(()=>{class t{}return t.NOOP=new sD,t})();const $p="ng-enter",Fc="ng-leave",Lc="ng-trigger",xc=".ng-trigger",uD="ng-animating",zp=".ng-animating";function Do(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:qp(parseFloat(e[1]),e[2])}function qp(t,e){return"s"===e?1e3*t:t}function kc(t,e,n){return t.hasOwnProperty("duration")?t:function fO(t,e,n){let i,o=0,u="";if("string"==typeof t){const l=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===l)return e.push(Z_()),{duration:0,delay:0,easing:""};i=qp(parseFloat(l[1]),l[2]);const d=l[3];null!=d&&(o=qp(parseFloat(d),l[4]));const p=l[5];p&&(u=p)}else i=t;if(!n){let l=!1,d=e.length;i<0&&(e.push(function AR(){return new Y(3100,Le)}()),l=!0),o<0&&(e.push(function MR(){return new Y(3101,Le)}()),l=!0),l&&e.splice(d,0,Z_())}return{duration:i,delay:o,easing:u}}(t,e,n)}function js(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function Li(t,e,n={}){if(e)for(let r in t)n[r]=t[r];else js(t,n);return n}function cD(t,e,n){return n?e+":"+n+";":""}function dD(t){let e="";for(let n=0;n<t.style.length;n++){const r=t.style.item(n);e+=cD(0,r,t.style.getPropertyValue(r))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=cD(0,gO(n),t.style[n]));t.setAttribute("style",e)}function Rr(t,e,n){t.style&&(Object.keys(e).forEach(r=>{const i=Yp(r);n&&!n.hasOwnProperty(r)&&(n[r]=t.style[i]),t.style[i]=e[r]}),kp()&&dD(t))}function Io(t,e){t.style&&(Object.keys(e).forEach(n=>{const r=Yp(n);t.style[r]=""}),kp()&&dD(t))}function Pu(t){return Array.isArray(t)?1==t.length?t[0]:W_(t):t}const Wp=new RegExp("{{\\s*(.+?)\\s*}}","g");function fD(t){let e=[];if("string"==typeof t){let n;for(;n=Wp.exec(t);)e.push(n[1]);Wp.lastIndex=0}return e}function Bc(t,e,n){const r=t.toString(),i=r.replace(Wp,(o,u)=>{let l=e[u];return e.hasOwnProperty(u)||(n.push(function OR(t){return new Y(3003,Le)}()),l=""),l.toString()});return i==r?t:i}function Vc(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const pO=/-+([a-z0-9])/g;function Yp(t){return t.replace(pO,(...e)=>e[1].toUpperCase())}function gO(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Cn(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw function PR(t){return new Y(3004,Le)}()}}function hD(t,e){return window.getComputedStyle(t)[e]}function DO(t,e){const n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(r=>function IO(t,e,n){if(":"==t[0]){const d=function TO(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(n,r)=>parseFloat(r)>parseFloat(n);case":decrement":return(n,r)=>parseFloat(r)<parseFloat(n);default:return e.push(function qR(t){return new Y(3016,Le)}()),"* => *"}}(t,n);if("function"==typeof d)return void e.push(d);t=d}const r=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push(function zR(t){return new Y(3015,Le)}()),e;const i=r[1],o=r[2],u=r[3];e.push(pD(i,u));"<"==o[0]&&!("*"==i&&"*"==u)&&e.push(pD(u,i))}(r,n,e)):n.push(t),n}const Gc=new Set(["true","1"]),$c=new Set(["false","0"]);function pD(t,e){const n=Gc.has(t)||$c.has(t),r=Gc.has(e)||$c.has(e);return(i,o)=>{let u="*"==t||t==i,l="*"==e||e==o;return!u&&n&&"boolean"==typeof i&&(u=i?Gc.has(t):$c.has(t)),!l&&r&&"boolean"==typeof o&&(l=o?Gc.has(e):$c.has(e)),u&&l}}const wO=new RegExp("s*:selfs*,?","g");function Qp(t,e,n,r){return new bO(t).build(e,n,r)}class bO{constructor(e){this._driver=e}build(e,n,r){const i=new AO(n);this._resetContextStyleTimingState(i);const o=Cn(this,Pu(e),i);return i.unsupportedCSSPropertiesFound.size&&i.unsupportedCSSPropertiesFound.keys(),o}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,n){let r=n.queryCount=0,i=n.depCount=0;const o=[],u=[];return"@"==e.name.charAt(0)&&n.errors.push(function FR(){return new Y(3006,Le)}()),e.definitions.forEach(l=>{if(this._resetContextStyleTimingState(n),0==l.type){const d=l,p=d.name;p.toString().split(/\s*,\s*/).forEach(m=>{d.name=m,o.push(this.visitState(d,n))}),d.name=p}else if(1==l.type){const d=this.visitTransition(l,n);r+=d.queryCount,i+=d.depCount,u.push(d)}else n.errors.push(function LR(){return new Y(3007,Le)}())}),{type:7,name:e.name,states:o,transitions:u,queryCount:r,depCount:i,options:null}}visitState(e,n){const r=this.visitStyle(e.styles,n),i=e.options&&e.options.params||null;if(r.containsDynamicStyles){const o=new Set,u=i||{};r.styles.forEach(l=>{if(zc(l)){const d=l;Object.keys(d).forEach(p=>{fD(d[p]).forEach(m=>{u.hasOwnProperty(m)||o.add(m)})})}}),o.size&&(Vc(o.values()),n.errors.push(function xR(t,e){return new Y(3008,Le)}()))}return{type:0,name:e.name,style:r,options:i?{params:i}:null}}visitTransition(e,n){n.queryCount=0,n.depCount=0;const r=Cn(this,Pu(e.animation),n);return{type:1,matchers:DO(e.expr,n.errors),animation:r,queryCount:n.queryCount,depCount:n.depCount,options:To(e.options)}}visitSequence(e,n){return{type:2,steps:e.steps.map(r=>Cn(this,r,n)),options:To(e.options)}}visitGroup(e,n){const r=n.currentTime;let i=0;const o=e.steps.map(u=>{n.currentTime=r;const l=Cn(this,u,n);return i=Math.max(i,n.currentTime),l});return n.currentTime=i,{type:3,steps:o,options:To(e.options)}}visitAnimate(e,n){const r=function RO(t,e){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return Kp(kc(t,e).duration,0,"");const n=t;if(n.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=Kp(0,0,"");return o.dynamic=!0,o.strValue=n,o}const i=kc(n,e);return Kp(i.duration,i.delay,i.easing)}(e.timings,n.errors);n.currentAnimateTimings=r;let i,o=e.styles?e.styles:Y_({});if(5==o.type)i=this.visitKeyframes(o,n);else{let u=e.styles,l=!1;if(!u){l=!0;const p={};r.easing&&(p.easing=r.easing),u=Y_(p)}n.currentTime+=r.duration+r.delay;const d=this.visitStyle(u,n);d.isEmptyStep=l,i=d}return n.currentAnimateTimings=null,{type:4,timings:r,style:i,options:null}}visitStyle(e,n){const r=this._makeStyleAst(e,n);return this._validateStyleAst(r,n),r}_makeStyleAst(e,n){const r=[];Array.isArray(e.styles)?e.styles.forEach(u=>{"string"==typeof u?u==ei?r.push(u):n.errors.push(function kR(t){return new Y(3002,Le)}()):r.push(u)}):r.push(e.styles);let i=!1,o=null;return r.forEach(u=>{if(zc(u)){const l=u,d=l.easing;if(d&&(o=d,delete l.easing),!i)for(let p in l)if(l[p].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:r,easing:o,offset:e.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(e,n){const r=n.currentAnimateTimings;let i=n.currentTime,o=n.currentTime;r&&o>0&&(o-=r.duration+r.delay),e.styles.forEach(u=>{"string"!=typeof u&&Object.keys(u).forEach(l=>{if(!this._driver.validateStyleProperty(l))return delete u[l],void n.unsupportedCSSPropertiesFound.add(l);const d=n.collectedStyles[n.currentQuerySelector],p=d[l];let m=!0;p&&(o!=i&&o>=p.startTime&&i<=p.endTime&&(n.errors.push(function BR(t,e,n,r,i){return new Y(3010,Le)}()),m=!1),o=p.startTime),m&&(d[l]={startTime:o,endTime:i}),n.options&&function hO(t,e,n){const r=e.params||{},i=fD(t);i.length&&i.forEach(o=>{r.hasOwnProperty(o)||n.push(function RR(t){return new Y(3001,Le)}())})}(u[l],n.options,n.errors)})})}visitKeyframes(e,n){const r={type:5,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(function VR(){return new Y(3011,Le)}()),r;let o=0;const u=[];let l=!1,d=!1,p=0;const m=e.steps.map(V=>{const R=this._makeStyleAst(V,n);let G=null!=R.offset?R.offset:function MO(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(n=>{if(zc(n)&&n.hasOwnProperty("offset")){const r=n;e=parseFloat(r.offset),delete r.offset}});else if(zc(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(R.styles),ie=0;return null!=G&&(o++,ie=R.offset=G),d=d||ie<0||ie>1,l=l||ie<p,p=ie,u.push(ie),R});d&&n.errors.push(function jR(){return new Y(3012,Le)}()),l&&n.errors.push(function HR(){return new Y(3200,Le)}());const E=e.steps.length;let D=0;o>0&&o<E?n.errors.push(function UR(){return new Y(3202,Le)}()):0==o&&(D=1/(E-1));const w=E-1,b=n.currentTime,M=n.currentAnimateTimings,O=M.duration;return m.forEach((V,R)=>{const G=D>0?R==w?1:D*R:u[R],ie=G*O;n.currentTime=b+M.delay+ie,M.duration=ie,this._validateStyleAst(V,n),V.offset=G,r.styles.push(V)}),r}visitReference(e,n){return{type:8,animation:Cn(this,Pu(e.animation),n),options:To(e.options)}}visitAnimateChild(e,n){return n.depCount++,{type:9,options:To(e.options)}}visitAnimateRef(e,n){return{type:10,animation:this.visitReference(e.animation,n),options:To(e.options)}}visitQuery(e,n){const r=n.currentQuerySelector,i=e.options||{};n.queryCount++,n.currentQuery=e;const[o,u]=function SO(t){const e=!!t.split(/\s*,\s*/).find(n=>":self"==n);return e&&(t=t.replace(wO,"")),t=t.replace(/@\*/g,xc).replace(/@\w+/g,n=>xc+"-"+n.substr(1)).replace(/:animating/g,zp),[t,e]}(e.selector);n.currentQuerySelector=r.length?r+" "+o:o,Sn(n.collectedStyles,n.currentQuerySelector,{});const l=Cn(this,Pu(e.animation),n);return n.currentQuery=null,n.currentQuerySelector=r,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:u,animation:l,originalSelector:e.selector,options:To(e.options)}}visitStagger(e,n){n.currentQuery||n.errors.push(function GR(){return new Y(3013,Le)}());const r="full"===e.timings?{duration:0,delay:0,easing:"full"}:kc(e.timings,n.errors,!0);return{type:12,animation:Cn(this,Pu(e.animation),n),timings:r,options:null}}}class AO{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function zc(t){return!Array.isArray(t)&&"object"==typeof t}function To(t){return t?(t=js(t)).params&&(t.params=function CO(t){return t?js(t):null}(t.params)):t={},t}function Kp(t,e,n){return{duration:t,delay:e,easing:n}}function Zp(t,e,n,r,i,o,u=null,l=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:u,subTimeline:l}}class qc{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,n){let r=this._map.get(e);r||this._map.set(e,r=[]),r.push(...n)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const NO=new RegExp(":enter","g"),LO=new RegExp(":leave","g");function Xp(t,e,n,r,i,o={},u={},l,d,p=[]){return(new xO).buildKeyframes(t,e,n,r,i,o,u,l,d,p)}class xO{buildKeyframes(e,n,r,i,o,u,l,d,p,m=[]){p=p||new qc;const E=new Jp(e,n,p,i,o,m,[]);E.options=d,E.currentTimeline.setStyles([u],null,E.errors,d),Cn(this,r,E);const D=E.timelines.filter(w=>w.containsAnimation());if(Object.keys(l).length){let w;for(let b=D.length-1;b>=0;b--){const M=D[b];if(M.element===n){w=M;break}}w&&!w.allowOnlyTimelineStyles()&&w.setStyles([l],null,E.errors,d)}return D.length?D.map(w=>w.buildKeyframes()):[Zp(n,[],[],[],0,0,"",!1)]}visitTrigger(e,n){}visitState(e,n){}visitTransition(e,n){}visitAnimateChild(e,n){const r=n.subInstructions.get(n.element);if(r){const i=n.createSubContext(e.options),o=n.currentTimeline.currentTime,u=this._visitSubInstructions(r,i,i.options);o!=u&&n.transformIntoNewTimeline(u)}n.previousNode=e}visitAnimateRef(e,n){const r=n.createSubContext(e.options);r.transformIntoNewTimeline(),this.visitReference(e.animation,r),n.transformIntoNewTimeline(r.currentTimeline.currentTime),n.previousNode=e}_visitSubInstructions(e,n,r){let o=n.currentTimeline.currentTime;const u=null!=r.duration?Do(r.duration):null,l=null!=r.delay?Do(r.delay):null;return 0!==u&&e.forEach(d=>{const p=n.appendInstructionToTimeline(d,u,l);o=Math.max(o,p.duration+p.delay)}),o}visitReference(e,n){n.updateOptions(e.options,!0),Cn(this,e.animation,n),n.previousNode=e}visitSequence(e,n){const r=n.subContextCount;let i=n;const o=e.options;if(o&&(o.params||o.delay)&&(i=n.createSubContext(o),i.transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Wc);const u=Do(o.delay);i.delayNextStep(u)}e.steps.length&&(e.steps.forEach(u=>Cn(this,u,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),n.previousNode=e}visitGroup(e,n){const r=[];let i=n.currentTimeline.currentTime;const o=e.options&&e.options.delay?Do(e.options.delay):0;e.steps.forEach(u=>{const l=n.createSubContext(e.options);o&&l.delayNextStep(o),Cn(this,u,l),i=Math.max(i,l.currentTimeline.currentTime),r.push(l.currentTimeline)}),r.forEach(u=>n.currentTimeline.mergeTimelineCollectedStyles(u)),n.transformIntoNewTimeline(i),n.previousNode=e}_visitTiming(e,n){if(e.dynamic){const r=e.strValue;return kc(n.params?Bc(r,n.params,n.errors):r,n.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,n){const r=n.currentAnimateTimings=this._visitTiming(e.timings,n),i=n.currentTimeline;r.delay&&(n.incrementTime(r.delay),i.snapshotCurrentStyles());const o=e.style;5==o.type?this.visitKeyframes(o,n):(n.incrementTime(r.duration),this.visitStyle(o,n),i.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=e}visitStyle(e,n){const r=n.currentTimeline,i=n.currentAnimateTimings;!i&&r.getCurrentStyleProperties().length&&r.forwardFrame();const o=i&&i.easing||e.easing;e.isEmptyStep?r.applyEmptyStep(o):r.setStyles(e.styles,o,n.errors,n.options),n.previousNode=e}visitKeyframes(e,n){const r=n.currentAnimateTimings,i=n.currentTimeline.duration,o=r.duration,l=n.createSubContext().currentTimeline;l.easing=r.easing,e.styles.forEach(d=>{l.forwardTime((d.offset||0)*o),l.setStyles(d.styles,d.easing,n.errors,n.options),l.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(l),n.transformIntoNewTimeline(i+o),n.previousNode=e}visitQuery(e,n){const r=n.currentTimeline.currentTime,i=e.options||{},o=i.delay?Do(i.delay):0;o&&(6===n.previousNode.type||0==r&&n.currentTimeline.getCurrentStyleProperties().length)&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Wc);let u=r;const l=n.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,n.errors);n.currentQueryTotal=l.length;let d=null;l.forEach((p,m)=>{n.currentQueryIndex=m;const E=n.createSubContext(e.options,p);o&&E.delayNextStep(o),p===n.element&&(d=E.currentTimeline),Cn(this,e.animation,E),E.currentTimeline.applyStylesToKeyframe(),u=Math.max(u,E.currentTimeline.currentTime)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(u),d&&(n.currentTimeline.mergeTimelineCollectedStyles(d),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=e}visitStagger(e,n){const r=n.parentContext,i=n.currentTimeline,o=e.timings,u=Math.abs(o.duration),l=u*(n.currentQueryTotal-1);let d=u*n.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":d=l-d;break;case"full":d=r.currentStaggerTime}const m=n.currentTimeline;d&&m.delayNextStep(d);const E=m.currentTime;Cn(this,e.animation,n),n.previousNode=e,r.currentStaggerTime=i.currentTime-E+(i.startTime-r.currentTimeline.startTime)}}const Wc={};class Jp{constructor(e,n,r,i,o,u,l,d){this._driver=e,this.element=n,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=o,this.errors=u,this.timelines=l,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Wc,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=d||new Yc(this._driver,n,0),l.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,n){if(!e)return;const r=e;let i=this.options;null!=r.duration&&(i.duration=Do(r.duration)),null!=r.delay&&(i.delay=Do(r.delay));const o=r.params;if(o){let u=i.params;u||(u=this.options.params={}),Object.keys(o).forEach(l=>{(!n||!u.hasOwnProperty(l))&&(u[l]=Bc(o[l],u,this.errors))})}}_copyOptions(){const e={};if(this.options){const n=this.options.params;if(n){const r=e.params={};Object.keys(n).forEach(i=>{r[i]=n[i]})}}return e}createSubContext(e=null,n,r){const i=n||this.element,o=new Jp(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(e){return this.previousNode=Wc,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,n,r){const i={duration:null!=n?n:e.duration,delay:this.currentTimeline.currentTime+(null!=r?r:0)+e.delay,easing:""},o=new kO(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(o),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,n,r,i,o,u){let l=[];if(i&&l.push(this.element),e.length>0){e=(e=e.replace(NO,"."+this._enterClassName)).replace(LO,"."+this._leaveClassName);let p=this._driver.query(this.element,e,1!=r);0!==r&&(p=r<0?p.slice(p.length+r,p.length):p.slice(0,r)),l.push(...p)}return!o&&0==l.length&&u.push(function $R(t){return new Y(3014,Le)}()),l}}class Yc{constructor(e,n,r,i){this._driver=e,this.element=n,this.startTime=r,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const n=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||n?(this.forwardTime(this.currentTime+e),n&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,n){return this.applyStylesToKeyframe(),new Yc(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,n){this._localTimelineStyles[e]=n,this._globalTimelineStyles[e]=n,this._styleSummary[e]={time:this.currentTime,value:n}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(n=>{this._backFill[n]=this._globalTimelineStyles[n]||ei,this._currentKeyframe[n]=ei}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,n,r,i){n&&(this._previousKeyframe.easing=n);const o=i&&i.params||{},u=function BO(t,e){const n={};let r;return t.forEach(i=>{"*"===i?(r=r||Object.keys(e),r.forEach(o=>{n[o]=ei})):Li(i,!1,n)}),n}(e,this._globalTimelineStyles);Object.keys(u).forEach(l=>{const d=Bc(u[l],o,r);this._pendingStyles[l]=d,this._localTimelineStyles.hasOwnProperty(l)||(this._backFill[l]=this._globalTimelineStyles.hasOwnProperty(l)?this._globalTimelineStyles[l]:ei),this._updateStyle(l,d)})}applyStylesToKeyframe(){const e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(r=>{this._currentKeyframe[r]=e[r]}),Object.keys(this._localTimelineStyles).forEach(r=>{this._currentKeyframe.hasOwnProperty(r)||(this._currentKeyframe[r]=this._localTimelineStyles[r])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const n=this._localTimelineStyles[e];this._pendingStyles[e]=n,this._updateStyle(e,n)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let n in this._currentKeyframe)e.push(n);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(n=>{const r=this._styleSummary[n],i=e._styleSummary[n];(!r||i.time>r.time)&&this._updateStyle(n,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((l,d)=>{const p=Li(l,!0);Object.keys(p).forEach(m=>{const E=p[m];"!"==E?e.add(m):E==ei&&n.add(m)}),r||(p.offset=d/this.duration),i.push(p)});const o=e.size?Vc(e.values()):[],u=n.size?Vc(n.values()):[];if(r){const l=i[0],d=js(l);l.offset=0,d.offset=1,i=[l,d]}return Zp(this.element,i,o,u,this.duration,this.startTime,this.easing,!1)}}class kO extends Yc{constructor(e,n,r,i,o,u,l=!1){super(e,n,u.delay),this.keyframes=r,this.preStyleProps=i,this.postStyleProps=o,this._stretchStartingKeyframe=l,this.timings={duration:u.duration,delay:u.delay,easing:u.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:n,duration:r,easing:i}=this.timings;if(this._stretchStartingKeyframe&&n){const o=[],u=r+n,l=n/u,d=Li(e[0],!1);d.offset=0,o.push(d);const p=Li(e[0],!1);p.offset=yD(l),o.push(p);const m=e.length-1;for(let E=1;E<=m;E++){let D=Li(e[E],!1);D.offset=yD((n+D.offset*r)/u),o.push(D)}r=u,n=0,i="",e=o}return Zp(this.element,e,this.preStyleProps,this.postStyleProps,r,n,i,!0)}}function yD(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class eg{}class VO extends eg{normalizePropertyName(e,n){return Yp(e)}normalizeStyleValue(e,n,r,i){let o="";const u=r.toString().trim();if(jO[n]&&0!==r&&"0"!==r)if("number"==typeof r)o="px";else{const l=r.match(/^[+-]?[\d\.]+([a-z]*)$/);l&&0==l[1].length&&i.push(function NR(t,e){return new Y(3005,Le)}())}return u+o}}const jO=(()=>function HO(t){const e={};return t.forEach(n=>e[n]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function vD(t,e,n,r,i,o,u,l,d,p,m,E,D){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:u,timelines:l,queriedElements:d,preStyleProps:p,postStyleProps:m,totalTime:E,errors:D}}const tg={};class ED{constructor(e,n,r){this._triggerName=e,this.ast=n,this._stateStyles=r}match(e,n,r,i){return function UO(t,e,n,r,i){return t.some(o=>o(e,n,r,i))}(this.ast.matchers,e,n,r,i)}buildStyles(e,n,r){const i=this._stateStyles["*"],o=this._stateStyles[e],u=i?i.buildStyles(n,r):{};return o?o.buildStyles(n,r):u}build(e,n,r,i,o,u,l,d,p,m){const E=[],D=this.ast.options&&this.ast.options.params||tg,b=this.buildStyles(r,l&&l.params||tg,E),M=d&&d.params||tg,O=this.buildStyles(i,M,E),V=new Set,R=new Map,G=new Map,ie="void"===i,we={params:Object.assign(Object.assign({},D),M)},ot=m?[]:Xp(e,n,this.ast.animation,o,u,b,O,we,p,E);let ct=0;if(ot.forEach(Mn=>{ct=Math.max(Mn.duration+Mn.delay,ct)}),E.length)return vD(n,this._triggerName,r,i,ie,b,O,[],[],R,G,ct,E);ot.forEach(Mn=>{const Rn=Mn.element,Us=Sn(R,Rn,{});Mn.preStyleProps.forEach(sr=>Us[sr]=!0);const ti=Sn(G,Rn,{});Mn.postStyleProps.forEach(sr=>ti[sr]=!0),Rn!==n&&V.add(Rn)});const An=Vc(V.values());return vD(n,this._triggerName,r,i,ie,b,O,ot,An,R,G,ct)}}class GO{constructor(e,n,r){this.styles=e,this.defaultParams=n,this.normalizer=r}buildStyles(e,n){const r={},i=js(this.defaultParams);return Object.keys(e).forEach(o=>{const u=e[o];null!=u&&(i[o]=u)}),this.styles.styles.forEach(o=>{if("string"!=typeof o){const u=o;Object.keys(u).forEach(l=>{let d=u[l];d.length>1&&(d=Bc(d,i,n));const p=this.normalizer.normalizePropertyName(l,n);d=this.normalizer.normalizeStyleValue(l,p,d,n),r[p]=d})}}),r}}class zO{constructor(e,n,r){this.name=e,this.ast=n,this._normalizer=r,this.transitionFactories=[],this.states={},n.states.forEach(i=>{this.states[i.name]=new GO(i.style,i.options&&i.options.params||{},r)}),_D(this.states,"true","1"),_D(this.states,"false","0"),n.transitions.forEach(i=>{this.transitionFactories.push(new ED(e,i,this.states))}),this.fallbackTransition=function qO(t,e,n){return new ED(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(u,l)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,n,r,i){return this.transitionFactories.find(u=>u.match(e,n,r,i))||null}matchStyles(e,n,r){return this.fallbackTransition.buildStyles(e,n,r)}}function _D(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const WO=new qc;class YO{constructor(e,n,r){this.bodyNode=e,this._driver=n,this._normalizer=r,this._animations={},this._playersById={},this.players=[]}register(e,n){const r=[],o=Qp(this._driver,n,r,[]);if(r.length)throw function ZR(t){return new Y(3503,Le)}();this._animations[e]=o}_buildPlayer(e,n,r){const i=e.element,o=X_(0,this._normalizer,0,e.keyframes,n,r);return this._driver.animate(i,o,e.duration,e.delay,e.easing,[],!0)}create(e,n,r={}){const i=[],o=this._animations[e];let u;const l=new Map;if(o?(u=Xp(this._driver,n,o,$p,Fc,{},{},r,WO,i),u.forEach(m=>{const E=Sn(l,m.element,{});m.postStyleProps.forEach(D=>E[D]=null)})):(i.push(function XR(){return new Y(3300,Le)}()),u=[]),i.length)throw function JR(t){return new Y(3504,Le)}();l.forEach((m,E)=>{Object.keys(m).forEach(D=>{m[D]=this._driver.computeStyle(E,D,ei)})});const p=Fi(u.map(m=>{const E=l.get(m.element);return this._buildPlayer(m,{},E)}));return this._playersById[e]=p,p.onDestroy(()=>this.destroy(e)),this.players.push(p),p}destroy(e){const n=this._getPlayer(e);n.destroy(),delete this._playersById[e];const r=this.players.indexOf(n);r>=0&&this.players.splice(r,1)}_getPlayer(e){const n=this._playersById[e];if(!n)throw function eO(t){return new Y(3301,Le)}();return n}listen(e,n,r,i){const o=jp(n,"","","");return Bp(this._getPlayer(e),r,o,i),()=>{}}command(e,n,r,i){if("register"==r)return void this.register(e,i[0]);if("create"==r)return void this.create(e,n,i[0]||{});const o=this._getPlayer(e);switch(r){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}}const DD="ng-animate-queued",ng="ng-animate-disabled",JO=[],ID={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},eP={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},qn="__ng_removed";class rg{constructor(e,n=""){this.namespaceId=n;const r=e&&e.hasOwnProperty("value");if(this.value=function iP(t){return null!=t?t:null}(r?e.value:e),r){const o=js(e);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const n=e.params;if(n){const r=this.options.params;Object.keys(n).forEach(i=>{null==r[i]&&(r[i]=n[i])})}}}const Nu="void",ig=new rg(Nu);class tP{constructor(e,n,r){this.id=e,this.hostElement=n,this._engine=r,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Wn(n,this._hostClassName)}listen(e,n,r,i){if(!this._triggers.hasOwnProperty(n))throw function tO(t,e){return new Y(3302,Le)}();if(null==r||0==r.length)throw function nO(t){return new Y(3303,Le)}();if(!function oP(t){return"start"==t||"done"==t}(r))throw function rO(t,e){return new Y(3400,Le)}();const o=Sn(this._elementListeners,e,[]),u={name:n,phase:r,callback:i};o.push(u);const l=Sn(this._engine.statesByElement,e,{});return l.hasOwnProperty(n)||(Wn(e,Lc),Wn(e,Lc+"-"+n),l[n]=ig),()=>{this._engine.afterFlush(()=>{const d=o.indexOf(u);d>=0&&o.splice(d,1),this._triggers[n]||delete l[n]})}}register(e,n){return!this._triggers[e]&&(this._triggers[e]=n,!0)}_getTrigger(e){const n=this._triggers[e];if(!n)throw function iO(t){return new Y(3401,Le)}();return n}trigger(e,n,r,i=!0){const o=this._getTrigger(n),u=new og(this.id,n,e);let l=this._engine.statesByElement.get(e);l||(Wn(e,Lc),Wn(e,Lc+"-"+n),this._engine.statesByElement.set(e,l={}));let d=l[n];const p=new rg(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&d&&p.absorbOptions(d.options),l[n]=p,d||(d=ig),p.value!==Nu&&d.value===p.value){if(!function uP(t,e){const n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(let i=0;i<n.length;i++){const o=n[i];if(!e.hasOwnProperty(o)||t[o]!==e[o])return!1}return!0}(d.params,p.params)){const M=[],O=o.matchStyles(d.value,d.params,M),V=o.matchStyles(p.value,p.params,M);M.length?this._engine.reportError(M):this._engine.afterFlush(()=>{Io(e,O),Rr(e,V)})}return}const D=Sn(this._engine.playersByElement,e,[]);D.forEach(M=>{M.namespaceId==this.id&&M.triggerName==n&&M.queued&&M.destroy()});let w=o.matchTransition(d.value,p.value,e,p.params),b=!1;if(!w){if(!i)return;w=o.fallbackTransition,b=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:n,transition:w,fromState:d,toState:p,player:u,isFallbackTransition:b}),b||(Wn(e,DD),u.onStart(()=>{Hs(e,DD)})),u.onDone(()=>{let M=this.players.indexOf(u);M>=0&&this.players.splice(M,1);const O=this._engine.playersByElement.get(e);if(O){let V=O.indexOf(u);V>=0&&O.splice(V,1)}}),this.players.push(u),D.push(u),u}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((n,r)=>{delete n[e]}),this._elementListeners.forEach((n,r)=>{this._elementListeners.set(r,n.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const n=this._engine.playersByElement.get(e);n&&(n.forEach(r=>r.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,n){const r=this._engine.driver.query(e,xc,!0);r.forEach(i=>{if(i[qn])return;const o=this._engine.fetchNamespacesByElement(i);o.size?o.forEach(u=>u.triggerLeaveAnimation(i,n,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,n,r,i){const o=this._engine.statesByElement.get(e),u=new Map;if(o){const l=[];if(Object.keys(o).forEach(d=>{if(u.set(d,o[d].value),this._triggers[d]){const p=this.trigger(e,d,Nu,i);p&&l.push(p)}}),l.length)return this._engine.markElementAsRemoved(this.id,e,!0,n,u),r&&Fi(l).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const n=this._elementListeners.get(e),r=this._engine.statesByElement.get(e);if(n&&r){const i=new Set;n.forEach(o=>{const u=o.name;if(i.has(u))return;i.add(u);const d=this._triggers[u].fallbackTransition,p=r[u]||ig,m=new rg(Nu),E=new og(this.id,u,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:u,transition:d,fromState:p,toState:m,player:E,isFallbackTransition:!0})})}}removeNode(e,n){const r=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,n),this.triggerLeaveAnimation(e,n,!0))return;let i=!1;if(r.totalAnimations){const o=r.players.length?r.playersByQueriedElement.get(e):[];if(o&&o.length)i=!0;else{let u=e;for(;u=u.parentNode;)if(r.statesByElement.get(u)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)r.markElementAsRemoved(this.id,e,!1,n);else{const o=e[qn];(!o||o===ID)&&(r.afterFlush(()=>this.clearElementCache(e)),r.destroyInnerAnimations(e),r._onRemovalComplete(e,n))}}insertNode(e,n){Wn(e,this._hostClassName)}drainQueuedTransitions(e){const n=[];return this._queue.forEach(r=>{const i=r.player;if(i.destroyed)return;const o=r.element,u=this._elementListeners.get(o);u&&u.forEach(l=>{if(l.name==r.triggerName){const d=jp(o,r.triggerName,r.fromState.value,r.toState.value);d._data=e,Bp(r.player,l.phase,d,l.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):n.push(r)}),this._queue=[],n.sort((r,i)=>{const o=r.transition.ast.depCount,u=i.transition.ast.depCount;return 0==o||0==u?o-u:this._engine.driver.containsElement(r.element,i.element)?1:-1})}destroy(e){this.players.forEach(n=>n.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let n=!1;return this._elementListeners.has(e)&&(n=!0),n=!!this._queue.find(r=>r.element===e)||n,n}}class nP{constructor(e,n,r){this.bodyNode=e,this.driver=n,this._normalizer=r,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(i,o)=>{}}_onRemovalComplete(e,n){this.onRemovalComplete(e,n)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(n=>{n.players.forEach(r=>{r.queued&&e.push(r)})}),e}createNamespace(e,n){const r=new tP(e,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(r,n):(this.newHostElements.set(n,r),this.collectEnterElement(n)),this._namespaceLookup[e]=r}_balanceNamespaceList(e,n){const r=this._namespaceList,i=this.namespacesByHostElement,o=r.length-1;if(o>=0){let u=!1;if(void 0!==this.driver.getParentElement){let l=this.driver.getParentElement(n);for(;l;){const d=i.get(l);if(d){const p=r.indexOf(d);r.splice(p+1,0,e),u=!0;break}l=this.driver.getParentElement(l)}}else for(let l=o;l>=0;l--)if(this.driver.containsElement(r[l].hostElement,n)){r.splice(l+1,0,e),u=!0;break}u||r.unshift(e)}else r.push(e);return i.set(n,e),e}register(e,n){let r=this._namespaceLookup[e];return r||(r=this.createNamespace(e,n)),r}registerTrigger(e,n,r){let i=this._namespaceLookup[e];i&&i.register(n,r)&&this.totalAnimations++}destroy(e,n){if(!e)return;const r=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(r.hostElement),delete this._namespaceLookup[e];const i=this._namespaceList.indexOf(r);i>=0&&this._namespaceList.splice(i,1)}),this.afterFlushAnimationsDone(()=>r.destroy(n))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const n=new Set,r=this.statesByElement.get(e);if(r){const i=Object.keys(r);for(let o=0;o<i.length;o++){const u=r[i[o]].namespaceId;if(u){const l=this._fetchNamespace(u);l&&n.add(l)}}}return n}trigger(e,n,r,i){if(Qc(n)){const o=this._fetchNamespace(e);if(o)return o.trigger(n,r,i),!0}return!1}insertNode(e,n,r,i){if(!Qc(n))return;const o=n[qn];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const u=this.collectedLeaveElements.indexOf(n);u>=0&&this.collectedLeaveElements.splice(u,1)}if(e){const u=this._fetchNamespace(e);u&&u.insertNode(n,r)}i&&this.collectEnterElement(n)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,n){n?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Wn(e,ng)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Hs(e,ng))}removeNode(e,n,r,i){if(Qc(n)){const o=e?this._fetchNamespace(e):null;if(o?o.removeNode(n,i):this.markElementAsRemoved(e,n,!1,i),r){const u=this.namespacesByHostElement.get(n);u&&u.id!==e&&u.removeNode(n,i)}}else this._onRemovalComplete(n,i)}markElementAsRemoved(e,n,r,i,o){this.collectedLeaveElements.push(n),n[qn]={namespaceId:e,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,n,r,i,o){return Qc(n)?this._fetchNamespace(e).listen(n,r,i,o):()=>{}}_buildInstruction(e,n,r,i,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,r,i,e.fromState.options,e.toState.options,n,o)}destroyInnerAnimations(e){let n=this.driver.query(e,xc,!0);n.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,zp,!0),n.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(e){const n=this.playersByElement.get(e);n&&n.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(e){const n=this.playersByQueriedElement.get(e);n&&n.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Fi(this.players).onDone(()=>e());e()})}processLeaveNode(e){var n;const r=e[qn];if(r&&r.setForRemoval){if(e[qn]=ID,r.namespaceId){this.destroyInnerAnimations(e);const i=this._fetchNamespace(r.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,r.setForRemoval)}(null===(n=e.classList)||void 0===n?void 0:n.contains(ng))&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(e=-1){let n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,i)=>this._balanceNamespaceList(r,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;r<this.collectedEnterElements.length;r++)Wn(this.collectedEnterElements[r],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const r=[];try{n=this._flushAnimations(r,e)}finally{for(let i=0;i<r.length;i++)r[i]()}}else for(let r=0;r<this.collectedLeaveElements.length;r++)this.processLeaveNode(this.collectedLeaveElements[r]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(r=>r()),this._flushFns=[],this._whenQuietFns.length){const r=this._whenQuietFns;this._whenQuietFns=[],n.length?Fi(n).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(e){throw function oO(t){return new Y(3402,Le)}()}_flushAnimations(e,n){const r=new qc,i=[],o=new Map,u=[],l=new Map,d=new Map,p=new Map,m=new Set;this.disabledNodes.forEach(X=>{m.add(X);const ue=this.driver.query(X,".ng-animate-queued",!0);for(let he=0;he<ue.length;he++)m.add(ue[he])});const E=this.bodyNode,D=Array.from(this.statesByElement.keys()),w=bD(D,this.collectedEnterElements),b=new Map;let M=0;w.forEach((X,ue)=>{const he=$p+M++;b.set(ue,he),X.forEach(Ue=>Wn(Ue,he))});const O=[],V=new Set,R=new Set;for(let X=0;X<this.collectedLeaveElements.length;X++){const ue=this.collectedLeaveElements[X],he=ue[qn];he&&he.setForRemoval&&(O.push(ue),V.add(ue),he.hasAnimation?this.driver.query(ue,".ng-star-inserted",!0).forEach(Ue=>V.add(Ue)):R.add(ue))}const G=new Map,ie=bD(D,Array.from(V));ie.forEach((X,ue)=>{const he=Fc+M++;G.set(ue,he),X.forEach(Ue=>Wn(Ue,he))}),e.push(()=>{w.forEach((X,ue)=>{const he=b.get(ue);X.forEach(Ue=>Hs(Ue,he))}),ie.forEach((X,ue)=>{const he=G.get(ue);X.forEach(Ue=>Hs(Ue,he))}),O.forEach(X=>{this.processLeaveNode(X)})});const we=[],ot=[];for(let X=this._namespaceList.length-1;X>=0;X--)this._namespaceList[X].drainQueuedTransitions(n).forEach(he=>{const Ue=he.player,Nt=he.element;if(we.push(Ue),this.collectedEnterElements.length){const on=Nt[qn];if(on&&on.setForMove){if(on.previousTriggersValues&&on.previousTriggersValues.has(he.triggerName)){const wo=on.previousTriggersValues.get(he.triggerName),ki=this.statesByElement.get(he.element);ki&&ki[he.triggerName]&&(ki[he.triggerName].value=wo)}return void Ue.destroy()}}const Or=!E||!this.driver.containsElement(E,Nt),On=G.get(Nt),xi=b.get(Nt),dt=this._buildInstruction(he,r,xi,On,Or);if(dt.errors&&dt.errors.length)return void ot.push(dt);if(Or)return Ue.onStart(()=>Io(Nt,dt.fromStyles)),Ue.onDestroy(()=>Rr(Nt,dt.toStyles)),void i.push(Ue);if(he.isFallbackTransition)return Ue.onStart(()=>Io(Nt,dt.fromStyles)),Ue.onDestroy(()=>Rr(Nt,dt.toStyles)),void i.push(Ue);const LD=[];dt.timelines.forEach(on=>{on.stretchStartingKeyframe=!0,this.disabledNodes.has(on.element)||LD.push(on)}),dt.timelines=LD,r.append(Nt,dt.timelines),u.push({instruction:dt,player:Ue,element:Nt}),dt.queriedElements.forEach(on=>Sn(l,on,[]).push(Ue)),dt.preStyleProps.forEach((on,wo)=>{const ki=Object.keys(on);if(ki.length){let bo=d.get(wo);bo||d.set(wo,bo=new Set),ki.forEach(ug=>bo.add(ug))}}),dt.postStyleProps.forEach((on,wo)=>{const ki=Object.keys(on);let bo=p.get(wo);bo||p.set(wo,bo=new Set),ki.forEach(ug=>bo.add(ug))})});if(ot.length){const X=[];ot.forEach(ue=>{X.push(function sO(t,e){return new Y(3505,Le)}())}),we.forEach(ue=>ue.destroy()),this.reportError(X)}const ct=new Map,An=new Map;u.forEach(X=>{const ue=X.element;r.has(ue)&&(An.set(ue,ue),this._beforeAnimationBuild(X.player.namespaceId,X.instruction,ct))}),i.forEach(X=>{const ue=X.element;this._getPreviousPlayers(ue,!1,X.namespaceId,X.triggerName,null).forEach(Ue=>{Sn(ct,ue,[]).push(Ue),Ue.destroy()})});const Mn=O.filter(X=>CD(X,d,p)),Rn=new Map;wD(Rn,this.driver,R,p,ei).forEach(X=>{CD(X,d,p)&&Mn.push(X)});const ti=new Map;w.forEach((X,ue)=>{wD(ti,this.driver,new Set(X),d,"!")}),Mn.forEach(X=>{const ue=Rn.get(X),he=ti.get(X);Rn.set(X,Object.assign(Object.assign({},ue),he))});const sr=[],Gs=[],$s={};u.forEach(X=>{const{element:ue,player:he,instruction:Ue}=X;if(r.has(ue)){if(m.has(ue))return he.onDestroy(()=>Rr(ue,Ue.toStyles)),he.disabled=!0,he.overrideTotalTime(Ue.totalTime),void i.push(he);let Nt=$s;if(An.size>1){let On=ue;const xi=[];for(;On=On.parentNode;){const dt=An.get(On);if(dt){Nt=dt;break}xi.push(On)}xi.forEach(dt=>An.set(dt,Nt))}const Or=this._buildAnimation(he.namespaceId,Ue,ct,o,ti,Rn);if(he.setRealPlayer(Or),Nt===$s)sr.push(he);else{const On=this.playersByElement.get(Nt);On&&On.length&&(he.parentPlayer=Fi(On)),i.push(he)}}else Io(ue,Ue.fromStyles),he.onDestroy(()=>Rr(ue,Ue.toStyles)),Gs.push(he),m.has(ue)&&i.push(he)}),Gs.forEach(X=>{const ue=o.get(X.element);if(ue&&ue.length){const he=Fi(ue);X.setRealPlayer(he)}}),i.forEach(X=>{X.parentPlayer?X.syncPlayerEvents(X.parentPlayer):X.destroy()});for(let X=0;X<O.length;X++){const ue=O[X],he=ue[qn];if(Hs(ue,Fc),he&&he.hasAnimation)continue;let Ue=[];if(l.size){let Or=l.get(ue);Or&&Or.length&&Ue.push(...Or);let On=this.driver.query(ue,zp,!0);for(let xi=0;xi<On.length;xi++){let dt=l.get(On[xi]);dt&&dt.length&&Ue.push(...dt)}}const Nt=Ue.filter(Or=>!Or.destroyed);Nt.length?sP(this,ue,Nt):this.processLeaveNode(ue)}return O.length=0,sr.forEach(X=>{this.players.push(X),X.onDone(()=>{X.destroy();const ue=this.players.indexOf(X);this.players.splice(ue,1)}),X.play()}),sr}elementContainsData(e,n){let r=!1;const i=n[qn];return i&&i.setForRemoval&&(r=!0),this.playersByElement.has(n)&&(r=!0),this.playersByQueriedElement.has(n)&&(r=!0),this.statesByElement.has(n)&&(r=!0),this._fetchNamespace(e).elementContainsData(n)||r}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,n,r,i,o){let u=[];if(n){const l=this.playersByQueriedElement.get(e);l&&(u=l)}else{const l=this.playersByElement.get(e);if(l){const d=!o||o==Nu;l.forEach(p=>{p.queued||!d&&p.triggerName!=i||u.push(p)})}}return(r||i)&&(u=u.filter(l=>!(r&&r!=l.namespaceId||i&&i!=l.triggerName))),u}_beforeAnimationBuild(e,n,r){const o=n.element,u=n.isRemovalTransition?void 0:e,l=n.isRemovalTransition?void 0:n.triggerName;for(const d of n.timelines){const p=d.element,m=p!==o,E=Sn(r,p,[]);this._getPreviousPlayers(p,m,u,l,n.toState).forEach(w=>{const b=w.getRealPlayer();b.beforeDestroy&&b.beforeDestroy(),w.destroy(),E.push(w)})}Io(o,n.fromStyles)}_buildAnimation(e,n,r,i,o,u){const l=n.triggerName,d=n.element,p=[],m=new Set,E=new Set,D=n.timelines.map(b=>{const M=b.element;m.add(M);const O=M[qn];if(O&&O.removedBeforeQueried)return new Ou(b.duration,b.delay);const V=M!==d,R=function aP(t){const e=[];return SD(t,e),e}((r.get(M)||JO).map(ct=>ct.getRealPlayer())).filter(ct=>!!ct.element&&ct.element===M),G=o.get(M),ie=u.get(M),we=X_(0,this._normalizer,0,b.keyframes,G,ie),ot=this._buildPlayer(b,we,R);if(b.subTimeline&&i&&E.add(M),V){const ct=new og(e,l,M);ct.setRealPlayer(ot),p.push(ct)}return ot});p.forEach(b=>{Sn(this.playersByQueriedElement,b.element,[]).push(b),b.onDone(()=>function rP(t,e,n){let r;if(t instanceof Map){if(r=t.get(e),r){if(r.length){const i=r.indexOf(n);r.splice(i,1)}0==r.length&&t.delete(e)}}else if(r=t[e],r){if(r.length){const i=r.indexOf(n);r.splice(i,1)}0==r.length&&delete t[e]}return r}(this.playersByQueriedElement,b.element,b))}),m.forEach(b=>Wn(b,uD));const w=Fi(D);return w.onDestroy(()=>{m.forEach(b=>Hs(b,uD)),Rr(d,n.toStyles)}),E.forEach(b=>{Sn(i,b,[]).push(w)}),w}_buildPlayer(e,n,r){return n.length>0?this.driver.animate(e.element,n,e.duration,e.delay,e.easing,r):new Ou(e.duration,e.delay)}}class og{constructor(e,n,r){this.namespaceId=e,this.triggerName=n,this.element=r,this._player=new Ou,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(n=>{this._queuedCallbacks[n].forEach(r=>Bp(e,n,void 0,r))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const n=this._player;n.triggerCallback&&e.onStart(()=>n.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,n){Sn(this._queuedCallbacks,e,[]).push(n)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const n=this._player;n.triggerCallback&&n.triggerCallback(e)}}function Qc(t){return t&&1===t.nodeType}function TD(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function wD(t,e,n,r,i){const o=[];n.forEach(d=>o.push(TD(d)));const u=[];r.forEach((d,p)=>{const m={};d.forEach(E=>{const D=m[E]=e.computeStyle(p,E,i);(!D||0==D.length)&&(p[qn]=eP,u.push(p))}),t.set(p,m)});let l=0;return n.forEach(d=>TD(d,o[l++])),u}function bD(t,e){const n=new Map;if(t.forEach(l=>n.set(l,[])),0==e.length)return n;const i=new Set(e),o=new Map;function u(l){if(!l)return 1;let d=o.get(l);if(d)return d;const p=l.parentNode;return d=n.has(p)?p:i.has(p)?1:u(p),o.set(l,d),d}return e.forEach(l=>{const d=u(l);1!==d&&n.get(d).push(l)}),n}function Wn(t,e){var n;null===(n=t.classList)||void 0===n||n.add(e)}function Hs(t,e){var n;null===(n=t.classList)||void 0===n||n.remove(e)}function sP(t,e,n){Fi(n).onDone(()=>t.processLeaveNode(e))}function SD(t,e){for(let n=0;n<t.length;n++){const r=t[n];r instanceof K_?SD(r.players,e):e.push(r)}}function CD(t,e,n){const r=n.get(t);if(!r)return!1;let i=e.get(t);return i?r.forEach(o=>i.add(o)):e.set(t,r),n.delete(t),!0}class Kc{constructor(e,n,r){this.bodyNode=e,this._driver=n,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(i,o)=>{},this._transitionEngine=new nP(e,n,r),this._timelineEngine=new YO(e,n,r),this._transitionEngine.onRemovalComplete=(i,o)=>this.onRemovalComplete(i,o)}registerTrigger(e,n,r,i,o){const u=e+"-"+i;let l=this._triggerCache[u];if(!l){const d=[],m=Qp(this._driver,o,d,[]);if(d.length)throw function QR(t,e){return new Y(3404,Le)}();l=function $O(t,e,n){return new zO(t,e,n)}(i,m,this._normalizer),this._triggerCache[u]=l}this._transitionEngine.registerTrigger(n,i,l)}register(e,n){this._transitionEngine.register(e,n)}destroy(e,n){this._transitionEngine.destroy(e,n)}onInsert(e,n,r,i){this._transitionEngine.insertNode(e,n,r,i)}onRemove(e,n,r,i){this._transitionEngine.removeNode(e,n,i||!1,r)}disableAnimations(e,n){this._transitionEngine.markElementAsDisabled(e,n)}process(e,n,r,i){if("@"==r.charAt(0)){const[o,u]=J_(r);this._timelineEngine.command(o,n,u,i)}else this._transitionEngine.trigger(e,n,r,i)}listen(e,n,r,i,o){if("@"==r.charAt(0)){const[u,l]=J_(r);return this._timelineEngine.listen(u,n,l,o)}return this._transitionEngine.listen(e,n,r,i,o)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let cP=(()=>{class t{constructor(n,r,i){this._element=n,this._startStyles=r,this._endStyles=i,this._state=0;let o=t.initialStylesByElement.get(n);o||t.initialStylesByElement.set(n,o={}),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Rr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Rr(this._element,this._initialStyles),this._endStyles&&(Rr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Io(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Io(this._element,this._endStyles),this._endStyles=null),Rr(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function sg(t){let e=null;const n=Object.keys(t);for(let r=0;r<n.length;r++){const i=n[r];dP(i)&&(e=e||{},e[i]=t[i])}return e}function dP(t){return"display"===t||"position"===t}class AD{constructor(e,n,r,i){this.element=e,this.keyframes=n,this.options=r,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,n,r){return e.animate(n,r)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};if(this.hasStarted()){const n=this._finalKeyframe;Object.keys(n).forEach(r=>{"offset"!=r&&(e[r]=this._finished?n[r]:hD(this.element,r))})}this.currentSnapshot=e}triggerCallback(e){const n="start"==e?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}}class fP{validateStyleProperty(e){return rD(e)}matchesElement(e,n){return!1}containsElement(e,n){return iD(e,n)}getParentElement(e){return Up(e)}query(e,n,r){return oD(e,n,r)}computeStyle(e,n,r){return window.getComputedStyle(e)[n]}animate(e,n,r,i,o,u=[]){const d={duration:r,delay:i,fill:0==i?"both":"forwards"};o&&(d.easing=o);const p={},m=u.filter(D=>D instanceof AD);(function mO(t,e){return 0===t||0===e})(r,i)&&m.forEach(D=>{let w=D.currentSnapshot;Object.keys(w).forEach(b=>p[b]=w[b])}),n=function yO(t,e,n){const r=Object.keys(n);if(r.length&&e.length){let o=e[0],u=[];if(r.forEach(l=>{o.hasOwnProperty(l)||u.push(l),o[l]=n[l]}),u.length)for(var i=1;i<e.length;i++){let l=e[i];u.forEach(function(d){l[d]=hD(t,d)})}}return e}(e,n=n.map(D=>Li(D,!1)),p);const E=function lP(t,e){let n=null,r=null;return Array.isArray(e)&&e.length?(n=sg(e[0]),e.length>1&&(r=sg(e[e.length-1]))):e&&(n=sg(e)),n||r?new cP(t,n,r):null}(e,n);return new AD(e,n,d,E)}}let hP=(()=>{class t extends q_{constructor(n,r){super(),this._nextAnimationId=0,this._renderer=n.createRenderer(r.body,{id:"0",encapsulation:vn.None,styles:[],data:{animation:[]}})}build(n){const r=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(n)?W_(n):n;return MD(this._renderer,null,r,"register",[i]),new pP(r,this._renderer)}}return t.\u0275fac=function(n){return new(n||t)(Se(vu),Se(Un))},t.\u0275prov=Ye({token:t,factory:t.\u0275fac}),t})();class pP extends class CR{}{constructor(e,n){super(),this._id=e,this._renderer=n}create(e,n){return new gP(this._id,e,n||{},this._renderer)}}class gP{constructor(e,n,r,i){this.id=e,this.element=n,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}_listen(e,n){return this._renderer.listen(this.element,`@@${this.id}:${e}`,n)}_command(e,...n){return MD(this._renderer,this.element,this.id,e,n)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(e){this._command("setPosition",e)}getPosition(){var e,n;return null!==(n=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==n?n:0}}function MD(t,e,n,r,i){return t.setProperty(e,`@@${n}:${r}`,i)}const RD="@.disabled";let mP=(()=>{class t{constructor(n,r,i){this.delegate=n,this.engine=r,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),r.onRemovalComplete=(o,u)=>{const l=null==u?void 0:u.parentNode(o);l&&u.removeChild(l,o)}}createRenderer(n,r){const o=this.delegate.createRenderer(n,r);if(!(n&&r&&r.data&&r.data.animation)){let m=this._rendererCache.get(o);return m||(m=new OD("",o,this.engine),this._rendererCache.set(o,m)),m}const u=r.id,l=r.id+"-"+this._currentId;this._currentId++,this.engine.register(l,n);const d=m=>{Array.isArray(m)?m.forEach(d):this.engine.registerTrigger(u,l,n,m.name,m)};return r.data.animation.forEach(d),new yP(this,l,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(n,r,i){n>=0&&n<this._microtaskId?this._zone.run(()=>r(i)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[u,l]=o;u(l)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([r,i]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(n){return new(n||t)(Se(vu),Se(Kc),Se(Pt))},t.\u0275prov=Ye({token:t,factory:t.\u0275fac}),t})();class OD{constructor(e,n,r){this.namespaceId=e,this.delegate=n,this.engine=r,this.destroyNode=this.delegate.destroyNode?i=>n.destroyNode(i):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,n){return this.delegate.createElement(e,n)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,n){this.delegate.appendChild(e,n),this.engine.onInsert(this.namespaceId,n,e,!1)}insertBefore(e,n,r,i=!0){this.delegate.insertBefore(e,n,r),this.engine.onInsert(this.namespaceId,n,e,i)}removeChild(e,n,r){this.engine.onRemove(this.namespaceId,n,this.delegate,r)}selectRootElement(e,n){return this.delegate.selectRootElement(e,n)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,n,r,i){this.delegate.setAttribute(e,n,r,i)}removeAttribute(e,n,r){this.delegate.removeAttribute(e,n,r)}addClass(e,n){this.delegate.addClass(e,n)}removeClass(e,n){this.delegate.removeClass(e,n)}setStyle(e,n,r,i){this.delegate.setStyle(e,n,r,i)}removeStyle(e,n,r){this.delegate.removeStyle(e,n,r)}setProperty(e,n,r){"@"==n.charAt(0)&&n==RD?this.disableAnimations(e,!!r):this.delegate.setProperty(e,n,r)}setValue(e,n){this.delegate.setValue(e,n)}listen(e,n,r){return this.delegate.listen(e,n,r)}disableAnimations(e,n){this.engine.disableAnimations(e,n)}}class yP extends OD{constructor(e,n,r,i){super(n,r,i),this.factory=e,this.namespaceId=n}setProperty(e,n,r){"@"==n.charAt(0)?"."==n.charAt(1)&&n==RD?this.disableAnimations(e,r=void 0===r||!!r):this.engine.process(this.namespaceId,e,n.substr(1),r):this.delegate.setProperty(e,n,r)}listen(e,n,r){if("@"==n.charAt(0)){const i=function vP(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(e);let o=n.substr(1),u="";return"@"!=o.charAt(0)&&([o,u]=function EP(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(o)),this.engine.listen(this.namespaceId,i,o,u,l=>{this.factory.scheduleListenerCallback(l._data||-1,r,l)})}return this.delegate.listen(e,n,r)}}let _P=(()=>{class t extends Kc{constructor(n,r,i){super(n.body,r,i)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(n){return new(n||t)(Se(Un),Se(Gp),Se(eg))},t.\u0275prov=Ye({token:t,factory:t.\u0275fac}),t})();const PD=new Fe("AnimationModuleType"),ND=[{provide:q_,useClass:hP},{provide:eg,useFactory:function DP(){return new VO}},{provide:Kc,useClass:_P},{provide:vu,useFactory:function IP(t,e,n){return new mP(t,e,n)},deps:[Rc,Kc,Pt]}],FD=[{provide:Gp,useFactory:()=>new fP},{provide:PD,useValue:"BrowserAnimations"},...ND],TP=[{provide:Gp,useClass:sD},{provide:PD,useValue:"NoopAnimations"},...ND];let wP=(()=>{class t{static withConfig(n){return{ngModule:t,providers:n.disableAnimations?TP:FD}}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=ai({type:t}),t.\u0275inj=ur({providers:FD,imports:[H_]}),t})();var bP=Pn(452),SP=Pn.n(bP),CP=Pn(212),AP=Pn.n(CP),Xc=Pn(917);const MP=(0,Xc.supported)(),RP=["id","name","class","multiple","required","disabled","capture","accept"],OP=["setOptions","on","off","onOnce","appendTo","insertAfter","insertBefore","isAttachedTo","replaceElement","restoreElement","destroy"],ag=["oninit","onwarning","onerror","onactivatefile","onaddfilestart","onaddfileprogress","onaddfile","onprocessfilestart","onprocessfileprogress","onprocessfileabort","onprocessfilerevert","onprocessfile","onprocessfiles","onremovefile","onpreparefile","onupdatefiles"];let PP=(()=>{class t{constructor(n,r){this.options={},this.handleEvent=null,this.root=n,this.zone=r,ag.forEach(i=>{this[i]=new Ar})}ngAfterViewInit(){const n=this.root.nativeElement.querySelector("input"),r=this.root.nativeElement.attributes;RP.forEach(i=>{const o=r[i]?r[i].value:this.options[i];!o||n.setAttribute(i,o)}),MP&&(this.handleEvent=i=>{this[`on${i.type.split(":")[1]}`].emit(Object.assign({},i.detail))},ag.forEach(i=>{this.root.nativeElement.addEventListener(`FilePond:${i.substr(2)}`,this.handleEvent)}),this.zone.runOutsideAngular(()=>{this.pond=(0,Xc.create)(n,Object.assign({},this.options,{files:this.files}))}),Object.keys(this.pond).filter(i=>-1===OP.indexOf(i)).forEach(i=>{this[i]=this.pond[i]}))}ngOnChanges(n){if(n.firstChange||!this.pond)return;const r=n.options?n.options.currentValue:this.options;n.files&&JSON.stringify(n.files.previousValue)!==JSON.stringify(n.files.currentValue)&&(r.files=n.files.currentValue),this.pond.setOptions(r)}ngOnDestroy(){!this.pond||(ag.forEach(n=>{this.root.nativeElement.removeEventListener(`FilePond:${n.substr(2)}`,this.handleEvent)}),this.pond.destroy())}}return t.\u0275fac=function(n){return new(n||t)(be(yo),be(Pt))},t.\u0275cmp=ca({type:t,selectors:[["file-pond"]],inputs:{options:"options",files:"files"},outputs:{oninit:"oninit",onwarning:"onwarning",onerror:"onerror",onactivatefile:"onactivatefile",onaddfilestart:"onaddfilestart",onaddfileprogress:"onaddfileprogress",onaddfile:"onaddfile",onprocessfilestart:"onprocessfilestart",onprocessfileprogress:"onprocessfileprogress",onprocessfileabort:"onprocessfileabort",onprocessfilerevert:"onprocessfilerevert",onprocessfile:"onprocessfile",onprocessfiles:"onprocessfiles",onremovefile:"onremovefile",onpreparefile:"onpreparefile",onupdatefiles:"onupdatefiles"},features:[ci],decls:2,vars:0,consts:[[1,"filepond--wrapper"],["type","file"]],template:function(n,r){1&n&&(du(0,"div",0),Th(1,"input",1),fu())},styles:[""],encapsulation:2}),t})(),NP=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=ai({type:t}),t.\u0275inj=ur({imports:[[M_]]}),t})();const FP=["myPond"];let LP=(()=>{class t{constructor(){this.initialFiles=[],this.pondOptions={instantUpload:!0,allowDownloadByUrl:!0,server:{process:(n,r,i,o,u,l,d)=>(this.onUpload(null,[{fieldName:n,file:r,fileName:r.name}]).then(p=>o(p)).catch(p=>u(p)),{abort:()=>{d()}}),revert:(n,r,i)=>{this.onRemoveUploaded({fileId:n}).then(o=>r()).catch(o=>i(o))}}}}pondInit(){for(const n of this.initialFiles)this.myPond.addFile(n.id,{type:"limbo",file:{name:n.fileName,size:n.length},metadata:{url:n.downloadUrl}})}ngOnChanges(n){this.pondOptions=Object.assign(Object.assign({},this.pondOptions),{allowMultiple:!!this.allowMultiple})}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=ca({type:t,selectors:[["drayman-file-uploader-internal"]],viewQuery:function(n,r){if(1&n&&EE(FP,5),2&n){let i;vE(i=function _E(){return function hC(t,e){return t[19].queries[e].queryList}(F(),Xi())}())&&(r.myPond=i.first)}},inputs:{onUpload:"onUpload",onRemoveUploaded:"onRemoveUploaded",allowMultiple:"allowMultiple",initialFiles:"initialFiles"},features:[ci],decls:2,vars:1,consts:[["aria-label","File uploader",3,"options","oninit"],["myPond",""]],template:function(n,r){1&n&&(du(0,"file-pond",0,1),Ch("oninit",function(){return r.pondInit()}),fu()),2&n&&Dh("options",r.pondOptions)},directives:[PP],styles:[""]}),t})();(0,Xc.registerPlugin)(AP()),(0,Xc.registerPlugin)(SP());let xP=(()=>{class t{constructor(n){this.injector=n}ngDoBootstrap(){const n=function SR(t,e){const n=function ER(t,e){return e.get(Ls).resolveComponentFactory(t).inputs}(t,e.injector),r=e.strategyFactory||new TR(t,e.injector),i=function vR(t){const e={};return t.forEach(({propName:n,templateName:r})=>{e[function hR(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}(r)]=n}),e}(n);class o extends bR{constructor(l){super(),this.injector=l}get ngElementStrategy(){if(!this._ngElementStrategy){const l=this._ngElementStrategy=r.create(this.injector||e.injector);n.forEach(({propName:d})=>{if(!this.hasOwnProperty(d))return;const p=this[d];delete this[d],l.setInputValue(d,p)})}return this._ngElementStrategy}attributeChangedCallback(l,d,p,m){this.ngElementStrategy.setInputValue(i[l],p)}connectedCallback(){let l=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),l=!0),this.ngElementStrategy.connect(this),l||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(l=>{const d=new CustomEvent(l.name,{detail:l.value});this.dispatchEvent(d)})}}return o.observedAttributes=Object.keys(i),n.forEach(({propName:u})=>{Object.defineProperty(o.prototype,u,{get(){return this.ngElementStrategy.getInputValue(u)},set(l){this.ngElementStrategy.setInputValue(u,l)},configurable:!0,enumerable:!0})}),o}(LP,{injector:this.injector});customElements.define("drayman-file-uploader",n)}}return t.\u0275fac=function(n){return new(n||t)(Se(jn))},t.\u0275mod=ai({type:t}),t.\u0275inj=ur({imports:[[H_,wP,NP]]}),t})();(function e0(){XE=!1})(),BM().bootstrapModule(xP).catch(t=>console.error(t))})()})();
1
+ (()=>{var xD={452:function(ft){ft.exports=function(){"use strict";var Je=function(Nn){var Bi=Nn.addFilter,Ee=Nn.utils,Ge=Ee.Type,Ie=Ee.replaceInString,Ae=Ee.toNaturalFileSize;return Bi("ALLOW_HOPPER_ITEM",function(At,Ut){var rt=Ut.query;if(!rt("GET_ALLOW_FILE_SIZE_VALIDATION"))return!0;var et=rt("GET_MAX_FILE_SIZE");if(null!==et&&At.size>=et)return!1;var sn=rt("GET_MIN_FILE_SIZE");return!(null!==sn&&At.size<=sn)}),Bi("LOAD_FILE",function(At,Ut){var rt=Ut.query;return new Promise(function(et,sn){if(!rt("GET_ALLOW_FILE_SIZE_VALIDATION"))return et(At);var ni=rt("GET_FILE_VALIDATE_SIZE_FILTER");if(ni&&!ni(At))return et(At);var gn=rt("GET_MAX_FILE_SIZE");if(null!==gn&&At.size>=gn)sn({status:{main:rt("GET_LABEL_MAX_FILE_SIZE_EXCEEDED"),sub:Ie(rt("GET_LABEL_MAX_FILE_SIZE"),{filesize:Ae(gn)})}});else{var Gt=rt("GET_MIN_FILE_SIZE");if(null!==Gt&&At.size<=Gt)sn({status:{main:rt("GET_LABEL_MIN_FILE_SIZE_EXCEEDED"),sub:Ie(rt("GET_LABEL_MIN_FILE_SIZE"),{filesize:Ae(Gt)})}});else{var Fn=rt("GET_MAX_TOTAL_FILE_SIZE");if(null!==Fn&&rt("GET_ACTIVE_ITEMS").reduce(function(Nr,tt){return Nr+tt.fileSize},0)>Fn)return void sn({status:{main:rt("GET_LABEL_MAX_TOTAL_FILE_SIZE_EXCEEDED"),sub:Ie(rt("GET_LABEL_MAX_TOTAL_FILE_SIZE"),{filesize:Ae(Fn)})}});et(At)}}})}),{options:{allowFileSizeValidation:[!0,Ge.BOOLEAN],maxFileSize:[null,Ge.INT],minFileSize:[null,Ge.INT],maxTotalFileSize:[null,Ge.INT],fileValidateSizeFilter:[null,Ge.FUNCTION],labelMinFileSizeExceeded:["File is too small",Ge.STRING],labelMinFileSize:["Minimum file size is {filesize}",Ge.STRING],labelMaxFileSizeExceeded:["File is too large",Ge.STRING],labelMaxFileSize:["Maximum file size is {filesize}",Ge.STRING],labelMaxTotalFileSizeExceeded:["Maximum total size exceeded",Ge.STRING],labelMaxTotalFileSize:["Maximum total file size is {filesize}",Ge.STRING]}}};return"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:Je})),Je}()},212:function(ft){ft.exports=function(){"use strict";const J=Ee=>{let Ge=document.createElement("span");return Ge.className="filepond--download-icon",Ge.title=Ee,Ge},pn=(Ee,Ge)=>{if(Ge&&Ee.getMetadata("url"))location.href=Ee.getMetadata("url");else{const Ie=document.createElement("a"),Ae=window.URL.createObjectURL(Ee.file);document.body.appendChild(Ie),Ie.style.display="none",Ie.href=Ae,Ie.download=Ee.file.name,Ie.click(),window.URL.revokeObjectURL(Ae),Ie.remove()}},Nn=Ee=>{const{addFilter:Ge,utils:Ie}=Ee,{Type:Ae,createRoute:At}=Ie;return Ge("CREATE_VIEW",Ut=>{const{is:rt,view:et,query:sn}=Ut;rt("file")&&et.registerWriter(At({DID_LOAD_ITEM:({root:gn,props:Gt})=>{const{id:Fn}=Gt,Pr=sn("GET_ITEM",Fn);if(!Pr||Pr.archived)return;const Nr=gn.query("GET_LABEL_BUTTON_DOWNLOAD_ITEM"),tt=gn.query("GET_ALLOW_DOWNLOAD_BY_URL");((Ee,Ge,Ie,Ae)=>{const At=Ge.querySelector(".filepond--file-info-main"),Ut=J(Ie);At.prepend(Ut),Ut.addEventListener("click",()=>pn(Ee,Ae))})(Pr,gn.element,Nr,tt)}},({props:Gt})=>{const{id:Fn}=Gt;sn("GET_ITEM",Fn)}))}),{options:{labelButtonDownloadItem:["Download file",Ae.STRING],allowDownloadByUrl:[!1,Ae.BOOLEAN]}}};return"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:Nn})),Nn}()},917:function(ft,Je){!function(J){"use strict";var pn=function(s){return s instanceof HTMLElement},Nn=function(s){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],f=Object.assign({},s),g=[],y=[],I=function(){var P=[].concat(y);y.length=0,P.forEach(function(B){T(B.type,B.data)})},T=function(P,B,$){!$||document.hidden?(k[P]&&k[P](B),g.push({type:P,data:B})):y.push({type:P,data:B})},C=function(P){for(var B,$=arguments.length,ne=new Array($>1?$-1:0),j=1;j<$;j++)ne[j-1]=arguments[j];return N[P]?(B=N)[P].apply(B,ne):null},S={getState:function(){return Object.assign({},f)},processActionQueue:function(){var P=[].concat(g);return g.length=0,P},processDispatchQueue:I,dispatch:T,query:C},N={};a.forEach(function(H){N=Object.assign({},H(f),{},N)});var k={};return c.forEach(function(H){k=Object.assign({},H(T,C,f),{},k)}),S},Ee=function(s,a){for(var c in s)!s.hasOwnProperty(c)||a(c,s[c])},Ge=function(s){var a={};return Ee(s,function(c){!function(s,a,c){"function"!=typeof c?Object.defineProperty(s,a,Object.assign({},c)):s[a]=c}(a,c,s[c])}),a},Ie=function(s,a){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(null===c)return s.getAttribute(a)||s.hasAttribute(a);s.setAttribute(a,c)},Ae="http://www.w3.org/2000/svg",At=["svg","path"],Ut=function(s){return At.includes(s)},rt=function(s,a){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"==typeof a&&(c=a,a=null);var f=Ut(s)?document.createElementNS(Ae,s):document.createElement(s);return a&&(Ut(s)?Ie(f,"class",a):f.className=a),Ee(c,function(g,y){Ie(f,g,y)}),f},et=function(s){return function(a,c){void 0!==c&&s.children[c]?s.insertBefore(a,s.children[c]):s.appendChild(a)}},sn=function(s,a){return function(c,f){return void 0!==f?a.splice(f,0,c):a.push(c),c}},ni=function(s,a){return function(c){return a.splice(a.indexOf(c),1),c.element.parentNode&&s.removeChild(c.element),c}},gn="undefined"!=typeof window&&void 0!==window.document,Gt=function(){return gn},Pr="children"in(Gt()?rt("svg"):{})?function(h){return h.children.length}:function(h){return h.childNodes.length},Nr=function(s,a,c,f){var g=c[0]||s.left,y=c[1]||s.top,v=g+s.width,_=y+s.height*(f[1]||1),I={element:Object.assign({},s),inner:{left:s.left,top:s.top,right:s.right,bottom:s.bottom},outer:{left:g,top:y,right:v,bottom:_}};return a.filter(function(T){return!T.isRectIgnored()}).map(function(T){return T.rect}).forEach(function(T){tt(I.inner,Object.assign({},T.inner)),tt(I.outer,Object.assign({},T.outer))}),zs(I.inner),I.outer.bottom+=I.element.marginBottom,I.outer.right+=I.element.marginRight,zs(I.outer),I},tt=function(s,a){a.top+=s.top,a.right+=s.left,a.bottom+=s.top,a.left+=s.left,a.bottom>s.bottom&&(s.bottom=a.bottom),a.right>s.right&&(s.right=a.right)},zs=function(s){s.width=s.right-s.left,s.height=s.bottom-s.top},ri=function(s){return"number"==typeof s},ii=function(s,a,c){var f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.001;return Math.abs(s-a)<f&&Math.abs(c)<f},So=function(s){return s<.5?2*s*s:(4-2*s)*s-1},qs={spring:function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=s.stiffness,c=void 0===a?.5:a,f=s.damping,g=void 0===f?.75:f,y=s.mass,v=void 0===y?10:y,_=null,I=null,T=0,C=!1,k=Ge({interpolate:function(P,B){if(!C){if(!ri(_)||!ri(I))return C=!0,void(T=0);ii(I+=T+=-(I-_)*c/v,_,T*=g)||B?(T=0,C=!0,k.onupdate(I=_),k.oncomplete(I)):k.onupdate(I)}},target:{set:function(P){if(ri(P)&&!ri(I)&&(I=P),null===_&&(_=P,I=P),I===(_=P)||void 0===_)return C=!0,T=0,k.onupdate(I),void k.oncomplete(I);C=!1},get:function(){return _}},resting:{get:function(){return C}},onupdate:function(P){},oncomplete:function(P){}});return k},tween:function(){var I,T,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=s.duration,c=void 0===a?500:a,f=s.easing,g=void 0===f?So:f,y=s.delay,v=void 0===y?0:y,_=null,C=!0,S=!1,N=null,H=Ge({interpolate:function(B,$){C||null===N||(null===_&&(_=B),!(B-_<v)&&((I=B-_-v)>=c||$?(I=1,H.onupdate((T=S?0:1)*N),H.oncomplete(T*N),C=!0):(T=I/c,H.onupdate((I>=0?g(S?1-T:T):0)*N))))},target:{get:function(){return S?0:N},set:function(B){if(null===N)return N=B,H.onupdate(B),void H.oncomplete(B);B<N?(N=1,S=!0):(S=!1,N=B),C=!1,_=null}},resting:{get:function(){return C}},onupdate:function(B){},oncomplete:function(B){}});return H}},Ys=function(s,a,c){var f=arguments.length>3&&void 0!==arguments[3]&&arguments[3];(a=Array.isArray(a)?a:[a]).forEach(function(g){s.forEach(function(y){var v=y,_=function(){return c[y]},I=function(C){return c[y]=C};"object"==typeof y&&(v=y.key,_=y.getter||_,I=y.setter||I),(!g[v]||f)&&(g[v]={get:_,set:I})})})},$t=function(s){return null!=s},rd={opacity:1,scaleX:1,scaleY:1,translateX:0,translateY:0,rotateX:0,rotateY:0,rotateZ:0,originX:0,originY:0},ku=function(s,a){if(Object.keys(s).length!==Object.keys(a).length)return!0;for(var c in a)if(a[c]!==s[c])return!0;return!1},Bu=function(s,a){var c=a.opacity,f=a.perspective,g=a.translateX,y=a.translateY,v=a.scaleX,_=a.scaleY,I=a.rotateX,T=a.rotateY,C=a.rotateZ,S=a.originX,N=a.originY,k=a.width,H=a.height,P="",B="";($t(S)||$t(N))&&(B+="transform-origin: "+(S||0)+"px "+(N||0)+"px;"),$t(f)&&(P+="perspective("+f+"px) "),($t(g)||$t(y))&&(P+="translate3d("+(g||0)+"px, "+(y||0)+"px, 0) "),($t(v)||$t(_))&&(P+="scale3d("+($t(v)?v:1)+", "+($t(_)?_:1)+", 1) "),$t(C)&&(P+="rotateZ("+C+"rad) "),$t(I)&&(P+="rotateX("+I+"rad) "),$t(T)&&(P+="rotateY("+T+"rad) "),P.length&&(B+="transform:"+P+";"),$t(c)&&(B+="opacity:"+c+";",0===c&&(B+="visibility:hidden;"),c<1&&(B+="pointer-events:none;")),$t(H)&&(B+="height:"+H+"px;"),$t(k)&&(B+="width:"+k+"px;");var $=s.elementCurrentStyle||"";(B.length!==$.length||B!==$)&&(s.style.cssText=B,s.elementCurrentStyle=B)},Vu={styles:function(s){var a=s.mixinConfig,c=s.viewProps,f=s.viewInternalAPI,g=s.viewExternalAPI,y=s.view,v=Object.assign({},c),_={};Ys(a,[f,g],c);var C=function(){return y.rect?Nr(y.rect,y.childViews,[c.translateX||0,c.translateY||0],[c.scaleX||0,c.scaleY||0]):null};return f.rect={get:C},g.rect={get:C},a.forEach(function(S){c[S]=void 0===v[S]?rd[S]:v[S]}),{write:function(){if(ku(_,c))return Bu(y.element,c),Object.assign(_,Object.assign({},c)),!0},destroy:function(){}}},listeners:function(s){var g=s.viewExternalAPI,v=s.view,_=[],I=function(s){return function(a,c){s.addEventListener(a,c)}}(v.element),T=function(s){return function(a,c){s.removeEventListener(a,c)}}(v.element);return g.on=function(C,S){_.push({type:C,fn:S}),I(C,S)},g.off=function(C,S){_.splice(_.findIndex(function(N){return N.type===C&&N.fn===S}),1),T(C,S)},{write:function(){return!0},destroy:function(){_.forEach(function(S){T(S.type,S.fn)})}}},animations:function(s){var a=s.mixinConfig,c=s.viewProps,f=s.viewInternalAPI,g=s.viewExternalAPI,y=Object.assign({},c),v=[];return Ee(a,function(_,I){var T=function(s,a,c){var f=s[a]&&"object"==typeof s[a][c]?s[a][c]:s[a]||s,g="string"==typeof f?f:f.type,y="object"==typeof f?Object.assign({},f):{};return qs[g]?qs[g](y):null}(I);T&&(T.onupdate=function(S){c[_]=S},T.target=y[_],Ys([{key:_,setter:function(N){T.target!==N&&(T.target=N)},getter:function(){return c[_]}}],[f,g],c,!0),v.push(T))}),{write:function(I){var T=document.hidden,C=!0;return v.forEach(function(S){S.resting||(C=!1),S.interpolate(I,T)}),C},destroy:function(){}}},apis:function(s){Ys(s.mixinConfig,s.viewExternalAPI,s.viewProps)}},ju=function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return a.layoutCalculated||(s.paddingTop=parseInt(c.paddingTop,10)||0,s.marginTop=parseInt(c.marginTop,10)||0,s.marginRight=parseInt(c.marginRight,10)||0,s.marginBottom=parseInt(c.marginBottom,10)||0,s.marginLeft=parseInt(c.marginLeft,10)||0,a.layoutCalculated=!0),s.left=a.offsetLeft||0,s.top=a.offsetTop||0,s.width=a.offsetWidth||0,s.height=a.offsetHeight||0,s.right=s.left+s.width,s.bottom=s.top+s.height,s.scrollTop=a.scrollTop,s.hidden=null===a.offsetParent,s},ht=function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=s.tag,c=void 0===a?"div":a,f=s.name,g=void 0===f?null:f,y=s.attributes,v=void 0===y?{}:y,_=s.read,I=void 0===_?function(){}:_,T=s.write,C=void 0===T?function(){}:T,S=s.create,N=void 0===S?function(){}:S,k=s.destroy,H=void 0===k?function(){}:k,P=s.filterFrameActionsForChild,B=void 0===P?function(z,ee){return ee}:P,$=s.didCreateView,ne=void 0===$?function(){}:$,j=s.didWriteView,Re=void 0===j?function(){}:j,ae=s.ignoreRect,Ve=void 0!==ae&&ae,xe=s.ignoreRectUpdate,q=void 0!==xe&&xe,te=s.mixins,re=void 0===te?[]:te;return function(z){var ee=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},oe=rt(c,"filepond--"+g,v),je=window.getComputedStyle(oe,null),ke=ju(),se=null,x=!1,A=[],Q=[],fe={},ge={},Ce=[C],_e=[I],Oe=[H],Kn=function(){return oe},_r=function(){return A.concat()},Za=function(Pe){return function(Zn,Dr){return Zn(Pe,Dr)}},ps=function(){return se||(se=Nr(ke,A,[0,0],[1,1]))},po=function(){se=null,A.forEach(function(Dr){return Dr._read()}),!(q&&ke.width&&ke.height)&&ju(ke,oe,je);var Zn={root:wn,props:ee,rect:ke};_e.forEach(function(Dr){return Dr(Zn)})},Lf=function(Pe,Zn,Dr){var Ci=0===Zn.length;return Ce.forEach(function(bt){!1===bt({props:ee,root:wn,actions:Zn,timestamp:Pe,shouldOptimize:Dr})&&(Ci=!1)}),Q.forEach(function(bt){!1===bt.write(Pe)&&(Ci=!1)}),A.filter(function(bt){return!!bt.element.parentNode}).forEach(function(bt){bt._write(Pe,B(bt,Zn),Dr)||(Ci=!1)}),A.forEach(function(bt,Xn){bt.element.parentNode||(wn.appendChild(bt.element,Xn),bt._read(),bt._write(Pe,B(bt,Zn),Dr),Ci=!1)}),x=Ci,Re({props:ee,root:wn,actions:Zn,timestamp:Pe}),Ci},Vl=function(){Q.forEach(function(Pe){return Pe.destroy()}),Oe.forEach(function(Pe){Pe({root:wn,props:ee})}),A.forEach(function(Pe){return Pe._destroy()})},jl={element:{get:Kn},style:{get:function(){return je}},childViews:{get:_r}},Hl=Object.assign({},jl,{rect:{get:ps},ref:{get:function(){return fe}},is:function(Pe){return g===Pe},appendChild:et(oe),createChildView:Za(z),linkView:function(Pe){return A.push(Pe),Pe},unlinkView:function(Pe){A.splice(A.indexOf(Pe),1)},appendChildView:sn(0,A),removeChildView:ni(oe,A),registerWriter:function(Pe){return Ce.push(Pe)},registerReader:function(Pe){return _e.push(Pe)},registerDestroyer:function(Pe){return Oe.push(Pe)},invalidateLayout:function(){return oe.layoutCalculated=!1},dispatch:z.dispatch,query:z.query}),Ja={element:{get:Kn},childViews:{get:_r},rect:{get:ps},resting:{get:function(){return x}},isRectIgnored:function(){return Ve},_read:po,_write:Lf,_destroy:Vl},eu=Object.assign({},jl,{rect:{get:function(){return ke}}});Object.keys(re).sort(function(He,Pe){return"styles"===He?1:"styles"===Pe?-1:0}).forEach(function(He){var Pe=Vu[He]({mixinConfig:re[He],viewProps:ee,viewState:ge,viewInternalAPI:Hl,viewExternalAPI:Ja,view:Ge(eu)});Pe&&Q.push(Pe)});var wn=Ge(Hl);N({root:wn,props:ee});var tu=Pr(oe);return A.forEach(function(He,Pe){wn.appendChild(He.element,tu+Pe)}),ne(wn),Ge(Ja)}},Ft=function(s,a){return function(c){var f=c.root,g=c.props,y=c.actions,v=void 0===y?[]:y,_=c.timestamp,I=c.shouldOptimize;v.filter(function(T){return s[T.type]}).forEach(function(T){return s[T.type]({root:f,props:g,action:T.data,timestamp:_,shouldOptimize:I})}),a&&a({root:f,props:g,actions:v,timestamp:_,shouldOptimize:I})}},Hu=function(s,a){return a.parentNode.insertBefore(s,a)},Uu=function(s,a){return a.parentNode.insertBefore(s,a.nextSibling)},Ao=function(s){return Array.isArray(s)},Ln=function(s){return null==s},Gu=function(s){return s.trim()},Ks=function(s){return""+s},od=function(s){return"boolean"==typeof s},Zs=function(s){return od(s)?s:"true"===s},Lt=function(s){return"string"==typeof s},zu=function(s){return ri(s)?s:Lt(s)?Ks(s).replace(/[a-z]+/gi,""):0},Mo=function(s){return parseInt(zu(s),10)},sd=function(s){return parseFloat(zu(s))},oi=function(s){return ri(s)&&isFinite(s)&&Math.floor(s)===s},Xs=function(s){if(oi(s))return s;var a=Ks(s).trim();return/MB$/i.test(a)?(a=a.replace(/MB$i/,"").trim(),1e3*Mo(a)*1e3):/KB/i.test(a)?(a=a.replace(/KB$i/,"").trim(),1e3*Mo(a)):Mo(a)},Fr=function(s){return"function"==typeof s},Wu={process:"POST",patch:"PATCH",revert:"DELETE",fetch:"GET",restore:"GET",load:"GET"},ud=function(s,a,c,f,g){if(null===a)return null;if("function"==typeof a)return a;var y={url:"GET"===c||"PATCH"===c?"?"+s+"=":"",method:c,headers:g,withCredentials:!1,timeout:f,onload:null,ondata:null,onerror:null};if(Lt(a))return y.url=a,y;if(Object.assign(y,a),Lt(y.headers)){var v=y.headers.split(/:(.+)/);y.headers={header:v[0],value:v[1]}}return y.withCredentials=Zs(y.withCredentials),y},wt=function(s){return"object"==typeof s&&null!==s},Js=function(s){return Ao(s)?"array":function(s){return null===s}(s)?"null":oi(s)?"int":/^[0-9]+ ?(?:GB|MB|KB)$/gi.test(s)?"bytes":function(s){return wt(s)&&Lt(s.url)&&wt(s.process)&&wt(s.revert)&&wt(s.restore)&&wt(s.fetch)}(s)?"api":typeof s},hd={array:function(s){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";return Ln(s)?[]:Ao(s)?s:Ks(s).split(a).map(Gu).filter(function(c){return c.length})},boolean:Zs,int:function(s){return"bytes"===Js(s)?Xs(s):Mo(s)},number:sd,float:sd,bytes:Xs,string:function(s){return Fr(s)?s:Ks(s)},function:function(s){return function(s){for(var a=self,c=s.split("."),f=null;f=c.shift();)if(!(a=a[f]))return null;return a}(s)},serverapi:function(s){return function(s){var a={};return a.url=Lt(s)?s:s.url||"",a.timeout=s.timeout?parseInt(s.timeout,10):0,a.headers=s.headers?s.headers:{},Ee(Wu,function(c){a[c]=ud(c,s[c],Wu[c],a.timeout,a.headers)}),a.remove=s.remove||null,delete a.headers,a}(s)},object:function(s){try{return JSON.parse(function(s){return s.replace(/{\s*'/g,'{"').replace(/'\s*}/g,'"}').replace(/'\s*:/g,'":').replace(/:\s*'/g,':"').replace(/,\s*'/g,',"').replace(/'\s*,/g,'",')}(s))}catch(a){return null}}},qe=function(s,a,c){if(s===a)return s;var f=Js(s);if(f!==c){var g=function(s,a){return hd[a](s)}(s,c);if(f=Js(g),null===g)throw'Trying to assign value with incorrect type to "'+option+'", allowed type: "'+c+'"';s=g}return s},$e=function(s){var a={};return Ee(s,function(c){var f=s[c];a[c]=function(s,a){var c=s;return{enumerable:!0,get:function(){return c},set:function(g){c=qe(g,s,a)}}}(f[0],f[1])}),Ge(a)},ta=function(s){return{items:[],listUpdateTimeout:null,itemUpdateTimeout:null,processingQueue:[],options:$e(s)}},Ro=function(s){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return s.split(/(?=[A-Z])/).map(function(c){return c.toLowerCase()}).join(a)},na=function(s,a){var c={};return Ee(a,function(f){c[f]={get:function(){return s.getState().options[f]},set:function(y){s.dispatch("SET_"+Ro(f,"_").toUpperCase(),{value:y})}}}),c},ve=function(s){return function(a,c,f){var g={};return Ee(s,function(y){var v=Ro(y,"_").toUpperCase();g["SET_"+v]=function(_){try{f.options[y]=_.value}catch(I){}a("DID_SET_"+v,{value:f.options[y]})}}),g}},Yu=function(s){return function(a){var c={};return Ee(s,function(f){c["GET_"+Ro(f,"_").toUpperCase()]=function(g){return a.options[f]}}),c}},mn_API=1,mn_DROP=2,mn_BROWSE=3,mn_PASTE=4,mn_NONE=5,Y=function(){return Math.random().toString(36).substr(2,9)};function gd(h){this.wrapped=h}function Oo(h){var s,a;function f(y,v){try{var _=h[y](v),I=_.value,T=I instanceof gd;Promise.resolve(T?I.wrapped:I).then(function(C){T?f("next",C):g(_.done?"return":"normal",C)},function(C){f("throw",C)})}catch(C){g("throw",C)}}function g(y,v){switch(y){case"return":s.resolve({value:v,done:!0});break;case"throw":s.reject(v);break;default:s.resolve({value:v,done:!1})}(s=s.next)?f(s.key,s.arg):a=null}this._invoke=function c(y,v){return new Promise(function(_,I){var T={key:y,arg:v,resolve:_,reject:I,next:null};a?a=a.next=T:(s=a=T,f(y,v))})},"function"!=typeof h.return&&(this.return=void 0)}function Ku(h,s){if(null==h)return{};var c,f,a=function ua(h,s){if(null==h)return{};var f,g,a={},c=Object.keys(h);for(g=0;g<c.length;g++)!(s.indexOf(f=c[g])>=0)&&(a[f]=h[f]);return a}(h,s);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(h);for(f=0;f<g.length;f++)!(s.indexOf(c=g[f])>=0)&&(!Object.prototype.propertyIsEnumerable.call(h,c)||(a[c]=h[c]))}return a}function wd(h){return function We(h){if(Array.isArray(h)){for(var s=0,a=new Array(h.length);s<h.length;s++)a[s]=h[s];return a}}(h)||function bd(h){if(Symbol.iterator in Object(h)||"[object Arguments]"===Object.prototype.toString.call(h))return Array.from(h)}(h)||function Fo(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}"function"==typeof Symbol&&Symbol.asyncIterator&&(Oo.prototype[Symbol.asyncIterator]=function(){return this}),Oo.prototype.next=function(h){return this._invoke("next",h)},Oo.prototype.throw=function(h){return this._invoke("throw",h)},Oo.prototype.return=function(h){return this._invoke("return",h)};var s,a,U=function(s,a){return s.splice(a,1)},Ke=function(){var s=[],a=function(g,y){U(s,s.findIndex(function(v){return v.event===g&&(v.cb===y||!y)}))},c=function(g,y,v){s.filter(function(_){return _.event===g}).map(function(_){return _.cb}).forEach(function(_){return function(s,a){a?s():document.hidden?Promise.resolve(1).then(s):setTimeout(s,0)}(function(){return _.apply(void 0,wd(y))},v)})};return{fireSync:function(g){for(var y=arguments.length,v=new Array(y>1?y-1:0),_=1;_<y;_++)v[_-1]=arguments[_];c(g,v,!0)},fire:function(g){for(var y=arguments.length,v=new Array(y>1?y-1:0),_=1;_<y;_++)v[_-1]=arguments[_];c(g,v,!1)},on:function(g,y){s.push({event:g,cb:y})},onOnce:function(g,y){s.push({event:g,cb:function(){a(g,y),y.apply(void 0,arguments)}})},off:a}},zt=function(s,a,c){Object.getOwnPropertyNames(s).filter(function(f){return!c.includes(f)}).forEach(function(f){return Object.defineProperty(a,f,Object.getOwnPropertyDescriptor(s,f))})},kr=["fire","process","revert","load","on","off","onOnce","retryLoad","extend","archive","archived","release","released","requestProcessing","freeze"],Be=function(s){var a={};return zt(s,a,kr),a},Br=function(s){s.forEach(function(a,c){a.released&&U(s,c)})},K={INIT:1,IDLE:2,PROCESSING_QUEUED:9,PROCESSING:3,PROCESSING_COMPLETE:5,PROCESSING_ERROR:6,PROCESSING_REVERT_ERROR:10,LOADING:7,LOAD_ERROR:8},yt={INPUT:1,LIMBO:2,LOCAL:3},Vr=function(s){return/[^0-9]+/.exec(s)},pe=function(){return Vr(1.1.toLocaleString())[0]},L={BOOLEAN:"boolean",INT:"int",NUMBER:"number",STRING:"string",ARRAY:"array",OBJECT:"object",FUNCTION:"function",ACTION:"action",SERVER_API:"serverapi",REGEX:"regex"},Gi=[],Jt=function(s,a,c){return new Promise(function(f,g){var y=Gi.filter(function(_){return _.key===s}).map(function(_){return _.cb});if(0!==y.length){var v=y.shift();y.reduce(function(_,I){return _.then(function(T){return I(T,c)})},v(a,c)).then(function(_){return f(_)}).catch(function(_){return g(_)})}else f(a)})},st=function(s,a,c){return Gi.filter(function(f){return f.key===s}).map(function(f){return f.cb(a,c)})},$i=function(s,a){return Gi.push({key:s,cb:a})},qt=function(){return Object.assign({},li)},li={id:[null,L.STRING],name:["filepond",L.STRING],disabled:[!1,L.BOOLEAN],className:[null,L.STRING],required:[!1,L.BOOLEAN],captureMethod:[null,L.STRING],allowSyncAcceptAttribute:[!0,L.BOOLEAN],allowDrop:[!0,L.BOOLEAN],allowBrowse:[!0,L.BOOLEAN],allowPaste:[!0,L.BOOLEAN],allowMultiple:[!1,L.BOOLEAN],allowReplace:[!0,L.BOOLEAN],allowRevert:[!0,L.BOOLEAN],allowRemove:[!0,L.BOOLEAN],allowProcess:[!0,L.BOOLEAN],allowReorder:[!1,L.BOOLEAN],allowDirectoriesOnly:[!1,L.BOOLEAN],forceRevert:[!1,L.BOOLEAN],maxFiles:[null,L.INT],checkValidity:[!1,L.BOOLEAN],itemInsertLocationFreedom:[!0,L.BOOLEAN],itemInsertLocation:["before",L.STRING],itemInsertInterval:[75,L.INT],dropOnPage:[!1,L.BOOLEAN],dropOnElement:[!0,L.BOOLEAN],dropValidation:[!1,L.BOOLEAN],ignoredFiles:[[".ds_store","thumbs.db","desktop.ini"],L.ARRAY],instantUpload:[!0,L.BOOLEAN],maxParallelUploads:[2,L.INT],chunkUploads:[!1,L.BOOLEAN],chunkForce:[!1,L.BOOLEAN],chunkSize:[5e6,L.INT],chunkRetryDelays:[[500,1e3,3e3],L.Array],server:[null,L.SERVER_API],labelDecimalSeparator:[pe(),L.STRING],labelThousandsSeparator:[(s=pe(),a=1e3.toLocaleString(),a!==1e3.toString()?Vr(a)[0]:"."===s?",":"."),L.STRING],labelIdle:['Drag & Drop your files or <span class="filepond--label-action">Browse</span>',L.STRING],labelInvalidField:["Field contains invalid files",L.STRING],labelFileWaitingForSize:["Waiting for size",L.STRING],labelFileSizeNotAvailable:["Size not available",L.STRING],labelFileCountSingular:["file in list",L.STRING],labelFileCountPlural:["files in list",L.STRING],labelFileLoading:["Loading",L.STRING],labelFileAdded:["Added",L.STRING],labelFileLoadError:["Error during load",L.STRING],labelFileRemoved:["Removed",L.STRING],labelFileRemoveError:["Error during remove",L.STRING],labelFileProcessing:["Uploading",L.STRING],labelFileProcessingComplete:["Upload complete",L.STRING],labelFileProcessingAborted:["Upload cancelled",L.STRING],labelFileProcessingError:["Error during upload",L.STRING],labelFileProcessingRevertError:["Error during revert",L.STRING],labelTapToCancel:["tap to cancel",L.STRING],labelTapToRetry:["tap to retry",L.STRING],labelTapToUndo:["tap to undo",L.STRING],labelButtonRemoveItem:["Remove",L.STRING],labelButtonAbortItemLoad:["Abort",L.STRING],labelButtonRetryItemLoad:["Retry",L.STRING],labelButtonAbortItemProcessing:["Cancel",L.STRING],labelButtonUndoItemProcessing:["Undo",L.STRING],labelButtonRetryItemProcessing:["Retry",L.STRING],labelButtonProcessItem:["Upload",L.STRING],iconRemove:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M11.586 13l-2.293 2.293a1 1 0 0 0 1.414 1.414L13 14.414l2.293 2.293a1 1 0 0 0 1.414-1.414L14.414 13l2.293-2.293a1 1 0 0 0-1.414-1.414L13 11.586l-2.293-2.293a1 1 0 0 0-1.414 1.414L11.586 13z" fill="currentColor" fill-rule="nonzero"/></svg>',L.STRING],iconProcess:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M14 10.414v3.585a1 1 0 0 1-2 0v-3.585l-1.293 1.293a1 1 0 0 1-1.414-1.415l3-3a1 1 0 0 1 1.414 0l3 3a1 1 0 0 1-1.414 1.415L14 10.414zM9 18a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2H9z" fill="currentColor" fill-rule="evenodd"/></svg>',L.STRING],iconRetry:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M10.81 9.185l-.038.02A4.997 4.997 0 0 0 8 13.683a5 5 0 0 0 5 5 5 5 0 0 0 5-5 1 1 0 0 1 2 0A7 7 0 1 1 9.722 7.496l-.842-.21a.999.999 0 1 1 .484-1.94l3.23.806c.535.133.86.675.73 1.21l-.804 3.233a.997.997 0 0 1-1.21.73.997.997 0 0 1-.73-1.21l.23-.928v-.002z" fill="currentColor" fill-rule="nonzero"/></svg>',L.STRING],iconUndo:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M9.185 10.81l.02-.038A4.997 4.997 0 0 1 13.683 8a5 5 0 0 1 5 5 5 5 0 0 1-5 5 1 1 0 0 0 0 2A7 7 0 1 0 7.496 9.722l-.21-.842a.999.999 0 1 0-1.94.484l.806 3.23c.133.535.675.86 1.21.73l3.233-.803a.997.997 0 0 0 .73-1.21.997.997 0 0 0-1.21-.73l-.928.23-.002-.001z" fill="currentColor" fill-rule="nonzero"/></svg>',L.STRING],iconDone:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M18.293 9.293a1 1 0 0 1 1.414 1.414l-7.002 7a1 1 0 0 1-1.414 0l-3.998-4a1 1 0 1 1 1.414-1.414L12 15.586l6.294-6.293z" fill="currentColor" fill-rule="nonzero"/></svg>',L.STRING],oninit:[null,L.FUNCTION],onwarning:[null,L.FUNCTION],onerror:[null,L.FUNCTION],onactivatefile:[null,L.FUNCTION],oninitfile:[null,L.FUNCTION],onaddfilestart:[null,L.FUNCTION],onaddfileprogress:[null,L.FUNCTION],onaddfile:[null,L.FUNCTION],onprocessfilestart:[null,L.FUNCTION],onprocessfileprogress:[null,L.FUNCTION],onprocessfileabort:[null,L.FUNCTION],onprocessfilerevert:[null,L.FUNCTION],onprocessfile:[null,L.FUNCTION],onprocessfiles:[null,L.FUNCTION],onremovefile:[null,L.FUNCTION],onpreparefile:[null,L.FUNCTION],onupdatefiles:[null,L.FUNCTION],onreorderfiles:[null,L.FUNCTION],beforeDropFile:[null,L.FUNCTION],beforeAddFile:[null,L.FUNCTION],beforeRemoveFile:[null,L.FUNCTION],stylePanelLayout:[null,L.STRING],stylePanelAspectRatio:[null,L.STRING],styleItemPanelAspectRatio:[null,L.STRING],styleButtonRemoveItemPosition:["left",L.STRING],styleButtonProcessItemPosition:["right",L.STRING],styleLoadIndicatorPosition:["right",L.STRING],styleProgressIndicatorPosition:["right",L.STRING],styleButtonRemoveItemAlign:[!1,L.BOOLEAN],files:[[],L.ARRAY]},jr=function(s,a){return Ln(a)?s[0]||null:oi(a)?s[a]||null:("object"==typeof a&&(a=a.id),s.find(function(c){return c.id===a})||null)},_n=function(s){if(Ln(s))return s;if(/:/.test(s)){var a=s.split(":");return a[1]/a[0]}return parseFloat(s)},at=function(s){return s.filter(function(a){return!a.archived})},dr={EMPTY:0,IDLE:1,ERROR:2,BUSY:3,READY:4},Bo=[K.LOAD_ERROR,K.PROCESSING_ERROR,K.PROCESSING_REVERT_ERROR],Vo=[K.LOADING,K.PROCESSING,K.PROCESSING_QUEUED,K.INIT],Dn=[K.PROCESSING_COMPLETE],Od=function(s){return Bo.includes(s.status)},Eg=function(s){return Vo.includes(s.status)},Pd=function(s){return Dn.includes(s.status)},Nd=function(s){return{GET_STATUS:function(){var c=at(s.items),g=dr.ERROR,y=dr.BUSY,v=dr.IDLE,_=dr.READY;return 0===c.length?dr.EMPTY:c.some(Od)?g:c.some(Eg)?y:c.some(Pd)?_:v},GET_ITEM:function(c){return jr(s.items,c)},GET_ACTIVE_ITEM:function(c){return jr(at(s.items),c)},GET_ACTIVE_ITEMS:function(){return at(s.items)},GET_ITEMS:function(){return s.items},GET_ITEM_NAME:function(c){var f=jr(s.items,c);return f?f.filename:null},GET_ITEM_SIZE:function(c){var f=jr(s.items,c);return f?f.fileSize:null},GET_STYLES:function(){return Object.keys(s.options).filter(function(c){return/^style/.test(c)}).map(function(c){return{name:c,value:s.options[c]}})},GET_PANEL_ASPECT_RATIO:function(){return/circle/.test(s.options.stylePanelLayout)?1:_n(s.options.stylePanelAspectRatio)},GET_ITEM_PANEL_ASPECT_RATIO:function(){return s.options.styleItemPanelAspectRatio},GET_ITEMS_BY_STATUS:function(c){return at(s.items).filter(function(f){return f.status===c})},GET_TOTAL_ITEMS:function(){return at(s.items).length},IS_ASYNC:function(){return wt(s.options.server)&&(wt(s.options.server.process)||Fr(s.options.server.process))}}},Fd=function(s,a,c){return Math.max(Math.min(c,s),a)},el=function(s){return/^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*)\s*$/i.test(s)},jo=function(s){return s.split("/").pop().split("?").shift()},fa=function(s){return s.split(".").pop()},Tg=function(s){if("string"!=typeof s)return"";var a=s.split("/").pop();return/svg/.test(a)?"svg":/zip|compressed/.test(a)?"zip":/plain/.test(a)?"txt":/msword/.test(a)?"doc":/[a-z]+/.test(a)?"jpeg"===a?"jpg":a:""},Ho=function(s){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(a+s).slice(-a.length)},Ld=function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return s.getFullYear()+"-"+Ho(s.getMonth()+1,"00")+"-"+Ho(s.getDate(),"00")+"_"+Ho(s.getHours(),"00")+"-"+Ho(s.getMinutes(),"00")+"-"+Ho(s.getSeconds(),"00")},zi=function(s,a){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,g=s.slice(0,s.size,"string"==typeof c?c:s.type);return g.lastModifiedDate=new Date,s._relativePath&&(g._relativePath=s._relativePath),Lt(a)||(a=Ld()),a&&null===f&&fa(a)?g.name=a:(f=f||Tg(g.type),g.name=a+(f?"."+f:"")),g},xd=function(s,a){var c=window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder;if(c){var f=new c;return f.append(s),f.getBlob(a)}return new Blob([s],{type:a})},ha=function(s){return(/^data:(.+);/.exec(s)||[])[1]||null},Cg=function(s){var a=ha(s),c=function(s){return atob(function(s){return s.split(",")[1].replace(/\s/g,"")}(s))}(s);return function(s,a){for(var c=new ArrayBuffer(s.length),f=new Uint8Array(c),g=0;g<s.length;g++)f[g]=s.charCodeAt(g);return xd(c,a)}(c,a)},Hr=function(s){if(!/^content-disposition:/i.test(s))return null;var a=s.split(/filename=|filename\*=.+''/).splice(1).map(function(c){return c.trim().replace(/^["']|[;"']{0,2}$/g,"")}).filter(function(c){return c.length});return a.length?decodeURI(a[a.length-1]):null},tl=function(s){if(/content-length:/i.test(s)){var a=s.match(/[0-9]+/)[0];return a?parseInt(a,10):null}return null},ci=function(s){return/x-content-transfer-id:/i.test(s)&&(s.split(":")[1]||"").trim()||null},Uo=function(s){var a={source:null,name:null,size:null},c=s.split("\n"),f=!0,g=!1,y=void 0;try{for(var _,v=c[Symbol.iterator]();!(f=(_=v.next()).done);f=!0){var I=_.value,T=Hr(I);if(T)a.name=T;else{var C=tl(I);if(C)a.size=C;else{var S=ci(I);S&&(a.source=S)}}}}catch(N){g=!0,y=N}finally{try{!f&&null!=v.return&&v.return()}finally{if(g)throw y}}return a},kd=function(s){var a={source:null,complete:!1,progress:0,size:null,timestamp:null,duration:0,request:null},y=function(I){s?(a.timestamp=Date.now(),a.request=s(I,function(T){a.duration=Date.now()-a.timestamp,a.complete=!0,T instanceof Blob&&(T=zi(T,T.name||jo(I))),v.fire("load",T instanceof Blob?T:T?T.body:null)},function(T){v.fire("error","string"==typeof T?{type:"error",code:0,body:T}:T)},function(T,C,S){S&&(a.size=S),a.duration=Date.now()-a.timestamp,T?(a.progress=C/S,v.fire("progress",a.progress)):a.progress=null},function(){v.fire("abort")},function(T){var C=Uo("string"==typeof T?T:T.headers);v.fire("meta",{size:a.size||C.size,filename:C.name,source:C.source})})):v.fire("error",{type:"error",body:"Can't load URL",code:400})},v=Object.assign({},Ke(),{setSource:function(I){return a.source=I},getProgress:function(){return a.progress},abort:function(){a.request&&a.request.abort&&a.request.abort()},load:function(){var I=a.source;v.fire("init",I),I instanceof File?v.fire("load",I):I instanceof Blob?v.fire("load",zi(I,I.name)):el(I)?v.fire("load",function(s,a,c){return zi(Cg(s),a,null,c)}(I)):y(I)}});return v},nl=function(s){return/GET|HEAD/.test(s)},fr=function(s,a,c){var f={onheaders:function(){},onprogress:function(){},onload:function(){},ontimeout:function(){},onerror:function(){},onabort:function(){},abort:function(){g=!0,v.abort()}},g=!1,y=!1;c=Object.assign({method:"POST",headers:{},withCredentials:!1},c),a=encodeURI(a),nl(c.method)&&s&&(a=""+a+encodeURIComponent("string"==typeof s?s:JSON.stringify(s)));var v=new XMLHttpRequest;return(nl(c.method)?v:v.upload).onprogress=function(I){g||f.onprogress(I.lengthComputable,I.loaded,I.total)},v.onreadystatechange=function(){v.readyState<2||4===v.readyState&&0===v.status||y||(y=!0,f.onheaders(v))},v.onload=function(){v.status>=200&&v.status<300?f.onload(v):f.onerror(v)},v.onerror=function(){return f.onerror(v)},v.onabort=function(){g=!0,f.onabort()},v.ontimeout=function(){return f.ontimeout(v)},v.open(c.method,a,!0),oi(c.timeout)&&(v.timeout=c.timeout),Object.keys(c.headers).forEach(function(I){var T=unescape(encodeURIComponent(c.headers[I]));v.setRequestHeader(I,T)}),c.responseType&&(v.responseType=c.responseType),c.withCredentials&&(v.withCredentials=!0),v.send(s),f},ut=function(s,a,c,f){return{type:s,code:a,body:c,headers:f}},Ur=function(s){return function(a){s(ut("error",0,"Timeout",a.getAllResponseHeaders()))}},Go=function(s){return/\?/.test(s)},qi=function(){for(var s="",a=arguments.length,c=new Array(a),f=0;f<a;f++)c[f]=arguments[f];return c.forEach(function(g){s+=Go(s)&&Go(g)?g.replace(/\?/,"&"):g}),s},Wt=function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",a=arguments.length>1?arguments[1]:void 0;if("function"==typeof a)return a;if(!a||!Lt(a.url))return null;var c=a.onload||function(g){return g},f=a.onerror||function(g){return null};return function(g,y,v,_,I,T){var C=fr(g,qi(s,a.url),Object.assign({},a,{responseType:"blob"}));return C.onload=function(S){var N=S.getAllResponseHeaders(),k=Uo(N).name||jo(g);y(ut("load",S.status,"HEAD"===a.method?null:zi(c(S.response),k),N))},C.onerror=function(S){v(ut("error",S.status,f(S.response)||S.statusText,S.getAllResponseHeaders()))},C.onheaders=function(S){T(ut("headers",S.status,null,S.getAllResponseHeaders()))},C.ontimeout=Ur(v),C.onprogress=_,C.onabort=I,C}},Yt_QUEUED=0,Yt_COMPLETE=1,Yt_PROCESSING=2,Yt_ERROR=3,Yt_WAITING=4,Bd=function(s,a,c,f,g,y,v,_,I,T,C){for(var S=[],k=C.chunkServer,H=C.chunkSize,P=C.chunkRetryDelays,B={serverId:C.chunkTransferId,aborted:!1},$=a.ondata||function(x){return x},ne=a.onload||function(x,A){return"HEAD"===A?x.getResponseHeader("Upload-Offset"):x.response},j=a.onerror||function(x){return null},Ve=Math.floor(f.size/H),xe=0;xe<=Ve;xe++){var q=xe*H,te=f.slice(q,q+H,"application/offset+octet-stream");S[xe]={index:xe,size:te.size,offset:q,data:te,file:f,progress:0,retries:wd(P),status:Yt_QUEUED,error:null,request:null,timeout:null}}var A,Q,ge,Ce,z=function(A){return A.status===Yt_QUEUED||A.status===Yt_ERROR},ee=function(A){if(!B.aborted){if(!(A=A||S.find(z)))return void(S.every(function(Oe){return Oe.status===Yt_COMPLETE})&&y(B.serverId));A.status=Yt_PROCESSING,A.progress=null;var Q=k.ondata||function(Oe){return Oe},fe=k.onerror||function(Oe){return null},ge=qi(s,k.url,B.serverId),Ce="function"==typeof k.headers?k.headers(A):Object.assign({},k.headers,{"Content-Type":"application/offset+octet-stream","Upload-Offset":A.offset,"Upload-Length":f.size,"Upload-Name":f.name}),_e=A.request=fr(Q(A.data),ge,Object.assign({},k,{headers:Ce}));_e.onload=function(){A.status=Yt_COMPLETE,A.request=null,ke()},_e.onprogress=function(Oe,Kn,_r){A.progress=Oe?Kn:null,je()},_e.onerror=function(Oe){A.status=Yt_ERROR,A.request=null,A.error=fe(Oe.response)||Oe.statusText,oe(A)||v(ut("error",Oe.status,fe(Oe.response)||Oe.statusText,Oe.getAllResponseHeaders()))},_e.ontimeout=function(Oe){A.status=Yt_ERROR,A.request=null,oe(A)||Ur(v)(Oe)},_e.onabort=function(){A.status=Yt_QUEUED,A.request=null,I()}}},oe=function(A){return 0!==A.retries.length&&(A.status=Yt_WAITING,clearTimeout(A.timeout),A.timeout=setTimeout(function(){ee(A)},A.retries.shift()),!0)},je=function(){var A=S.reduce(function(fe,ge){return null===fe||null===ge.progress?null:fe+ge.progress},0);if(null===A)return _(!1,0,0);var Q=S.reduce(function(fe,ge){return fe+ge.size},0);_(!0,A,Q)},ke=function(){S.filter(function(Q){return Q.status===Yt_PROCESSING}).length>=1||ee()};return B.serverId?(A=function(x){B.aborted||(S.filter(function(A){return A.offset<x}).forEach(function(A){A.status=Yt_COMPLETE,A.progress=A.size}),ke())},Q=qi(s,k.url,B.serverId),ge={headers:"function"==typeof a.headers?a.headers(B.serverId):Object.assign({},a.headers),method:"HEAD"},(Ce=fr(null,Q,ge)).onload=function(_e){return A(ne(_e,ge.method))},Ce.onerror=function(_e){return v(ut("error",_e.status,j(_e.response)||_e.statusText,_e.getAllResponseHeaders()))},Ce.ontimeout=Ur(v)):function(A){var Q=new FormData;wt(g)&&Q.append(c,JSON.stringify(g));var fe="function"==typeof a.headers?a.headers(f,g):Object.assign({},a.headers,{"Upload-Length":f.size}),ge=Object.assign({},a,{headers:fe}),Ce=fr($(Q),qi(s,a.url),ge);Ce.onload=function(_e){return A(ne(_e,ge.method))},Ce.onerror=function(_e){return v(ut("error",_e.status,j(_e.response)||_e.statusText,_e.getAllResponseHeaders()))},Ce.ontimeout=Ur(v)}(function(x){B.aborted||(T(x),B.serverId=x,ke())}),{abort:function(){B.aborted=!0,S.forEach(function(A){clearTimeout(A.timeout),A.request&&A.request.abort()})}}},ga=function(s,a,c,f){return function(g,y,v,_,I,T,C){if(g){var S=f.chunkUploads;if(g instanceof Blob&&S&&(S&&g.size>f.chunkSize||f.chunkForce))return Bd(s,a,c,g,y,v,_,I,T,C,f);var H=a.ondata||function(j){return j},P=a.onload||function(j){return j},B=a.onerror||function(j){return null},$=new FormData;wt(y)&&$.append(c,JSON.stringify(y)),(g instanceof Blob?[{name:null,file:g}]:g).forEach(function(j){$.append(c,j.file,null===j.name?j.file.name:""+j.name+j.file.name)});var ne=fr(H($),qi(s,a.url),a);return ne.onload=function(j){v(ut("load",j.status,P(j.response),j.getAllResponseHeaders()))},ne.onerror=function(j){_(ut("error",j.status,B(j.response)||j.statusText,j.getAllResponseHeaders()))},ne.ontimeout=Ur(_),ne.onprogress=I,ne.onabort=T,ne}}},Wi=function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",a=arguments.length>1?arguments[1]:void 0;if("function"==typeof a)return a;if(!a||!Lt(a.url))return function(g,y){return y()};var c=a.onload||function(g){return g},f=a.onerror||function(g){return null};return function(g,y,v){var _=fr(g,s+a.url,a);return _.onload=function(I){y(ut("load",I.status,c(I.response),I.getAllResponseHeaders()))},_.onerror=function(I){v(ut("error",I.status,f(I.response)||I.statusText,I.getAllResponseHeaders()))},_.ontimeout=Ur(v),_}},$o=function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return s+Math.random()*(a-s)},ma=function(s){var a={complete:!1,perceivedProgress:0,perceivedPerformanceUpdater:null,progress:null,timestamp:null,perceivedDuration:0,duration:0,request:null,response:null},f=function(){!a.request||(a.perceivedPerformanceUpdater.clear(),a.request.abort&&a.request.abort(),a.complete=!0)},_=Object.assign({},Ke(),{process:function(T,C){var S=function(){0===a.duration||null===a.progress||_.fire("progress",_.getProgress())},N=function(){a.complete=!0,_.fire("load-perceived",a.response.body)};_.fire("start"),a.timestamp=Date.now(),a.perceivedPerformanceUpdater=function(s){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:25,g=arguments.length>4&&void 0!==arguments[4]?arguments[4]:250,y=null,v=Date.now();return function I(){var T=Date.now()-v,C=$o(f,g);T+C>a&&(C=T+C-a);var S=T/a;S>=1||document.hidden?s(1):(s(S),y=setTimeout(I,C))}(),{clear:function(){clearTimeout(y)}}}(function(k){a.perceivedProgress=k,a.perceivedDuration=Date.now()-a.timestamp,S(),a.response&&1===a.perceivedProgress&&!a.complete&&N()},$o(750,1500)),a.request=s(T,C,function(k){a.response=wt(k)?k:{type:"load",code:200,body:""+k,headers:{}},a.duration=Date.now()-a.timestamp,a.progress=1,_.fire("load",a.response.body),1===a.perceivedProgress&&N()},function(k){a.perceivedPerformanceUpdater.clear(),_.fire("error",wt(k)?k:{type:"error",code:0,body:""+k})},function(k,H,P){a.duration=Date.now()-a.timestamp,a.progress=k?H/P:null,S()},function(){a.perceivedPerformanceUpdater.clear(),_.fire("abort",a.response?a.response.body:null)},function(k){_.fire("transfer",k)})},abort:f,getProgress:function(){return a.progress?Math.min(a.progress,a.perceivedProgress):null},getDuration:function(){return Math.min(a.duration,a.perceivedDuration)},reset:function(){f(),a.complete=!1,a.perceivedProgress=0,a.progress=0,a.timestamp=null,a.perceivedDuration=0,a.duration=0,a.request=null,a.response=null}});return _},Hd=function(s){return s.substr(0,s.lastIndexOf("."))||s},it=function(s){var a=[s.name,s.size,s.type];return s instanceof Blob||el(s)?a[0]=s.name||Ld():el(s)?(a[1]=s.length,a[2]=ha(s)):Lt(s)&&(a[0]=jo(s),a[1]=0,a[2]="application/octet-stream"),{name:a[0],size:a[1],type:a[2]}},Gr=function(s){return!!(s instanceof File||s instanceof Blob&&s.name)},Ud=function h(s){if(!wt(s))return s;var a=Ao(s)?[]:{};for(var c in s)if(s.hasOwnProperty(c)){var f=s[c];a[c]=f&&wt(f)?h(f):f}return a},$d=function(s,a){var c=function(s,a){return Ln(a)?0:Lt(a)?s.findIndex(function(c){return c.id===a}):-1}(s,a);if(!(c<0))return s[c]||null},Yi=function(s,a,c,f,g,y){var v=fr(null,s,{method:"GET",responseType:"blob"});return v.onload=function(_){var I=_.getAllResponseHeaders(),T=Uo(I).name||jo(s);a(ut("load",_.status,zi(_.response,T),I))},v.onerror=function(_){c(ut("error",_.status,_.statusText,_.getAllResponseHeaders()))},v.onheaders=function(_){y(ut("headers",_.status,null,_.getAllResponseHeaders()))},v.ontimeout=Ur(c),v.onprogress=f,v.onabort=g,v},Qt=function(s){return 0===s.indexOf("//")&&(s=location.protocol+s),s.toLowerCase().replace("blob:","").replace(/([a-z])?:\/\//,"$1").split("/")[0]},di=function(s){return function(){return Fr(s)?s.apply(void 0,arguments):s}},kt=function(s,a){clearTimeout(a.listUpdateTimeout),a.listUpdateTimeout=setTimeout(function(){s("DID_UPDATE_ITEMS",{items:at(a.items)})},0)},ya=function(s){for(var a=arguments.length,c=new Array(a>1?a-1:0),f=1;f<a;f++)c[f-1]=arguments[f];return new Promise(function(g){if(!s)return g(!0);var y=s.apply(void 0,c);return null==y?g(!0):"boolean"==typeof y?g(y):void("function"==typeof y.then&&y.then(g))})},Qi=function(s,a){s.items.sort(function(c,f){return a(Be(c),Be(f))})},cn=function(s,a){return function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},f=c.query,g=c.success,y=void 0===g?function(){}:g,v=c.failure,_=void 0===v?function(){}:v,I=Ku(c,["query","success","failure"]),T=jr(s.items,f);T?a(T,y,_,I||{}):_({error:ut("error",0,"Item not found"),file:null})}},hr=function(s,a,c){return{ABORT_ALL:function(){at(c.items).forEach(function(g){g.freeze(),g.abortLoad(),g.abortProcessing()})},DID_SET_FILES:function(g){var y=g.value,_=(void 0===y?[]:y).map(function(T){return{source:T.source?T.source:T,options:T.options}}),I=at(c.items);I.forEach(function(T){_.find(function(C){return C.source===T.source||C.source===T.file})||s("REMOVE_ITEM",{query:T,remove:!1})}),I=at(c.items),_.forEach(function(T,C){I.find(function(S){return S.source===T.source||S.file===T.source})||s("ADD_ITEM",Object.assign({},T,{interactionMethod:mn_NONE,index:C}))})},DID_UPDATE_ITEM_METADATA:function(g){var y=g.id;clearTimeout(c.itemUpdateTimeout),c.itemUpdateTimeout=setTimeout(function(){var S,v=$d(c.items,y);if(a("IS_ASYNC")){var _=function(){setTimeout(function(){s("REQUEST_ITEM_PROCESSING",{query:y})},32)};return v.status===K.PROCESSING_COMPLETE?(S=c.options.instantUpload,void v.revert(Wi(c.options.server.url,c.options.server.revert),a("GET_FORCE_REVERT")).then(S?_:function(){}).catch(function(){})):v.status===K.PROCESSING?function(S){v.abortProcessing().then(S?_:function(){})}(c.options.instantUpload):void(c.options.instantUpload&&_())}Jt("SHOULD_PREPARE_OUTPUT",!1,{item:v,query:a}).then(function(C){!C||s("REQUEST_PREPARE_OUTPUT",{query:y,item:v,success:function(N){s("DID_PREPARE_OUTPUT",{id:y,file:N})}},!0)})},0)},MOVE_ITEM:function(g){var v=g.index,_=jr(c.items,g.query);if(_){var I=c.items.indexOf(_);I!==(v=Fd(v,0,c.items.length-1))&&c.items.splice(v,0,c.items.splice(I,1)[0])}},SORT:function(g){Qi(c,g.compare),s("DID_SORT_ITEMS",{items:a("GET_ACTIVE_ITEMS")})},ADD_ITEMS:function(g){var y=g.items,v=g.index,_=g.interactionMethod,I=g.success,T=void 0===I?function(){}:I,C=g.failure,S=void 0===C?function(){}:C,N=v;if(-1===v||void 0===v){var k=a("GET_ITEM_INSERT_LOCATION"),H=a("GET_TOTAL_ITEMS");N="before"===k?0:H}var P=a("GET_IGNORED_FILES"),ne=y.filter(function(Re){return Gr(Re)?!P.includes(Re.name.toLowerCase()):!Ln(Re)}).map(function(j){return new Promise(function(Re,ae){s("ADD_ITEM",{interactionMethod:_,source:j.source||j,success:Re,failure:ae,index:N++,options:j.options||{}})})});Promise.all(ne).then(T).catch(S)},ADD_ITEM:function(g){var y=g.source,v=g.index,_=void 0===v?-1:v,I=g.interactionMethod,T=g.success,C=void 0===T?function(){}:T,S=g.failure,N=void 0===S?function(){}:S,k=g.options,H=void 0===k?{}:k;if(Ln(y))N({error:ut("error",0,"No source"),file:null});else if(!Gr(y)||!c.options.ignoredFiles.includes(y.name.toLowerCase())){if(!function(s){var a=at(s.items).length;if(!s.options.allowMultiple)return 0===a;var c=s.options.maxFiles;return null===c||a<c}(c)){if(c.options.allowMultiple||!c.options.allowMultiple&&!c.options.allowReplace){var P=ut("warning",0,"Max files");return s("DID_THROW_MAX_FILES",{source:y,error:P}),void N({error:P,file:null})}var B=at(c.items)[0];if(B.status===K.PROCESSING_COMPLETE||B.status===K.PROCESSING_REVERT_ERROR){var $=a("GET_FORCE_REVERT");if(B.revert(Wi(c.options.server.url,c.options.server.revert),$).then(function(){!$||s("ADD_ITEM",{source:y,index:_,interactionMethod:I,success:C,failure:N,options:H})}).catch(function(){}),$)return}s("REMOVE_ITEM",{query:B.id})}var ne="local"===H.type?yt.LOCAL:"limbo"===H.type?yt.LIMBO:yt.INPUT,j=function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,f=Y(),g={archived:!1,frozen:!1,released:!1,source:null,file:c,serverFileReference:a,transferId:null,processingAborted:!1,status:a?K.PROCESSING_COMPLETE:K.INIT,activeLoader:null,activeProcessor:null},y=null,v={},_=function(te){return g.status=te},I=function(te){if(!g.released&&!g.frozen){for(var re=arguments.length,z=new Array(re>1?re-1:0),ee=1;ee<re;ee++)z[ee-1]=arguments[ee];Ve.fire.apply(Ve,[te].concat(z))}},B=function q(te,re){if(g.processingAborted)g.processingAborted=!1;else if(_(K.PROCESSING),y=null,g.file instanceof Blob){te.on("load",function(oe){g.transferId=null,g.serverFileReference=oe}),te.on("transfer",function(oe){g.transferId=oe}),te.on("load-perceived",function(oe){g.activeProcessor=null,g.transferId=null,g.serverFileReference=oe,_(K.PROCESSING_COMPLETE),I("process-complete",oe)}),te.on("start",function(){I("process-start")}),te.on("error",function(oe){g.activeProcessor=null,_(K.PROCESSING_ERROR),I("process-error",oe)}),te.on("abort",function(oe){g.activeProcessor=null,g.transferId=null,g.serverFileReference=oe,_(K.IDLE),I("process-abort"),y&&y()}),te.on("progress",function(oe){I("process-progress",oe)});var ee=console.error;re(g.file,function(je){g.archived||te.process(je,Object.assign({},v))},ee),g.activeProcessor=te}else Ve.on("load",function(){q(te,re)})},Re=function(te,re,z){var ee=te.split("."),oe=ee[0],je=ee.pop(),ke=v;ee.forEach(function(se){return ke=ke[se]}),JSON.stringify(ke[je])!==JSON.stringify(re)&&(ke[je]=re,!z&&I("metadata-update",{key:oe,value:v[oe]}))},Ve=Object.assign({id:{get:function(){return f}},origin:{get:function(){return s}},serverId:{get:function(){return g.serverFileReference}},transferId:{get:function(){return g.transferId}},status:{get:function(){return g.status}},filename:{get:function(){return g.file.name}},filenameWithoutExtension:{get:function(){return Hd(g.file.name)}},fileExtension:{get:function(){return fa(g.file.name)}},fileType:{get:function(){return g.file.type}},fileSize:{get:function(){return g.file.size}},file:{get:function(){return g.file}},relativePath:{get:function(){return g.file._relativePath}},source:{get:function(){return g.source}},getMetadata:function(te){return Ud(te?v[te]:v)},setMetadata:function(te,re,z){if(wt(te)){var ee=te;return Object.keys(ee).forEach(function(oe){Re(oe,ee[oe],re)}),te}return Re(te,re,z),re},extend:function(te,re){return xe[te]=re},abortLoad:function(){g.activeLoader?g.activeLoader.abort():(_(K.INIT),I("load-abort"))},retryLoad:function(){!g.activeLoader||g.activeLoader.load()},requestProcessing:function(){g.processingAborted=!1,_(K.PROCESSING_QUEUED)},abortProcessing:function(){return new Promise(function(te){if(!g.activeProcessor)return g.processingAborted=!0,_(K.IDLE),I("process-abort"),void te();y=function(){te()},g.activeProcessor.abort()})},load:function(te,re,z){g.source=te,Ve.fireSync("init"),g.file?Ve.fireSync("load-skip"):(g.file=it(te),re.on("init",function(){I("load-init")}),re.on("meta",function(ee){g.file.size=ee.size,g.file.filename=ee.filename,ee.source&&(s=yt.LIMBO,g.serverFileReference=ee.source,g.status=K.PROCESSING_COMPLETE),I("load-meta")}),re.on("progress",function(ee){_(K.LOADING),I("load-progress",ee)}),re.on("error",function(ee){_(K.LOAD_ERROR),I("load-request-error",ee)}),re.on("abort",function(){_(K.INIT),I("load-abort")}),re.on("load",function(ee){g.activeLoader=null;var oe=function(se){g.file=Gr(se)?se:g.file,_(s===yt.LIMBO&&g.serverFileReference?K.PROCESSING_COMPLETE:K.IDLE),I("load")};g.serverFileReference?oe(ee):z(ee,oe,function(se){g.file=ee,I("load-meta"),_(K.LOAD_ERROR),I("load-file-error",se)})}),re.setSource(te),g.activeLoader=re,re.load())},process:B,revert:function(te,re){return new Promise(function(z,ee){null!==g.serverFileReference?(te(g.serverFileReference,function(){g.serverFileReference=null,z()},function(oe){re?(_(K.PROCESSING_REVERT_ERROR),I("process-revert-error"),ee(oe)):z()}),_(K.IDLE),I("process-revert")):z()})}},Ke(),{freeze:function(){return g.frozen=!0},release:function(){return g.released=!0},released:{get:function(){return g.released}},archive:function(){return g.archived=!0},archived:{get:function(){return g.archived}}}),xe=Ge(Ve);return xe}(ne,ne===yt.INPUT?null:y,H.file);Object.keys(H.metadata||{}).forEach(function(z){j.setMetadata(z,H.metadata[z])}),st("DID_CREATE_ITEM",j,{query:a,dispatch:s});var Re=a("GET_ITEM_INSERT_LOCATION");c.options.itemInsertLocationFreedom||(_="before"===Re?-1:c.items.length),function(s,a,c){Ln(a)||(void 0===c?s.push(a):function(s,a,c){s.splice(a,0,c)}(s,c=Fd(c,0,s.length),a))}(c.items,j,_),Fr(Re)&&y&&Qi(c,Re);var ae=j.id;j.on("init",function(){s("DID_INIT_ITEM",{id:ae})}),j.on("load-init",function(){s("DID_START_ITEM_LOAD",{id:ae})}),j.on("load-meta",function(){s("DID_UPDATE_ITEM_META",{id:ae})}),j.on("load-progress",function(z){s("DID_UPDATE_ITEM_LOAD_PROGRESS",{id:ae,progress:z})}),j.on("load-request-error",function(z){var ee=di(c.options.labelFileLoadError)(z);if(z.code>=400&&z.code<500)return s("DID_THROW_ITEM_INVALID",{id:ae,error:z,status:{main:ee,sub:z.code+" ("+z.body+")"}}),void N({error:z,file:Be(j)});s("DID_THROW_ITEM_LOAD_ERROR",{id:ae,error:z,status:{main:ee,sub:c.options.labelTapToRetry}})}),j.on("load-file-error",function(z){s("DID_THROW_ITEM_INVALID",{id:ae,error:z.status,status:z.status}),N({error:z.status,file:Be(j)})}),j.on("load-abort",function(){s("REMOVE_ITEM",{query:ae})}),j.on("load-skip",function(){s("COMPLETE_LOAD_ITEM",{query:ae,item:j,data:{source:y,success:C}})}),j.on("load",function(){var z=function(oe){oe?(j.on("metadata-update",function(je){s("DID_UPDATE_ITEM_METADATA",{id:ae,change:je})}),Jt("SHOULD_PREPARE_OUTPUT",!1,{item:j,query:a}).then(function(je){var ke=function(){s("COMPLETE_LOAD_ITEM",{query:ae,item:j,data:{source:y,success:C}}),kt(s,c)};je?s("REQUEST_PREPARE_OUTPUT",{query:ae,item:j,success:function(x){s("DID_PREPARE_OUTPUT",{id:ae,file:x}),ke()}},!0):ke()})):s("REMOVE_ITEM",{query:ae})};Jt("DID_LOAD_ITEM",j,{query:a,dispatch:s}).then(function(){ya(a("GET_BEFORE_ADD_FILE"),Be(j)).then(z)}).catch(function(){z(!1)})}),j.on("process-start",function(){s("DID_START_ITEM_PROCESSING",{id:ae})}),j.on("process-progress",function(z){s("DID_UPDATE_ITEM_PROCESS_PROGRESS",{id:ae,progress:z})}),j.on("process-error",function(z){s("DID_THROW_ITEM_PROCESSING_ERROR",{id:ae,error:z,status:{main:di(c.options.labelFileProcessingError)(z),sub:c.options.labelTapToRetry}})}),j.on("process-revert-error",function(z){s("DID_THROW_ITEM_PROCESSING_REVERT_ERROR",{id:ae,error:z,status:{main:di(c.options.labelFileProcessingRevertError)(z),sub:c.options.labelTapToRetry}})}),j.on("process-complete",function(z){s("DID_COMPLETE_ITEM_PROCESSING",{id:ae,error:null,serverFileReference:z}),s("DID_DEFINE_VALUE",{id:ae,value:z})}),j.on("process-abort",function(){s("DID_ABORT_ITEM_PROCESSING",{id:ae})}),j.on("process-revert",function(){s("DID_REVERT_ITEM_PROCESSING",{id:ae}),s("DID_DEFINE_VALUE",{id:ae,value:null})}),s("DID_ADD_ITEM",{id:ae,index:_,interactionMethod:I}),kt(s,c);var Ve=c.options.server||{},xe=Ve.url,q=Ve.load,te=Ve.restore,re=Ve.fetch;j.load(y,kd(ne===yt.INPUT?Lt(y)&&function(s){return(s.indexOf(":")>-1||s.indexOf("//")>-1)&&Qt(location.href)!==Qt(s)}(y)&&re?Wt(xe,re):Yi:Wt(xe,ne===yt.LIMBO?te:q)),function(z,ee,oe){Jt("LOAD_FILE",z,{query:a}).then(ee).catch(oe)})}},REQUEST_PREPARE_OUTPUT:function(g){var y=g.item,v=g.success,_=g.failure,I=void 0===_?function(){}:_,T={error:ut("error",0,"Item not found"),file:null};if(y.archived)return I(T);Jt("PREPARE_OUTPUT",y.file,{query:a,item:y}).then(function(C){Jt("COMPLETE_PREPARE_OUTPUT",C,{query:a,item:y}).then(function(S){if(y.archived)return I(T);v(S)})})},COMPLETE_LOAD_ITEM:function(g){var y=g.item,v=g.data,_=v.success,I=v.source,T=a("GET_ITEM_INSERT_LOCATION");if(Fr(T)&&I&&Qi(c,T),s("DID_LOAD_ITEM",{id:y.id,error:null,serverFileReference:y.origin===yt.INPUT?null:I}),_(Be(y)),y.origin!==yt.LOCAL)return y.origin===yt.LIMBO?(s("DID_COMPLETE_ITEM_PROCESSING",{id:y.id,error:null,serverFileReference:I}),void s("DID_DEFINE_VALUE",{id:y.id,value:I})):void(a("IS_ASYNC")&&c.options.instantUpload&&s("REQUEST_ITEM_PROCESSING",{query:y.id}));s("DID_LOAD_LOCAL_ITEM",{id:y.id})},RETRY_ITEM_LOAD:cn(c,function(f){f.retryLoad()}),REQUEST_ITEM_PREPARE:cn(c,function(f,g,y){s("REQUEST_PREPARE_OUTPUT",{query:f.id,item:f,success:function(_){s("DID_PREPARE_OUTPUT",{id:f.id,file:_}),g({file:f,output:_})},failure:y},!0)}),REQUEST_ITEM_PROCESSING:cn(c,function(f,g,y){if(f.status===K.IDLE||f.status===K.PROCESSING_ERROR)f.status!==K.PROCESSING_QUEUED&&(f.requestProcessing(),s("DID_REQUEST_ITEM_PROCESSING",{id:f.id}),s("PROCESS_ITEM",{query:f,success:g,failure:y},!0));else{var _=function(){return s("REQUEST_ITEM_PROCESSING",{query:f,success:g,failure:y})},I=function(){return document.hidden?_():setTimeout(_,32)};f.status===K.PROCESSING_COMPLETE||f.status===K.PROCESSING_REVERT_ERROR?f.revert(Wi(c.options.server.url,c.options.server.revert),a("GET_FORCE_REVERT")).then(I).catch(function(){}):f.status===K.PROCESSING&&f.abortProcessing().then(I)}}),PROCESS_ITEM:cn(c,function(f,g,y){var v=a("GET_MAX_PARALLEL_UPLOADS");if(a("GET_ITEMS_BY_STATUS",K.PROCESSING).length!==v){if(f.status!==K.PROCESSING){var I=function C(){var S=c.processingQueue.shift();if(S){var N=S.id,k=S.success,H=S.failure,P=jr(c.items,N);if(!P||P.archived)return void C();s("PROCESS_ITEM",{query:N,success:k,failure:H},!0)}};f.onOnce("process-complete",function(){g(Be(f)),I(),a("GET_ITEMS_BY_STATUS",K.PROCESSING_COMPLETE).length===c.items.length&&s("DID_COMPLETE_ITEM_PROCESSING_ALL")}),f.onOnce("process-error",function(C){y({error:C,file:Be(f)}),I()});var T=c.options;f.process(ma(function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",a=arguments.length>1?arguments[1]:void 0,c=arguments.length>2?arguments[2]:void 0,f=arguments.length>3?arguments[3]:void 0;return"function"==typeof a?function(){for(var g=arguments.length,y=new Array(g),v=0;v<g;v++)y[v]=arguments[v];return a.apply(void 0,[c].concat(y,[f]))}:a&&Lt(a.url)?ga(s,a,c,f):null}(T.server.url,T.server.process,T.name,{chunkTransferId:f.transferId,chunkServer:T.server.patch,chunkUploads:T.chunkUploads,chunkForce:T.chunkForce,chunkSize:T.chunkSize,chunkRetryDelays:T.chunkRetryDelays})),function(C,S,N){Jt("PREPARE_OUTPUT",C,{query:a,item:f}).then(function(k){s("DID_PREPARE_OUTPUT",{id:f.id,file:k}),S(k)}).catch(N)})}}else c.processingQueue.push({id:f.id,success:g,failure:y})}),RETRY_ITEM_PROCESSING:cn(c,function(f){s("REQUEST_ITEM_PROCESSING",{query:f})}),REQUEST_REMOVE_ITEM:cn(c,function(f){ya(a("GET_BEFORE_REMOVE_FILE"),Be(f)).then(function(g){!g||s("REMOVE_ITEM",{query:f})})}),RELEASE_ITEM:cn(c,function(f){f.release()}),REMOVE_ITEM:cn(c,function(f,g,y,v){var _=function(){var C=f.id;$d(c.items,C).archive(),s("DID_REMOVE_ITEM",{error:null,id:C,item:f}),kt(s,c),g(Be(f))},I=c.options.server;f.origin===yt.LOCAL&&I&&Fr(I.remove)&&!1!==v.remove?(s("DID_START_ITEM_REMOVE",{id:f.id}),I.remove(f.source,function(){return _()},function(T){s("DID_THROW_ITEM_REMOVE_ERROR",{id:f.id,error:ut("error",0,T,null),status:{main:di(c.options.labelFileRemoveError)(T),sub:c.options.labelTapToRetry}})})):(v.revert&&f.origin!==yt.LOCAL&&null!==f.serverId&&f.revert(Wi(c.options.server.url,c.options.server.revert),a("GET_FORCE_REVERT")),_())}),ABORT_ITEM_LOAD:cn(c,function(f){f.abortLoad()}),ABORT_ITEM_PROCESSING:cn(c,function(f){f.serverId?s("REVERT_ITEM_PROCESSING",{id:f.id}):f.abortProcessing().then(function(){c.options.instantUpload&&s("REMOVE_ITEM",{query:f.id})})}),REQUEST_REVERT_ITEM_PROCESSING:cn(c,function(f){if(c.options.instantUpload){var g=function(I){!I||s("REVERT_ITEM_PROCESSING",{query:f})},y=a("GET_BEFORE_REMOVE_FILE");if(!y)return g(!0);var v=y(Be(f));return null==v?g(!0):"boolean"==typeof v?g(v):void("function"==typeof v.then&&v.then(g))}s("REVERT_ITEM_PROCESSING",{query:f})}),REVERT_ITEM_PROCESSING:cn(c,function(f){f.revert(Wi(c.options.server.url,c.options.server.revert),a("GET_FORCE_REVERT")).then(function(){(c.options.instantUpload||function(s){return!Gr(s.file)}(f))&&s("REMOVE_ITEM",{query:f.id})}).catch(function(){})}),SET_OPTIONS:function(g){Ee(g.options,function(v,_){s("SET_"+Ro(v,"_").toUpperCase(),{value:_})})}}},In=function(s){return document.createElement(s)},Z=function(s,a){var c=s.childNodes[0];c?a!==c.nodeValue&&(c.nodeValue=a):(c=document.createTextNode(a),s.appendChild(c))},va=function(s,a,c,f){var g=(f%360-90)*Math.PI/180;return{x:s+c*Math.cos(g),y:a+c*Math.sin(g)}},qd=function(s,a,c,f,g){var y=1;return g>f&&g-f<=.5&&(y=0),f>g&&f-g>=.5&&(y=0),function(s,a,c,f,g,y){var v=va(s,a,c,g),_=va(s,a,c,f);return["M",v.x,v.y,"A",c,c,0,y,0,_.x,_.y].join(" ")}(s,a,c,360*Math.min(.9999,f),360*Math.min(.9999,g),y)},Ea=ht({tag:"div",name:"progress-indicator",ignoreRectUpdate:!0,ignoreRect:!0,create:function(s){var a=s.root,c=s.props;c.spin=!1,c.progress=0,c.opacity=0;var f=rt("svg");a.ref.path=rt("path",{"stroke-width":2,"stroke-linecap":"round"}),f.appendChild(a.ref.path),a.ref.svg=f,a.appendChild(f)},write:function(s){var a=s.root,c=s.props;if(0!==c.opacity){c.align&&(a.element.dataset.align=c.align);var f=parseInt(Ie(a.ref.path,"stroke-width"),10),g=.5*a.rect.element.width,y=0,v=0;c.spin?(y=0,v=.5):(y=0,v=c.progress);var _=qd(g,g,g-f,y,v);Ie(a.ref.path,"d",_),Ie(a.ref.path,"stroke-opacity",c.spin||c.progress>0?1:0)}},mixins:{apis:["progress","spin","align"],styles:["opacity"],animations:{opacity:{type:"tween",duration:500},progress:{type:"spring",stiffness:.95,damping:.65,mass:10}}}}),F=ht({tag:"button",attributes:{type:"button"},ignoreRect:!0,ignoreRectUpdate:!0,name:"file-action-button",mixins:{apis:["label"],styles:["translateX","translateY","scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",translateX:"spring",translateY:"spring",opacity:{type:"tween",duration:250}},listeners:!0},create:function(s){var c=s.props;s.root.element.innerHTML=(c.icon||"")+"<span>"+c.label+"</span>",c.isDisabled=!1},write:function(s){var a=s.root,c=s.props,f=c.isDisabled,g=a.query("GET_DISABLED")||0===c.opacity;g&&!f?(c.isDisabled=!0,Ie(a.element,"disabled","disabled")):!g&&f&&(c.isDisabled=!1,a.element.removeAttribute("disabled"))}}),Me=function(s){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".";return(s=Math.round(Math.abs(s)))<1e3?s+" bytes":s<gt?Math.floor(s/Zd)+" KB":s<_a?hi(s/gt,1,a)+" MB":hi(s/_a,2,a)+" GB"},Zd=1e3,gt=1e6,_a=1e9,hi=function(s,a,c){return s.toFixed(a).split(".").filter(function(f){return"0"!==f}).join(c)},qo=function(s){var a=s.root,c=s.props;Z(a.ref.fileSize,Me(a.query("GET_ITEM_SIZE",c.id))),Z(a.ref.fileName,a.query("GET_ITEM_NAME",c.id))},Wo=function(s){var a=s.root;oi(a.query("GET_ITEM_SIZE",s.props.id))||Z(a.ref.fileSize,a.query("GET_LABEL_FILE_SIZE_NOT_AVAILABLE"))},Rg=ht({name:"file-info",ignoreRect:!0,ignoreRectUpdate:!0,write:Ft({DID_LOAD_ITEM:qo,DID_UPDATE_ITEM_META:qo,DID_THROW_ITEM_LOAD_ERROR:Wo,DID_THROW_ITEM_INVALID:Wo}),didCreateView:function(s){st("CREATE_VIEW",Object.assign({},s,{view:s}))},create:function(s){var a=s.root,c=s.props,f=In("span");f.className="filepond--file-info-main",Ie(f,"aria-hidden","true"),a.appendChild(f),a.ref.fileName=f;var g=In("span");g.className="filepond--file-info-sub",a.appendChild(g),a.ref.fileSize=g,Z(g,a.query("GET_LABEL_FILE_WAITING_FOR_SIZE")),Z(f,a.query("GET_ITEM_NAME",c.id))},mixins:{styles:["translateX","translateY"],animations:{translateX:"spring",translateY:"spring"}}}),rl=function(s){return Math.round(100*s)},Ki=function(s){var a=s.root,c=s.action,f=null===c.progress?a.query("GET_LABEL_FILE_LOADING"):a.query("GET_LABEL_FILE_LOADING")+" "+rl(c.progress)+"%";Z(a.ref.main,f),Z(a.ref.sub,a.query("GET_LABEL_TAP_TO_CANCEL"))},Vn=function(s){var a=s.root;Z(a.ref.main,""),Z(a.ref.sub,"")},Zi=function(s){var a=s.root,c=s.action;Z(a.ref.main,c.status.main),Z(a.ref.sub,c.status.sub)},ol=ht({name:"file-status",ignoreRect:!0,ignoreRectUpdate:!0,write:Ft({DID_LOAD_ITEM:Vn,DID_REVERT_ITEM_PROCESSING:Vn,DID_REQUEST_ITEM_PROCESSING:function(s){var a=s.root;Z(a.ref.main,a.query("GET_LABEL_FILE_PROCESSING")),Z(a.ref.sub,a.query("GET_LABEL_TAP_TO_CANCEL"))},DID_ABORT_ITEM_PROCESSING:function(s){var a=s.root;Z(a.ref.main,a.query("GET_LABEL_FILE_PROCESSING_ABORTED")),Z(a.ref.sub,a.query("GET_LABEL_TAP_TO_RETRY"))},DID_COMPLETE_ITEM_PROCESSING:function(s){var a=s.root;Z(a.ref.main,a.query("GET_LABEL_FILE_PROCESSING_COMPLETE")),Z(a.ref.sub,a.query("GET_LABEL_TAP_TO_UNDO"))},DID_UPDATE_ITEM_PROCESS_PROGRESS:function(s){var a=s.root,c=s.action,f=null===c.progress?a.query("GET_LABEL_FILE_PROCESSING"):a.query("GET_LABEL_FILE_PROCESSING")+" "+rl(c.progress)+"%";Z(a.ref.main,f),Z(a.ref.sub,a.query("GET_LABEL_TAP_TO_CANCEL"))},DID_UPDATE_ITEM_LOAD_PROGRESS:Ki,DID_THROW_ITEM_LOAD_ERROR:Zi,DID_THROW_ITEM_INVALID:Zi,DID_THROW_ITEM_PROCESSING_ERROR:Zi,DID_THROW_ITEM_PROCESSING_REVERT_ERROR:Zi,DID_THROW_ITEM_REMOVE_ERROR:Zi}),didCreateView:function(s){st("CREATE_VIEW",Object.assign({},s,{view:s}))},create:function(s){var a=s.root,c=In("span");c.className="filepond--file-status-main",a.appendChild(c),a.ref.main=c;var f=In("span");f.className="filepond--file-status-sub",a.appendChild(f),a.ref.sub=f,Ki({root:a,action:{progress:null}})},mixins:{styles:["translateX","translateY","opacity"],animations:{opacity:{type:"tween",duration:250},translateX:"spring",translateY:"spring"}}}),gi={AbortItemLoad:{label:"GET_LABEL_BUTTON_ABORT_ITEM_LOAD",action:"ABORT_ITEM_LOAD",className:"filepond--action-abort-item-load",align:"LOAD_INDICATOR_POSITION"},RetryItemLoad:{label:"GET_LABEL_BUTTON_RETRY_ITEM_LOAD",action:"RETRY_ITEM_LOAD",icon:"GET_ICON_RETRY",className:"filepond--action-retry-item-load",align:"BUTTON_PROCESS_ITEM_POSITION"},RemoveItem:{label:"GET_LABEL_BUTTON_REMOVE_ITEM",action:"REQUEST_REMOVE_ITEM",icon:"GET_ICON_REMOVE",className:"filepond--action-remove-item",align:"BUTTON_REMOVE_ITEM_POSITION"},ProcessItem:{label:"GET_LABEL_BUTTON_PROCESS_ITEM",action:"REQUEST_ITEM_PROCESSING",icon:"GET_ICON_PROCESS",className:"filepond--action-process-item",align:"BUTTON_PROCESS_ITEM_POSITION"},AbortItemProcessing:{label:"GET_LABEL_BUTTON_ABORT_ITEM_PROCESSING",action:"ABORT_ITEM_PROCESSING",className:"filepond--action-abort-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"},RetryItemProcessing:{label:"GET_LABEL_BUTTON_RETRY_ITEM_PROCESSING",action:"RETRY_ITEM_PROCESSING",icon:"GET_ICON_RETRY",className:"filepond--action-retry-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"},RevertItemProcessing:{label:"GET_LABEL_BUTTON_UNDO_ITEM_PROCESSING",action:"REQUEST_REVERT_ITEM_PROCESSING",icon:"GET_ICON_UNDO",className:"filepond--action-revert-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"}},Da=[];Ee(gi,function(h){Da.push(h)});var h,Vt=function(s){var a=s.ref.buttonRemoveItem.rect.element;return a.hidden?null:a.width+a.left},Ia=function(s){return s.ref.buttonAbortItemLoad.rect.element.width},Xi=function(s){return Math.floor(s.ref.buttonRemoveItem.rect.element.height/4)},Ta=function(s){return Math.floor(s.ref.buttonRemoveItem.rect.element.left/2)},Ji=function(s){return s.query("GET_STYLE_BUTTON_REMOVE_ITEM_POSITION")},al={buttonAbortItemLoad:{opacity:0},buttonRetryItemLoad:{opacity:0},buttonRemoveItem:{opacity:0},buttonProcessItem:{opacity:0},buttonAbortItemProcessing:{opacity:0},buttonRetryItemProcessing:{opacity:0},buttonRevertItemProcessing:{opacity:0},loadProgressIndicator:{opacity:0,align:function(s){return s.query("GET_STYLE_LOAD_INDICATOR_POSITION")}},processProgressIndicator:{opacity:0,align:function(s){return s.query("GET_STYLE_PROGRESS_INDICATOR_POSITION")}},processingCompleteIndicator:{opacity:0,scaleX:.75,scaleY:.75},info:{translateX:0,translateY:0,opacity:0},status:{translateX:0,translateY:0,opacity:0}},wa={buttonRemoveItem:{opacity:1},buttonProcessItem:{opacity:1},info:{translateX:Vt},status:{translateX:Vt}},Yo={buttonAbortItemProcessing:{opacity:1},processProgressIndicator:{opacity:1},status:{opacity:1}},$r={DID_THROW_ITEM_INVALID:{buttonRemoveItem:{opacity:1},info:{translateX:Vt},status:{translateX:Vt,opacity:1}},DID_START_ITEM_LOAD:{buttonAbortItemLoad:{opacity:1},loadProgressIndicator:{opacity:1},status:{opacity:1}},DID_THROW_ITEM_LOAD_ERROR:{buttonRetryItemLoad:{opacity:1},buttonRemoveItem:{opacity:1},info:{translateX:Vt},status:{opacity:1}},DID_START_ITEM_REMOVE:{processProgressIndicator:{opacity:1,align:Ji},info:{translateX:Vt},status:{opacity:0}},DID_THROW_ITEM_REMOVE_ERROR:{processProgressIndicator:{opacity:0,align:Ji},buttonRemoveItem:{opacity:1},info:{translateX:Vt},status:{opacity:1,translateX:Vt}},DID_LOAD_ITEM:wa,DID_LOAD_LOCAL_ITEM:{buttonRemoveItem:{opacity:1},info:{translateX:Vt},status:{translateX:Vt}},DID_START_ITEM_PROCESSING:Yo,DID_REQUEST_ITEM_PROCESSING:Yo,DID_UPDATE_ITEM_PROCESS_PROGRESS:Yo,DID_COMPLETE_ITEM_PROCESSING:{buttonRevertItemProcessing:{opacity:1},info:{opacity:1},status:{opacity:1}},DID_THROW_ITEM_PROCESSING_ERROR:{buttonRemoveItem:{opacity:1},buttonRetryItemProcessing:{opacity:1},status:{opacity:1},info:{translateX:Vt}},DID_THROW_ITEM_PROCESSING_REVERT_ERROR:{buttonRevertItemProcessing:{opacity:1},status:{opacity:1},info:{opacity:1}},DID_ABORT_ITEM_PROCESSING:{buttonRemoveItem:{opacity:1},buttonProcessItem:{opacity:1},info:{translateX:Vt},status:{opacity:1}},DID_REVERT_ITEM_PROCESSING:wa},Qo=ht({create:function(s){var a=s.root;a.element.innerHTML=a.query("GET_ICON_DONE")},name:"processing-complete-indicator",ignoreRect:!0,mixins:{styles:["scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",opacity:{type:"tween",duration:250}}}}),jt=Ft({DID_SET_LABEL_BUTTON_ABORT_ITEM_PROCESSING:function(s){s.root.ref.buttonAbortItemProcessing.label=s.action.value},DID_SET_LABEL_BUTTON_ABORT_ITEM_LOAD:function(s){s.root.ref.buttonAbortItemLoad.label=s.action.value},DID_SET_LABEL_BUTTON_ABORT_ITEM_REMOVAL:function(s){s.root.ref.buttonAbortItemRemoval.label=s.action.value},DID_REQUEST_ITEM_PROCESSING:function(s){var a=s.root;a.ref.processProgressIndicator.spin=!0,a.ref.processProgressIndicator.progress=0},DID_START_ITEM_LOAD:function(s){var a=s.root;a.ref.loadProgressIndicator.spin=!0,a.ref.loadProgressIndicator.progress=0},DID_START_ITEM_REMOVE:function(s){var a=s.root;a.ref.processProgressIndicator.spin=!0,a.ref.processProgressIndicator.progress=0},DID_UPDATE_ITEM_LOAD_PROGRESS:function(s){var a=s.root,c=s.action;a.ref.loadProgressIndicator.spin=!1,a.ref.loadProgressIndicator.progress=c.progress},DID_UPDATE_ITEM_PROCESS_PROGRESS:function(s){var a=s.root,c=s.action;a.ref.processProgressIndicator.spin=!1,a.ref.processProgressIndicator.progress=c.progress}}),pr=ht({create:function(s){var C,a=s.root,f=s.props.id,g=a.query("GET_ALLOW_REVERT"),y=a.query("GET_ALLOW_REMOVE"),v=a.query("GET_ALLOW_PROCESS"),_=a.query("GET_INSTANT_UPLOAD"),I=a.query("IS_ASYNC"),T=a.query("GET_STYLE_BUTTON_REMOVE_ITEM_ALIGN");I?v&&!g?C=function($){return!/RevertItemProcessing/.test($)}:!v&&g?C=function($){return!/ProcessItem|RetryItemProcessing|AbortItemProcessing/.test($)}:!v&&!g&&(C=function($){return!/Process/.test($)}):C=function($){return!/Process/.test($)};var S=C?Da.filter(C):Da.concat();if(_&&g&&(gi.RevertItemProcessing.label="GET_LABEL_BUTTON_REMOVE_ITEM",gi.RevertItemProcessing.icon="GET_ICON_REMOVE"),I&&!g){var N=$r.DID_COMPLETE_ITEM_PROCESSING;N.info.translateX=Ta,N.info.translateY=Xi,N.status.translateY=Xi,N.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1}}if(I&&!v&&(["DID_START_ITEM_PROCESSING","DID_REQUEST_ITEM_PROCESSING","DID_UPDATE_ITEM_PROCESS_PROGRESS","DID_THROW_ITEM_PROCESSING_ERROR"].forEach(function(B){$r[B].status.translateY=Xi}),$r.DID_THROW_ITEM_PROCESSING_ERROR.status.translateX=Ia),T&&g){gi.RevertItemProcessing.align="BUTTON_REMOVE_ITEM_POSITION";var k=$r.DID_COMPLETE_ITEM_PROCESSING;k.info.translateX=Vt,k.status.translateY=Xi,k.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1}}y||(gi.RemoveItem.disabled=!0),Ee(gi,function(B,$){var ne=a.createChildView(F,{label:a.query($.label),icon:a.query($.icon),opacity:0});S.includes(B)&&a.appendChildView(ne),$.disabled&&(ne.element.setAttribute("disabled","disabled"),ne.element.setAttribute("hidden","hidden")),ne.element.dataset.align=a.query("GET_STYLE_"+$.align),ne.element.classList.add($.className),ne.on("click",function(j){j.stopPropagation(),!$.disabled&&a.dispatch($.action,{query:f})}),a.ref["button"+B]=ne}),a.ref.processingCompleteIndicator=a.appendChildView(a.createChildView(Qo)),a.ref.processingCompleteIndicator.element.dataset.align=a.query("GET_STYLE_BUTTON_PROCESS_ITEM_POSITION"),a.ref.info=a.appendChildView(a.createChildView(Rg,{id:f})),a.ref.status=a.appendChildView(a.createChildView(ol,{id:f}));var H=a.appendChildView(a.createChildView(Ea,{opacity:0,align:a.query("GET_STYLE_LOAD_INDICATOR_POSITION")}));H.element.classList.add("filepond--load-indicator"),a.ref.loadProgressIndicator=H;var P=a.appendChildView(a.createChildView(Ea,{opacity:0,align:a.query("GET_STYLE_PROGRESS_INDICATOR_POSITION")}));P.element.classList.add("filepond--process-indicator"),a.ref.processProgressIndicator=P,a.ref.activeStyles=[]},write:function(s){var a=s.root,c=s.actions;jt({root:a,actions:c,props:s.props});var g=c.concat().filter(function(v){return/^DID_/.test(v.type)}).reverse().find(function(v){return $r[v.type]});if(g){a.ref.activeStyles=[];var y=$r[g.type];Ee(al,function(v,_){var I=a.ref[v];Ee(_,function(T,C){a.ref.activeStyles.push({control:I,key:T,value:y[v]&&void 0!==y[v][T]?y[v][T]:C})})})}a.ref.activeStyles.forEach(function(v){var T=v.value;v.control[v.key]="function"==typeof T?T(a):T})},didCreateView:function(s){st("CREATE_VIEW",Object.assign({},s,{view:s}))},name:"file"}),nf=ht({create:function(s){var a=s.root,c=s.props;a.ref.fileName=In("legend"),a.appendChild(a.ref.fileName),a.ref.file=a.appendChildView(a.createChildView(pr,{id:c.id})),a.ref.data=!1},ignoreRect:!0,write:Ft({DID_LOAD_ITEM:function(s){var a=s.root;Z(a.ref.fileName,a.query("GET_ITEM_NAME",s.props.id))}}),didCreateView:function(s){st("CREATE_VIEW",Object.assign({},s,{view:s}))},tag:"fieldset",name:"file-wrapper"}),ul={type:"spring",damping:.6,mass:7},of=function(s,a,c){var f=ht({name:"panel-"+a.name+" filepond--"+c,mixins:a.mixins,ignoreRectUpdate:!0}),g=s.createChildView(f,a.props);s.ref[a.name]=s.appendChildView(g)},eo=ht({name:"panel",write:function(s){var a=s.root,c=s.props;if((null===a.ref.scalable||c.scalable!==a.ref.scalable)&&(a.ref.scalable=!od(c.scalable)||c.scalable,a.element.dataset.scalable=a.ref.scalable),c.height){var f=a.ref.top.rect.element,g=a.ref.bottom.rect.element,y=Math.max(f.height+g.height,c.height);a.ref.center.translateY=f.height,a.ref.center.scaleY=(y-f.height-g.height)/100,a.ref.bottom.translateY=y-g.height}},create:function(s){var a=s.root,c=s.props;[{name:"top"},{name:"center",props:{translateY:null,scaleY:null},mixins:{animations:{scaleY:ul},styles:["translateY","scaleY"]}},{name:"bottom",props:{translateY:null},mixins:{animations:{translateY:ul},styles:["translateY"]}}].forEach(function(f){of(a,f,c.name)}),a.element.classList.add("filepond--"+c.name),a.ref.scalable=null},ignoreRect:!0,mixins:{apis:["height","scalable"]}}),to={type:"spring",stiffness:.75,damping:.45,mass:10},ba={DID_START_ITEM_LOAD:"busy",DID_UPDATE_ITEM_LOAD_PROGRESS:"loading",DID_THROW_ITEM_INVALID:"load-invalid",DID_THROW_ITEM_LOAD_ERROR:"load-error",DID_LOAD_ITEM:"idle",DID_THROW_ITEM_REMOVE_ERROR:"remove-error",DID_START_ITEM_REMOVE:"busy",DID_START_ITEM_PROCESSING:"busy processing",DID_REQUEST_ITEM_PROCESSING:"busy processing",DID_UPDATE_ITEM_PROCESS_PROGRESS:"processing",DID_COMPLETE_ITEM_PROCESSING:"processing-complete",DID_THROW_ITEM_PROCESSING_ERROR:"processing-error",DID_THROW_ITEM_PROCESSING_REVERT_ERROR:"processing-revert-error",DID_ABORT_ITEM_PROCESSING:"cancelled",DID_REVERT_ITEM_PROCESSING:"idle"},gr=Ft({DID_UPDATE_PANEL_HEIGHT:function(s){s.root.height=s.action.height}}),no=Ft({DID_GRAB_ITEM:function(s){var a=s.root;s.props.dragOrigin={x:a.translateX,y:a.translateY}},DID_DRAG_ITEM:function(s){s.root.element.dataset.dragState="drag"},DID_DROP_ITEM:function(s){var a=s.root,c=s.props;c.dragOffset=null,c.dragOrigin=null,a.element.dataset.dragState="drop"}},function(h){var s=h.root,a=h.actions,c=h.props,f=h.shouldOptimize;"drop"===s.element.dataset.dragState&&s.scaleX<=1&&(s.element.dataset.dragState="idle");var g=a.concat().filter(function(v){return/^DID_/.test(v.type)}).reverse().find(function(v){return ba[v.type]});g&&g.type!==c.currentState&&(c.currentState=g.type,s.element.dataset.filepondItemState=ba[c.currentState]||"");var y=s.query("GET_ITEM_PANEL_ASPECT_RATIO")||s.query("GET_PANEL_ASPECT_RATIO");y?f||(s.height=s.rect.element.width*y):(gr({root:s,actions:a,props:c}),!s.height&&s.ref.container.rect.element.height>0&&(s.height=s.ref.container.rect.element.height)),f&&(s.ref.panel.height=null),s.ref.panel.height=s.height}),uf=ht({create:function(s){var a=s.root,c=s.props;if(a.ref.handleClick=function(g){return a.dispatch("DID_ACTIVATE_ITEM",{id:c.id})},a.element.id="filepond--item-"+c.id,a.element.addEventListener("click",a.ref.handleClick),a.ref.container=a.appendChildView(a.createChildView(nf,{id:c.id})),a.ref.panel=a.appendChildView(a.createChildView(eo,{name:"item-panel"})),a.ref.panel.height=null,c.markedForRemoval=!1,a.query("GET_ALLOW_REORDER")){a.element.dataset.dragState="idle";a.element.addEventListener("pointerdown",function(y){if(y.isPrimary){var v=!1,_={x:y.pageX,y:y.pageY};c.dragOrigin={x:a.translateX,y:a.translateY},c.dragCenter={x:y.offsetX,y:y.offsetY};var I=function(s){var a=s.map(function(f){return f.id}),c=void 0;return{setIndex:function(g){c=g},getIndex:function(){return c},getItemIndex:function(g){return a.indexOf(g.id)}}}(a.query("GET_ACTIVE_ITEMS"));a.dispatch("DID_GRAB_ITEM",{id:c.id,dragState:I});var T=function(N){N.isPrimary&&(N.stopPropagation(),N.preventDefault(),c.dragOffset={x:N.pageX-_.x,y:N.pageY-_.y},c.dragOffset.x*c.dragOffset.x+c.dragOffset.y*c.dragOffset.y>16&&!v&&(v=!0,a.element.removeEventListener("click",a.ref.handleClick)),a.dispatch("DID_DRAG_ITEM",{id:c.id,dragState:I}))};document.addEventListener("pointermove",T),document.addEventListener("pointerup",function S(N){!N.isPrimary||(document.removeEventListener("pointermove",T),document.removeEventListener("pointerup",S),c.dragOffset={x:N.pageX-_.x,y:N.pageY-_.y},a.dispatch("DID_DROP_ITEM",{id:c.id,dragState:I}),v&&setTimeout(function(){return a.element.addEventListener("click",a.ref.handleClick)},0))})}})}},write:no,destroy:function(s){var a=s.root,c=s.props;a.element.removeEventListener("click",a.ref.handleClick),a.dispatch("RELEASE_ITEM",{query:c.id})},tag:"li",name:"item",mixins:{apis:["id","interactionMethod","markedForRemoval","spawnDate","dragCenter","dragOrigin","dragOffset"],styles:["translateX","translateY","scaleX","scaleY","opacity","height"],animations:{scaleX:"spring",scaleY:"spring",translateX:to,translateY:to,opacity:{type:"tween",duration:150}}}}),Sa=function(s,a,c){if(c){var g=a.length,y=null;if(0===g||c.top<a[0].rect.element.top)return-1;var _=a[0].rect.element,T=_.width+(_.marginLeft+_.marginRight),C=Math.round(s.rect.element.width/T);if(1===C){for(var S=0;S<g;S++){var N=a[S];if(c.top<N.rect.outer.top+.5*N.rect.element.height)return S}return g}for(var P=_.height+(_.marginTop+_.marginBottom),B=0;B<g;B++){var $=B%C,Re=Math.floor(B/C)*P;if(c.top<Re+P+_.marginBottom&&c.top>Re-_.marginTop){if(c.left<$*T+T)return B;y=B!==g-1?B:null}}return null!==y?y:g}},mr={height:0,width:0,get getHeight(){return this.height},set setHeight(h){(0===this.height||0===h)&&(this.height=h)},get getWidth(){return this.width},set setWidth(h){(0===this.width||0===h)&&(this.width=h)},setDimensions:function(s,a){(0===this.height||0===s)&&(this.height=s),(0===this.width||0===a)&&(this.width=a)}},ll=function(s,a,c){var f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,g=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;s.dragOffset?(s.translateX=null,s.translateY=null,s.translateX=s.dragOrigin.x+s.dragOffset.x,s.translateY=s.dragOrigin.y+s.dragOffset.y,s.scaleX=1.025,s.scaleY=1.025):(s.translateX=a,s.translateY=c,Date.now()>s.spawnDate&&(0===s.opacity&&Pg(s,a,c,f,g),s.scaleX=1,s.scaleY=1,s.opacity=1))},Pg=function(s,a,c,f,g){s.interactionMethod===mn_NONE?(s.translateX=null,s.translateX=a,s.translateY=null,s.translateY=c):s.interactionMethod===mn_DROP?(s.translateX=null,s.translateX=a-20*f,s.translateY=null,s.translateY=c-10*g,s.scaleX=.8,s.scaleY=.8):s.interactionMethod===mn_BROWSE?(s.translateY=null,s.translateY=c-30):s.interactionMethod===mn_API&&(s.translateX=null,s.translateX=a-30,s.translateY=null)},mi=function(s){return s.rect.element.height+.5*s.rect.element.marginBottom+.5*s.rect.element.marginTop},Xo=Ft({DID_ADD_ITEM:function(s){var a=s.root,c=s.action,f=c.id,g=c.index,y=c.interactionMethod;a.ref.addIndex=g;var v=Date.now(),_=v,I=1;if(y!==mn_NONE){I=0;var T=a.query("GET_ITEM_INSERT_INTERVAL"),C=v-a.ref.lastItemSpanwDate;_=C<T?v+(T-C):v}a.ref.lastItemSpanwDate=_,a.appendChildView(a.createChildView(uf,{spawnDate:_,id:f,opacity:I,interactionMethod:y}),g)},DID_REMOVE_ITEM:function(s){var f=s.action.id,g=s.root.childViews.find(function(y){return y.id===f});!g||(g.scaleX=.9,g.scaleY=.9,g.opacity=0,g.markedForRemoval=!0)},DID_DRAG_ITEM:function(s){var a=s.root,c=s.action,f=c.id,g=c.dragState,y=a.query("GET_ITEM",{id:f}),v=a.childViews.find(function($){return $.id===f}),_=a.childViews.length,I=g.getItemIndex(y);if(v){var T={x:v.dragOrigin.x+v.dragOffset.x+v.dragCenter.x,y:v.dragOrigin.y+v.dragOffset.y+v.dragCenter.y},C=mi(v),S=function(s){return s.rect.element.width+.5*s.rect.element.marginLeft+.5*s.rect.element.marginRight}(v),N=Math.floor(a.rect.outer.width/S);N>_&&(N=_);var k=Math.floor(_/N+1);mr.setHeight=C*k,mr.setWidth=S*N;var H={y:Math.floor(T.y/C),x:Math.floor(T.x/S),getGridIndex:function(){return T.y>mr.getHeight||T.y<0||T.x>mr.getWidth||T.x<0?I:this.y*N+this.x},getColIndex:function(){for(var ne=a.query("GET_ACTIVE_ITEMS"),j=a.childViews.filter(function(oe){return oe.rect.element.height}),Re=ne.map(function(oe){return j.find(function(je){return je.id===oe.id})}),ae=Re.findIndex(function(oe){return oe===v}),Ve=mi(v),xe=Re.length,q=xe,te=0,re=0,z=0,ee=0;ee<xe;ee++)if(te=mi(Re[ee]),T.y<(re=(z=re)+te)){if(ae>ee){if(T.y<z+Ve){q=ee;break}continue}q=ee;break}return q}},P=N>1?H.getGridIndex():H.getColIndex();a.dispatch("MOVE_ITEM",{query:v,index:P});var B=g.getIndex();if(void 0===B||B!==P){if(g.setIndex(P),void 0===B)return;a.dispatch("DID_REORDER_ITEMS",{items:a.query("GET_ACTIVE_ITEMS"),origin:I,target:P})}}}}),yi=ht({create:function(s){var a=s.root;Ie(a.element,"role","list"),a.ref.lastItemSpanwDate=Date.now()},write:function(s){var a=s.root,c=s.props,g=s.shouldOptimize;Xo({root:a,props:c,actions:s.actions});var y=c.dragCoordinates,v=a.rect.element.width,_=a.childViews.filter(function(q){return q.rect.element.height}),I=a.query("GET_ACTIVE_ITEMS").map(function(q){return _.find(function(te){return te.id===q.id})}).filter(function(q){return q}),T=y?Sa(a,I,y):null,C=a.ref.addIndex||null;a.ref.addIndex=null;var S=0,N=0,k=0;if(0!==I.length){var H=I[0].rect.element,P=H.marginTop+H.marginBottom,$=H.width+(H.marginLeft+H.marginRight),ne=H.height+P,j=Math.round(v/$);if(1===j){var Re=0,ae=0;I.forEach(function(q,te){if(T){var re=te-T;ae=-2===re?.25*-P:-1===re?.75*-P:0===re?.75*P:1===re?.25*P:0}g&&(q.translateX=null,q.translateY=null),q.markedForRemoval||ll(q,0,Re+ae),Re+=(q.rect.element.height+P)*(q.markedForRemoval?q.opacity:1)})}else{var Ve=0,xe=0;I.forEach(function(q,te){te===T&&(S=1),te===C&&(k+=1),q.markedForRemoval&&q.opacity<.5&&(N-=1);var re=te+k+S+N,z=re%j,ee=Math.floor(re/j),oe=z*$,je=ee*ne,ke=Math.sign(oe-Ve),se=Math.sign(je-xe);Ve=oe,xe=je,!q.markedForRemoval&&(g&&(q.translateX=null,q.translateY=null),ll(q,oe,je,ke,se))})}}},tag:"ul",name:"list",didWriteView:function(s){var a=s.root;a.childViews.filter(function(c){return c.markedForRemoval&&0===c.opacity&&c.resting}).forEach(function(c){c._destroy(),a.removeChildView(c)})},filterFrameActionsForChild:function(s,a){return a.filter(function(c){return!c.data||!c.data.id||s.id===c.data.id})},mixins:{apis:["dragCoordinates"]}}),Jo=Ft({DID_DRAG:function(s){var a=s.root,c=s.props,f=s.action;!a.query("GET_ITEM_INSERT_LOCATION_FREEDOM")||(c.dragCoordinates={left:f.position.scopeLeft-a.ref.list.rect.element.left,top:f.position.scopeTop-(a.rect.outer.top+a.rect.element.marginTop+a.rect.element.scrollTop)})},DID_END_DRAG:function(s){s.props.dragCoordinates=null}}),hl=ht({create:function(s){var a=s.root,c=s.props;a.ref.list=a.appendChildView(a.createChildView(yi)),c.dragCoordinates=null,c.overflowing=!1},write:function(s){var a=s.root,c=s.props;if(Jo({root:a,props:c,actions:s.actions}),a.ref.list.dragCoordinates=c.dragCoordinates,c.overflowing&&!c.overflow&&(c.overflowing=!1,a.element.dataset.state="",a.height=null),c.overflow){var g=Math.round(c.overflow);g!==a.height&&(c.overflowing=!0,a.element.dataset.state="overflow",a.height=g)}},name:"list-scroller",mixins:{apis:["overflow","dragCoordinates"],styles:["height","translateY"],animations:{translateY:"spring"}}}),dn=function(s,a,c){c?Ie(s,a,arguments.length>3&&void 0!==arguments[3]?arguments[3]:""):s.removeAttribute(a)},Ei=function(s){var a=s.root,c=s.action;!a.query("GET_ALLOW_SYNC_ACCEPT_ATTRIBUTE")||dn(a.element,"accept",!!c.value,c.value?c.value.join(","):"")},es=function(s){dn(s.root.element,"multiple",s.action.value)},ts=function(s){dn(s.root.element,"webkitdirectory",s.action.value)},_i=function(s){var a=s.root,c=a.query("GET_DISABLED"),f=a.query("GET_ALLOW_BROWSE");dn(a.element,"disabled",c||!f)},ro=function(s){var a=s.root;s.action.value?0===a.query("GET_TOTAL_ITEMS")&&dn(a.element,"required",!0):dn(a.element,"required",!1)},pl=function(s){var c=s.action;dn(s.root.element,"capture",!!c.value,!0===c.value?"":c.value)},Ra=function(s){var a=s.root,c=a.element;a.query("GET_TOTAL_ITEMS")>0?(dn(c,"required",!1),dn(c,"name",!1)):(dn(c,"name",!0,a.query("GET_NAME")),a.query("GET_CHECK_VALIDITY")&&c.setCustomValidity(""),a.query("GET_REQUIRED")&&dn(c,"required",!0))},ml=ht({tag:"input",name:"browser",ignoreRect:!0,ignoreRectUpdate:!0,attributes:{type:"file"},create:function(s){var a=s.root,c=s.props;a.element.id="filepond--browser-"+c.id,Ie(a.element,"name",a.query("GET_NAME")),Ie(a.element,"aria-controls","filepond--assistant-"+c.id),Ie(a.element,"aria-labelledby","filepond--drop-label-"+c.id),Ei({root:a,action:{value:a.query("GET_ACCEPTED_FILE_TYPES")}}),es({root:a,action:{value:a.query("GET_ALLOW_MULTIPLE")}}),ts({root:a,action:{value:a.query("GET_ALLOW_DIRECTORIES_ONLY")}}),_i({root:a}),ro({root:a,action:{value:a.query("GET_REQUIRED")}}),pl({root:a,action:{value:a.query("GET_CAPTURE_METHOD")}}),a.ref.handleChange=function(f){if(a.element.value){var g=Array.from(a.element.files).map(function(y){return y._relativePath=y.webkitRelativePath,y});setTimeout(function(){c.onload(g),function(s){if(s&&""!==s.value){try{s.value=""}catch(g){}if(s.value){var a=In("form"),c=s.parentNode,f=s.nextSibling;a.appendChild(s),a.reset(),f?c.insertBefore(s,f):c.appendChild(s)}}}(a.element)},250)}},a.element.addEventListener("change",a.ref.handleChange)},destroy:function(s){var a=s.root;a.element.removeEventListener("change",a.ref.handleChange)},write:Ft({DID_LOAD_ITEM:Ra,DID_REMOVE_ITEM:Ra,DID_THROW_ITEM_INVALID:function(s){var a=s.root;!a.query("GET_CHECK_VALIDITY")||a.element.setCustomValidity(a.query("GET_LABEL_INVALID_FIELD"))},DID_SET_DISABLED:_i,DID_SET_ALLOW_BROWSE:_i,DID_SET_ALLOW_DIRECTORIES_ONLY:ts,DID_SET_ALLOW_MULTIPLE:es,DID_SET_ACCEPTED_FILE_TYPES:Ei,DID_SET_CAPTURE_METHOD:pl,DID_SET_REQUIRED:ro})}),Oa_ENTER=13,Oa_SPACE=32,yl=function(s,a){s.innerHTML=a;var c=s.querySelector(".filepond--label-action");return c&&Ie(c,"tabindex","0"),a},ns=ht({name:"drop-label",ignoreRect:!0,create:function(s){var a=s.root,c=s.props,f=In("label");Ie(f,"for","filepond--browser-"+c.id),Ie(f,"id","filepond--drop-label-"+c.id),Ie(f,"aria-hidden","true"),a.ref.handleKeyDown=function(g){g.keyCode!==Oa_ENTER&&g.keyCode!==Oa_SPACE||(g.preventDefault(),a.ref.label.click())},a.ref.handleClick=function(g){g.target===f||f.contains(g.target)||a.ref.label.click()},f.addEventListener("keydown",a.ref.handleKeyDown),a.element.addEventListener("click",a.ref.handleClick),yl(f,c.caption),a.appendChild(f),a.ref.label=f},destroy:function(s){var a=s.root;a.ref.label.addEventListener("keydown",a.ref.handleKeyDown),a.element.removeEventListener("click",a.ref.handleClick)},write:Ft({DID_SET_LABEL_IDLE:function(s){yl(s.root.ref.label,s.action.value)}}),mixins:{styles:["opacity","translateX","translateY"],animations:{opacity:{type:"tween",duration:150},translateX:"spring",translateY:"spring"}}}),io=ht({name:"drip-blob",ignoreRect:!0,mixins:{styles:["translateX","translateY","scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",translateX:"spring",translateY:"spring",opacity:{type:"tween",duration:250}}}}),Pa=Ft({DID_DRAG:function(s){var a=s.root,c=s.action;a.ref.blob?(a.ref.blob.translateX=c.position.scopeLeft,a.ref.blob.translateY=c.position.scopeTop,a.ref.blob.scaleX=1,a.ref.blob.scaleY=1,a.ref.blob.opacity=1):function(s){var a=s.root;a.ref.blob=a.appendChildView(a.createChildView(io,{opacity:0,scaleX:2.5,scaleY:2.5,translateX:.5*a.rect.element.width,translateY:.5*a.rect.element.height}))}({root:a})},DID_DROP:function(s){var a=s.root;!a.ref.blob||(a.ref.blob.scaleX=2.5,a.ref.blob.scaleY=2.5,a.ref.blob.opacity=0)},DID_END_DRAG:function(s){var a=s.root;!a.ref.blob||(a.ref.blob.opacity=0)}}),Na=ht({ignoreRect:!0,ignoreRectUpdate:!0,name:"drip",write:function(s){var a=s.root,f=s.actions;Pa({root:a,props:s.props,actions:f});var g=a.ref.blob;0===f.length&&g&&0===g.opacity&&(a.removeChildView(g),a.ref.blob=null)}}),yr=function(s,a){return s.ref.fields[a]},vr=function(s){s.query("GET_ACTIVE_ITEMS").forEach(function(a){!s.ref.fields[a.id]||s.element.appendChild(s.ref.fields[a.id])})},Fa=function(s){return vr(s.root)},xg=Ft({DID_SET_DISABLED:function(s){var a=s.root;a.element.disabled=a.query("GET_DISABLED")},DID_ADD_ITEM:function(s){var a=s.root,c=s.action,f=In("input");f.type="hidden",f.name=a.query("GET_NAME"),f.disabled=a.query("GET_DISABLED"),a.ref.fields[c.id]=f,vr(a)},DID_LOAD_ITEM:function(s){var c=s.action,f=yr(s.root,c.id);!f||null===c.serverFileReference||(f.value=c.serverFileReference)},DID_REMOVE_ITEM:function(s){var a=s.root,c=s.action,f=yr(a,c.id);!f||(f.parentNode.removeChild(f),delete a.ref.fields[c.id])},DID_DEFINE_VALUE:function(s){var a=s.root,c=s.action,f=yr(a,c.id);!f||(null===c.value?f.removeAttribute("value"):f.value=c.value,vr(a))},DID_REORDER_ITEMS:Fa,DID_SORT_ITEMS:Fa}),kg=ht({tag:"fieldset",name:"data",create:function(s){return s.root.ref.fields={}},write:xg,ignoreRect:!0}),Vg=["jpg","jpeg","png","gif","bmp","webp","svg","tiff"],jg=["css","csv","html","txt"],Hg={zip:"zip|compressed",epub:"application/epub+zip"},yf=function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return s=s.toLowerCase(),Vg.includes(s)?"image/"+("jpg"===s?"jpeg":"svg"===s?"svg+xml":s):jg.includes(s)?"text/"+s:Hg[s]||""},zr=function(s){return new Promise(function(a,c){var f=is(s);if(f.length&&!Ug(s))return a(f);vt(s).then(a)})},Ug=function(s){return!!s.files&&s.files.length>0},vt=function(s){return new Promise(function(a,c){var f=(s.items?Array.from(s.items):[]).filter(function(g){return xa(g)}).map(function(g){return oo(g)});f.length?Promise.all(f).then(function(g){var y=[];g.forEach(function(v){y.push.apply(y,v)}),a(y.filter(function(v){return v}).map(function(v){return v._relativePath||(v._relativePath=v.webkitRelativePath),v}))}).catch(console.error):a(s.files?Array.from(s.files):[])})},xa=function(s){if(Tn(s)){var a=rs(s);if(a)return a.isFile||a.isDirectory}return"file"===s.kind},oo=function(s){return new Promise(function(a,c){fn(s)?Gg(rs(s)).then(a).catch(c):a([s.getAsFile()])})},Gg=function(s){return new Promise(function(a,c){var f=[],g=0,y=0,v=function(){0===y&&0===g&&a(f)};!function I(T){g++;var C=T.createReader();!function N(){C.readEntries(function(k){if(0===k.length)return g--,void v();k.forEach(function(H){H.isDirectory?I(H):(y++,H.file(function(P){var B=vf(P);H.fullPath&&(B._relativePath=H.fullPath),f.push(B),y--,v()}))}),N()},c)}()}(s)})},vf=function(s){if(s.type.length)return s;var a=s.lastModifiedDate,c=s.name;return(s=s.slice(0,s.size,yf(fa(s.name)))).name=c,s.lastModifiedDate=a,s},fn=function(s){return Tn(s)&&(rs(s)||{}).isDirectory},Tn=function(s){return"webkitGetAsEntry"in s},rs=function(s){return s.webkitGetAsEntry()},is=function(s){var a=[];try{if((a=_l(s)).length)return a;a=so(s)}catch(c){}return a},so=function(s){var a=s.getData("url");return"string"==typeof a&&a.length?[a]:[]},_l=function(s){var a=s.getData("text/html");if("string"==typeof a&&a.length){var c=a.match(/src\s*=\s*"(.+?)"/);if(c)return[c[1]]}return[]},os=[],qr=function(s){return{pageLeft:s.pageX,pageTop:s.pageY,scopeLeft:s.offsetX||s.layerX,scopeTop:s.offsetY||s.layerY}},zg=function(s){var a=os.find(function(f){return f.element===s});if(a)return a;var c=Dl(s);return os.push(c),c},Dl=function(s){var a=[],c={dragenter:Il,dragover:Ef,dragleave:Df,drop:_f},f={};Ee(c,function(y,v){f[y]=v(s,a),s.addEventListener(y,f[y],!1)});var g={element:s,addListener:function(v){return a.push(v),function(){a.splice(a.indexOf(v),1),0===a.length&&(os.splice(os.indexOf(g),1),Ee(c,function(_){s.removeEventListener(_,f[_],!1)}))}}};return g},ao=function(s,a){var c=function(s){return"getRootNode"in s?s.getRootNode():document}(a),f=function(s,a){return"elementFromPoint"in s||(s=document),s.elementFromPoint(a.x,a.y)}(c,{x:s.pageX-window.pageXOffset,y:s.pageY-window.pageYOffset});return f===a||a.contains(f)},Wr=null,ka=function(s,a){try{s.dropEffect=a}catch(c){}},Il=function(s,a){return function(c){c.preventDefault(),Wr=c.target,a.forEach(function(f){var y=f.onenter;ao(c,f.element)&&(f.state="enter",y(qr(c)))})}},Ef=function(s,a){return function(c){c.preventDefault();var f=c.dataTransfer;zr(f).then(function(g){var y=!1;a.some(function(v){var _=v.filterElement,I=v.element,T=v.onenter,C=v.onexit,S=v.ondrag,N=v.allowdrop;ka(f,"copy");var k=N(g);if(k)if(ao(c,I)){if(y=!0,null===v.state)return v.state="enter",void T(qr(c));if(v.state="over",_&&!k)return void ka(f,"none");S(qr(c))}else _&&!y&&ka(f,"none"),v.state&&(v.state=null,C(qr(c)));else ka(f,"none")})})}},_f=function(s,a){return function(c){c.preventDefault(),zr(c.dataTransfer).then(function(g){a.forEach(function(y){var v=y.filterElement,_=y.element,I=y.ondrop,T=y.onexit,C=y.allowdrop;if(y.state=null,!v||ao(c,_)){if(!C(g))return T(qr(c));I(qr(c),g)}})})}},Df=function(s,a){return function(c){Wr===c.target&&a.forEach(function(f){var g=f.onexit;f.state=null,g(qr(c))})}},If=function(s,a,c){s.classList.add("filepond--hopper");var y=c.filterItems,v=void 0===y?function(S){return S}:y,_=function(s,a,c){var f=zg(a),g={element:s,filterElement:c,state:null,ondrop:function(){},onenter:function(){},ondrag:function(){},onexit:function(){},onload:function(){},allowdrop:function(){}};return g.destroy=f.addListener(g),g}(s,c.catchesDropsOnPage?document.documentElement:s,c.requiresDropOnElement),I="",T="";_.allowdrop=function(S){return a(v(S))},_.ondrop=function(S,N){var k=v(N);a(k)?(T="drag-drop",C.onload(k,S)):C.ondragend(S)},_.ondrag=function(S){C.ondrag(S)},_.onenter=function(S){T="drag-over",C.ondragstart(S)},_.onexit=function(S){T="drag-exit",C.ondragend(S)};var C={updateHopperState:function(){I!==T&&(s.dataset.hopperState=T,I=T)},onload:function(){},ondragstart:function(){},ondrag:function(){},ondragend:function(){},destroy:function(){_.destroy()}};return C},Ba=!1,Yr=[],ss=function(s){var a=document.activeElement;if(a&&/textarea|input/i.test(a.nodeName)){for(var c=!1,f=a;f!==document.body;){if(f.classList.contains("filepond--root")){c=!0;break}f=f.parentNode}if(!c)return}zr(s.clipboardData).then(function(g){!g.length||Yr.forEach(function(y){return y(g)})})},uo=function(){var s=function(f){a.onload(f)},a={destroy:function(){!function(s){U(Yr,Yr.indexOf(s)),0===Yr.length&&(document.removeEventListener("paste",ss),Ba=!1)}(s)},onload:function(){}};return function(s){Yr.includes(s)||(Yr.push(s),!Ba&&(Ba=!0,document.addEventListener("paste",ss)))}(s),a},lo=null,Tl=null,ja=[],us=function(s,a){s.element.textContent=a},bl=function(s,a,c){var f=s.query("GET_TOTAL_ITEMS");us(s,c+" "+a+", "+f+" "+s.query(1===f?"GET_LABEL_FILE_COUNT_SINGULAR":"GET_LABEL_FILE_COUNT_PLURAL")),clearTimeout(Tl),Tl=setTimeout(function(){!function(s){s.element.textContent=""}(s)},1500)},wi=function(s){return s.element.parentNode.contains(document.activeElement)},Ha=function(s){var a=s.root,g=a.query("GET_ITEM",s.action.id).filename,y=a.query("GET_LABEL_FILE_PROCESSING_ABORTED");us(a,g+" "+y)},ls=function(s){var a=s.root,c=s.action,f=a.query("GET_ITEM",c.id);us(a,c.status.main+" "+f.filename+" "+c.status.sub)},Ua=ht({create:function(s){var a=s.root;a.element.id="filepond--assistant-"+s.props.id,Ie(a.element,"role","status"),Ie(a.element,"aria-live","polite"),Ie(a.element,"aria-relevant","additions")},ignoreRect:!0,ignoreRectUpdate:!0,write:Ft({DID_LOAD_ITEM:function(s){var a=s.root,c=s.action;if(wi(a)){a.element.textContent="";var f=a.query("GET_ITEM",c.id);ja.push(f.filename),clearTimeout(lo),lo=setTimeout(function(){bl(a,ja.join(", "),a.query("GET_LABEL_FILE_ADDED")),ja.length=0},750)}},DID_REMOVE_ITEM:function(s){var a=s.root,c=s.action;wi(a)&&bl(a,c.item.filename,a.query("GET_LABEL_FILE_REMOVED"))},DID_COMPLETE_ITEM_PROCESSING:function(s){var a=s.root,g=a.query("GET_ITEM",s.action.id).filename,y=a.query("GET_LABEL_FILE_PROCESSING_COMPLETE");us(a,g+" "+y)},DID_ABORT_ITEM_PROCESSING:Ha,DID_REVERT_ITEM_PROCESSING:Ha,DID_THROW_ITEM_REMOVE_ERROR:ls,DID_THROW_ITEM_LOAD_ERROR:ls,DID_THROW_ITEM_INVALID:ls,DID_THROW_ITEM_PROCESSING_ERROR:ls}),tag:"span",name:"assistant"}),bi=function(s){return s.replace(new RegExp((arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-")+".","g"),function(c){return c.charAt(1).toUpperCase()})},Cl=function(s){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,c=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],f=Date.now(),g=null;return function(){for(var y=arguments.length,v=new Array(y),_=0;_<y;_++)v[_]=arguments[_];clearTimeout(g);var I=Date.now()-f,T=function(){f=Date.now(),s.apply(void 0,v)};I<a?c||(g=setTimeout(T,a-I)):T()}},cs=function(s){return s.preventDefault()},Al=function(s){var a=s.ref.list.childViews[0].childViews[0];return a?{top:a.rect.element.marginTop,bottom:a.rect.element.marginBottom}:{top:0,bottom:0}},fs=function(s){var a=0,c=0,f=s.ref.list,g=f.childViews[0],y=g.childViews.filter(function(ne){return ne.rect.element.height}),v=s.query("GET_ACTIVE_ITEMS").map(function(ne){return y.find(function(j){return j.id===ne.id})}).filter(function(ne){return ne});if(0===v.length)return{visual:a,bounds:c};var _=g.rect.element.width,I=Sa(g,v,f.dragCoordinates),T=v[0].rect.element,C=T.marginTop+T.marginBottom,N=T.width+(T.marginLeft+T.marginRight),k=T.height+C,H=void 0!==I&&I>=0?1:0,P=v.find(function(ne){return ne.markedForRemoval&&ne.opacity<.45})?-1:0,B=v.length+H+P,$=Math.round(_/N);return 1===$?v.forEach(function(ne){var j=ne.rect.element.height+C;c+=j,a+=j*ne.opacity}):(c=Math.ceil(B/$)*k,a=c),{visual:a,bounds:c}},bf=function(s){var a=s.ref.measureHeight||null;return{cappedHeight:parseInt(s.style.maxHeight,10)||null,fixedHeight:0===a?null:a}},$a=function(s,a){var c=s.query("GET_ALLOW_REPLACE"),f=s.query("GET_ALLOW_MULTIPLE"),g=s.query("GET_TOTAL_ITEMS"),y=s.query("GET_MAX_FILES"),v=a.length;return!f&&v>1||!!(oi(y=f||c?y:1)&&g+v>y)&&(s.dispatch("DID_THROW_MAX_FILES",{source:a,error:ut("warning",0,"Max files")}),!0)},za=function(s,a,c){var f=s.childViews[0];return Sa(f,a,{left:c.scopeLeft-f.rect.element.left,top:c.scopeTop-(s.rect.outer.top+s.rect.element.marginTop+s.rect.element.scrollTop)})},co=function(s){var a=s.query("GET_ALLOW_DROP"),c=s.query("GET_DISABLED"),f=a&&!c;if(f&&!s.ref.hopper){var g=If(s.element,function(y){if($a(s,y))return!1;var v=s.query("GET_BEFORE_DROP_FILE")||function(){return!0};return!s.query("GET_DROP_VALIDATION")||y.every(function(I){return st("ALLOW_HOPPER_ITEM",I,{query:s.query}).every(function(T){return!0===T})&&v(I)})},{filterItems:function(v){var _=s.query("GET_IGNORED_FILES");return v.filter(function(I){return!Gr(I)||!_.includes(I.name.toLowerCase())})},catchesDropsOnPage:s.query("GET_DROP_ON_PAGE"),requiresDropOnElement:s.query("GET_DROP_ON_ELEMENT")});g.onload=function(y,v){var I=s.ref.list.childViews[0].childViews.filter(function(C){return C.rect.element.height}),T=s.query("GET_ACTIVE_ITEMS").map(function(C){return I.find(function(S){return S.id===C.id})}).filter(function(C){return C});s.dispatch("ADD_ITEMS",{items:y,index:za(s.ref.list,T,v),interactionMethod:mn_DROP}),s.dispatch("DID_DROP",{position:v}),s.dispatch("DID_END_DRAG",{position:v})},g.ondragstart=function(y){s.dispatch("DID_START_DRAG",{position:y})},g.ondrag=Cl(function(y){s.dispatch("DID_DRAG",{position:y})}),g.ondragend=function(y){s.dispatch("DID_END_DRAG",{position:y})},s.ref.hopper=g,s.ref.drip=s.appendChildView(s.createChildView(Na))}else!f&&s.ref.hopper&&(s.ref.hopper.destroy(),s.ref.hopper=null,s.removeChildView(s.ref.drip))},qa=function(s,a){var c=s.query("GET_ALLOW_BROWSE"),f=s.query("GET_DISABLED"),g=c&&!f;g&&!s.ref.browser?s.ref.browser=s.appendChildView(s.createChildView(ml,Object.assign({},a,{onload:function(v){if($a(s,v))return!1;s.dispatch("ADD_ITEMS",{items:v,index:-1,interactionMethod:mn_BROWSE})}})),0):!g&&s.ref.browser&&(s.removeChildView(s.ref.browser),s.ref.browser=null)},Ml=function(s){var a=s.query("GET_ALLOW_PASTE"),c=s.query("GET_DISABLED"),f=a&&!c;f&&!s.ref.paster?(s.ref.paster=uo(),s.ref.paster.onload=function(g){s.dispatch("ADD_ITEMS",{items:g,index:-1,interactionMethod:mn_PASTE})}):!f&&s.ref.paster&&(s.ref.paster.destroy(),s.ref.paster=null)},Sf=Ft({DID_SET_ALLOW_BROWSE:function(s){qa(s.root,s.props)},DID_SET_ALLOW_DROP:function(s){co(s.root)},DID_SET_ALLOW_PASTE:function(s){Ml(s.root)},DID_SET_DISABLED:function(s){var a=s.root,c=s.props;co(a),Ml(a),qa(a,c),a.query("GET_DISABLED")?a.element.dataset.disabled="disabled":a.element.removeAttribute("data-disabled")}}),Si=ht({name:"root",read:function(s){var a=s.root;a.ref.measure&&(a.ref.measureHeight=a.ref.measure.offsetHeight)},create:function(s){var a=s.root,c=s.props,f=a.query("GET_ID");f&&(a.element.id=f);var g=a.query("GET_CLASS_NAME");g&&g.split(" ").filter(function(_){return _.length}).forEach(function(_){a.element.classList.add(_)}),a.ref.label=a.appendChildView(a.createChildView(ns,Object.assign({},c,{translateY:null,caption:a.query("GET_LABEL_IDLE")}))),a.ref.list=a.appendChildView(a.createChildView(hl,{translateY:null})),a.ref.panel=a.appendChildView(a.createChildView(eo,{name:"panel-root"})),a.ref.assistant=a.appendChildView(a.createChildView(Ua,Object.assign({},c))),a.ref.data=a.appendChildView(a.createChildView(kg,Object.assign({},c))),a.ref.measure=In("div"),a.ref.measure.style.height="100%",a.element.appendChild(a.ref.measure),a.ref.bounds=null,a.query("GET_STYLES").filter(function(_){return!Ln(_.value)}).map(function(_){a.element.dataset[_.name]=_.value}),a.ref.widthPrevious=null,a.ref.widthUpdated=Cl(function(){a.ref.updateHistory=[],a.dispatch("DID_RESIZE_ROOT")},250),a.ref.previousAspectRatio=null,a.ref.updateHistory=[];var y=window.matchMedia("(pointer: fine) and (hover: hover)").matches,v="PointerEvent"in window;a.query("GET_ALLOW_REORDER")&&v&&!y&&(a.element.addEventListener("touchmove",cs,{passive:!1}),a.element.addEventListener("gesturestart",cs))},write:function(s){var a=s.root,f=s.actions;if(Sf({root:a,props:s.props,actions:f}),f.filter(function(_e){return/^DID_SET_STYLE_/.test(_e.type)}).filter(function(_e){return!Ln(_e.data.value)}).map(function(_e){var Kn=_e.data,_r=bi(_e.type.substr(8).toLowerCase(),"_");a.element.dataset[_r]=Kn.value,a.invalidateLayout()}),!a.rect.element.hidden){a.rect.element.width!==a.ref.widthPrevious&&(a.ref.widthPrevious=a.rect.element.width,a.ref.widthUpdated());var g=a.ref.bounds;g||(g=a.ref.bounds=bf(a),a.element.removeChild(a.ref.measure),a.ref.measure=null);var y=a.ref,v=y.hopper,_=y.label,I=y.list,T=y.panel;v&&v.updateHopperState();var C=a.query("GET_PANEL_ASPECT_RATIO"),S=a.query("GET_ALLOW_MULTIPLE"),N=a.query("GET_TOTAL_ITEMS"),H=N===(S?a.query("GET_MAX_FILES")||1e6:1),P=f.find(function(_e){return"DID_ADD_ITEM"===_e.type});if(H&&P){var B=P.data.interactionMethod;_.opacity=0,S?_.translateY=-40:B===mn_API?_.translateX=40:_.translateY=B===mn_BROWSE?40:30}else H||(_.opacity=1,_.translateX=0,_.translateY=0);var $=Al(a),ne=fs(a),j=_.rect.element.height,Re=!S||H?0:j,ae=H?I.rect.element.marginTop:0,Ve=0===N?0:I.rect.element.marginBottom,xe=Re+ae+ne.visual+Ve,q=Re+ae+ne.bounds+Ve;if(I.translateY=Math.max(0,Re-I.rect.element.marginTop)-$.top,C){var te=a.rect.element.width,re=te*C;C!==a.ref.previousAspectRatio&&(a.ref.previousAspectRatio=C,a.ref.updateHistory=[]);var z=a.ref.updateHistory;z.push(te);if(z.length>4)for(var oe=z.length,je=oe-10,ke=0,se=oe;se>=je;se--)if(z[se]===z[se-2]&&ke++,ke>=2)return;T.scalable=!1,T.height=re;var x=re-Re-(Ve-$.bottom)-(H?ae:0);I.overflow=ne.visual>x?x:null,a.height=re}else if(g.fixedHeight){T.scalable=!1;var A=g.fixedHeight-Re-(Ve-$.bottom)-(H?ae:0);I.overflow=ne.visual>A?A:null}else if(g.cappedHeight){var Q=xe>=g.cappedHeight,fe=Math.min(g.cappedHeight,xe);T.scalable=!0,T.height=Q?fe:fe-$.top-$.bottom;var ge=fe-Re-(Ve-$.bottom)-(H?ae:0);I.overflow=xe>g.cappedHeight&&ne.visual>ge?ge:null,a.height=Math.min(g.cappedHeight,q-$.top-$.bottom)}else{var Ce=N>0?$.top+$.bottom:0;T.scalable=!0,T.height=Math.max(j,xe-Ce),a.height=Math.max(j,q-Ce)}}},destroy:function(s){var a=s.root;a.ref.paster&&a.ref.paster.destroy(),a.ref.hopper&&a.ref.hopper.destroy(),a.element.removeEventListener("touchmove",cs),a.element.removeEventListener("gesturestart",cs)},mixins:{styles:["height"]}}),fo=function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=null,c=qt(),f=Nn(ta(c),[Nd,Yu(c)],[hr,ve(c)]);f.dispatch("SET_OPTIONS",{options:s});var g=function(){document.hidden||f.dispatch("KICK")};document.addEventListener("visibilitychange",g);var y=null,v=!1,_=!1,I=null,T=null,C=function(){v||(v=!0),clearTimeout(y),y=setTimeout(function(){v=!1,I=null,T=null,_&&(_=!1,f.dispatch("DID_STOP_RESIZE"))},500)};window.addEventListener("resize",C);var S=Si(f,{id:Y()}),N=!1,k=!1,H={_read:function(){v&&(T=window.innerWidth,I||(I=T),!_&&T!==I&&(f.dispatch("DID_START_RESIZE"),_=!0)),k&&N&&(N=null===S.element.offsetParent),!N&&(S._read(),k=S.rect.element.hidden)},_write:function(x){var A=f.processActionQueue().filter(function(Q){return!/^SET_/.test(Q.type)});N&&!A.length||(ne(A),N=S._write(x,A,_),Br(f.query("GET_ITEMS")),N&&f.processDispatchQueue())}},P=function(x){return function(A){var Q={type:x};if(!A)return Q;if(A.hasOwnProperty("error")&&(Q.error=A.error?Object.assign({},A.error):null),A.status&&(Q.status=Object.assign({},A.status)),A.file&&(Q.output=A.file),A.source)Q.file=A.source;else if(A.item||A.id){var fe=A.item?A.item:f.query("GET_ITEM",A.id);Q.file=fe?Be(fe):null}return A.items&&(Q.items=A.items.map(Be)),/progress/.test(x)&&(Q.progress=A.progress),A.hasOwnProperty("origin")&&A.hasOwnProperty("target")&&(Q.origin=A.origin,Q.target=A.target),Q}},B={DID_DESTROY:P("destroy"),DID_INIT:P("init"),DID_THROW_MAX_FILES:P("warning"),DID_INIT_ITEM:P("initfile"),DID_START_ITEM_LOAD:P("addfilestart"),DID_UPDATE_ITEM_LOAD_PROGRESS:P("addfileprogress"),DID_LOAD_ITEM:P("addfile"),DID_THROW_ITEM_INVALID:[P("error"),P("addfile")],DID_THROW_ITEM_LOAD_ERROR:[P("error"),P("addfile")],DID_THROW_ITEM_REMOVE_ERROR:[P("error"),P("removefile")],DID_PREPARE_OUTPUT:P("preparefile"),DID_START_ITEM_PROCESSING:P("processfilestart"),DID_UPDATE_ITEM_PROCESS_PROGRESS:P("processfileprogress"),DID_ABORT_ITEM_PROCESSING:P("processfileabort"),DID_COMPLETE_ITEM_PROCESSING:P("processfile"),DID_COMPLETE_ITEM_PROCESSING_ALL:P("processfiles"),DID_REVERT_ITEM_PROCESSING:P("processfilerevert"),DID_THROW_ITEM_PROCESSING_ERROR:[P("error"),P("processfile")],DID_REMOVE_ITEM:P("removefile"),DID_UPDATE_ITEMS:P("updatefiles"),DID_ACTIVATE_ITEM:P("activatefile"),DID_REORDER_ITEMS:P("reorderfiles")},$=function(x){var A=Object.assign({pond:ke},x);delete A.type,S.element.dispatchEvent(new CustomEvent("FilePond:"+x.type,{detail:A,bubbles:!0,cancelable:!0,composed:!0}));var Q=[];x.hasOwnProperty("error")&&Q.push(x.error),x.hasOwnProperty("file")&&Q.push(x.file);var fe=["type","error","file"];Object.keys(x).filter(function(Ce){return!fe.includes(Ce)}).forEach(function(Ce){return Q.push(x[Ce])}),ke.fire.apply(ke,[x.type].concat(Q));var ge=f.query("GET_ON"+x.type.toUpperCase());ge&&ge.apply(void 0,Q)},ne=function(x){!x.length||x.filter(function(A){return B[A.type]}).forEach(function(A){var Q=B[A.type];(Array.isArray(Q)?Q:[Q]).forEach(function(fe){"DID_INIT_ITEM"===A.type?$(fe(A.data)):setTimeout(function(){$(fe(A.data))},0)})})},j=function(x){return f.dispatch("SET_OPTIONS",{options:x})},Re=function(x){return f.query("GET_ACTIVE_ITEM",x)},ae=function(x){return new Promise(function(A,Q){f.dispatch("REQUEST_ITEM_PREPARE",{query:x,success:function(ge){A(ge)},failure:function(ge){Q(ge)}})})},Ve=function(x){var A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(Q,fe){te([{source:x,options:A}],{index:A.index}).then(function(ge){return Q(ge&&ge[0])}).catch(fe)})},xe=function(x){return x.file&&x.id},q=function(x,A){return"object"==typeof x&&!xe(x)&&!A&&(A=x,x=void 0),f.dispatch("REMOVE_ITEM",Object.assign({},A,{query:x})),null===f.query("GET_ACTIVE_ITEM",x)},te=function(){for(var x=arguments.length,A=new Array(x),Q=0;Q<x;Q++)A[Q]=arguments[Q];return new Promise(function(fe,ge){var Ce=[],_e={};if(Ao(A[0]))Ce.push.apply(Ce,A[0]),Object.assign(_e,A[1]||{});else{var Oe=A[A.length-1];"object"==typeof Oe&&!(Oe instanceof Blob)&&Object.assign(_e,A.pop()),Ce.push.apply(Ce,A)}f.dispatch("ADD_ITEMS",{items:Ce,index:_e.index,interactionMethod:mn_API,success:fe,failure:ge})})},re=function(){return f.query("GET_ACTIVE_ITEMS")},z=function(x){return new Promise(function(A,Q){f.dispatch("REQUEST_ITEM_PROCESSING",{query:x,success:function(ge){A(ge)},failure:function(ge){Q(ge)}})})},ee=function(){for(var x=arguments.length,A=new Array(x),Q=0;Q<x;Q++)A[Q]=arguments[Q];var fe=Array.isArray(A[0])?A[0]:A,ge=fe.length?fe:re();return Promise.all(ge.map(ae))},oe=function(){for(var x=arguments.length,A=new Array(x),Q=0;Q<x;Q++)A[Q]=arguments[Q];var fe=Array.isArray(A[0])?A[0]:A;if(!fe.length){var ge=re().filter(function(Ce){return!(Ce.status===K.IDLE&&Ce.origin===yt.LOCAL)&&Ce.status!==K.PROCESSING&&Ce.status!==K.PROCESSING_COMPLETE&&Ce.status!==K.PROCESSING_REVERT_ERROR});return Promise.all(ge.map(z))}return Promise.all(fe.map(z))},je=function(){for(var x=arguments.length,A=new Array(x),Q=0;Q<x;Q++)A[Q]=arguments[Q];var ge,fe=Array.isArray(A[0])?A[0]:A;"object"==typeof fe[fe.length-1]?ge=fe.pop():Array.isArray(A[0])&&(ge=A[1]);var Ce=re();return fe.length?fe.map(function(Oe){return ri(Oe)?Ce[Oe]?Ce[Oe].id:null:Oe}).filter(function(Oe){return Oe}).map(function(Oe){return q(Oe,ge)}):Promise.all(Ce.map(function(Oe){return q(Oe,ge)}))},ke=Object.assign({},Ke(),{},H,{},na(f,c),{setOptions:j,addFile:Ve,addFiles:te,getFile:Re,processFile:z,prepareFile:ae,removeFile:q,moveFile:function(x,A){return f.dispatch("MOVE_ITEM",{query:x,index:A})},getFiles:re,processFiles:oe,removeFiles:je,prepareFiles:ee,sort:function(x){return f.dispatch("SORT",{compare:x})},browse:function(){var x=S.element.querySelector("input[type=file]");x&&x.click()},destroy:function(){ke.fire("destroy",S.element),f.dispatch("ABORT_ALL"),S._destroy(),window.removeEventListener("resize",C),document.removeEventListener("visibilitychange",g),f.dispatch("DID_DESTROY")},insertBefore:function(x){return Hu(S.element,x)},insertAfter:function(x){return Uu(S.element,x)},appendTo:function(x){return x.appendChild(S.element)},replaceElement:function(x){Hu(S.element,x),x.parentNode.removeChild(x),a=x},restoreElement:function(){!a||(Uu(a,S.element),S.element.parentNode.removeChild(S.element),a=null)},isAttachedTo:function(x){return S.element===x||a===x},element:{get:function(){return S.element}},status:{get:function(){return f.query("GET_STATUS")}}});return f.dispatch("DID_INIT"),Ge(ke)},Rl=function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a={};return Ee(qt(),function(f,g){a[f]=g[0]}),fo(Object.assign({},a,{},s))},Ol=function(s){return bi(s.replace(/^data-/,""))},Cf=function h(s,a){Ee(a,function(c,f){Ee(s,function(g,y){var v=new RegExp(c);if(v.test(g)&&(delete s[g],!1!==f)){if(Lt(f))return void(s[f]=y);var I=f.group;wt(f)&&!s[I]&&(s[I]={}),s[I][function(s){return s.charAt(0).toLowerCase()+s.slice(1)}(g.replace(v,""))]=y}}),f.mapping&&h(s[f.group],f.mapping)})},Yg=function(s){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=[];Ee(s.attributes,function(g){c.push(s.attributes[g])});var f=c.filter(function(g){return g.name}).reduce(function(g,y){var v=Ie(s,y.name);return g[Ol(y.name)]=v===y.name||v,g},{});return Cf(f,a),f},Af=function(s){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c={"^class$":"className","^multiple$":"allowMultiple","^capture$":"captureMethod","^webkitdirectory$":"allowDirectoriesOnly","^server":{group:"server",mapping:{"^process":{group:"process"},"^revert":{group:"revert"},"^fetch":{group:"fetch"},"^restore":{group:"restore"},"^load":{group:"load"}}},"^type$":!1,"^files$":!1};st("SET_ATTRIBUTE_TO_OPTION_MAP",c);var f=Object.assign({},a),g=Yg("FIELDSET"===s.nodeName?s.querySelector("input[type=file]"):s,c);Object.keys(g).forEach(function(v){wt(g[v])?(wt(f[v])||(f[v]={}),Object.assign(f[v],g[v])):f[v]=g[v]}),f.files=(a.files||[]).concat(Array.from(s.querySelectorAll("input:not([type=file])")).map(function(v){return{source:v.value,options:{type:v.dataset.type}}}));var y=Rl(f);return s.files&&Array.from(s.files).forEach(function(v){y.addFile(v)}),y.replaceElement(s),y},Mf=function(){return pn(arguments.length<=0?void 0:arguments[0])?Af.apply(void 0,arguments):Rl.apply(void 0,arguments)},Rf=["fire","_read","_write"],Pl=function(s){var a={};return zt(s,a,Rf),a},Qg=function(s,a){return s.replace(/(?:{([a-zA-Z]+)})/g,function(c,f){return a[f]})},tn=function(s){var a=new Blob(["(",s.toString(),")()"],{type:"application/javascript"}),c=URL.createObjectURL(a),f=new Worker(c);return{transfer:function(y,v){},post:function(y,v,_){var I=Y();f.onmessage=function(T){T.data.id===I&&v(T.data.message)},f.postMessage({id:I,message:y},_)},terminate:function(){f.terminate(),URL.revokeObjectURL(c)}}},Of=function(s){return new Promise(function(a,c){var f=new Image;f.onload=function(){a(f)},f.onerror=function(g){c(g)},f.src=s})},Nl=function(s,a){var c=s.slice(0,s.size,s.type);return c.lastModifiedDate=s.lastModifiedDate,c.name=a,c},Pf=function(s){return Nl(s,s.name)},Wa=[],Ht=function(s){Wa.includes(s)||(Wa.push(s),function(s){Object.assign(li,s)}(s({addFilter:$i,utils:{Type:L,forin:Ee,isString:Lt,isFile:Gr,toNaturalFileSize:Me,replaceInString:Qg,getExtensionFromFilename:fa,getFilenameWithoutExtension:Hd,guesstimateMimeType:yf,getFileFromBlob:zi,getFilenameFromURL:jo,createRoute:Ft,createWorker:tn,createView:ht,createItemAPI:Be,loadImage:Of,copyFile:Pf,renameFile:Nl,createBlob:xd,applyFilterChain:Jt,text:Z,getNumericAspectRatioFromString:_n},views:{fileActionButton:F}}).options))},hs=(h=Gt()&&!("[object OperaMini]"===Object.prototype.toString.call(window.operamini))&&"visibilityState"in document&&"Promise"in window&&"slice"in Blob.prototype&&"URL"in window&&"createObjectURL"in window.URL&&"performance"in window&&("supports"in(window.CSS||{})||/MSIE|Trident/.test(window.navigator.userAgent)),function(){return h}),Er={apps:[]},Qr=function(){};if(J.Status={},J.FileStatus={},J.FileOrigin={},J.OptionTypes={},J.create=Qr,J.destroy=Qr,J.parse=Qr,J.find=Qr,J.registerPlugin=Qr,J.getOptions=Qr,J.setOptions=Qr,hs()){!function(s,a){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60,f="__framePainter";if(window[f])return window[f].readers.push(s),void window[f].writers.push(a);window[f]={readers:[s],writers:[a]};var g=window[f],y=1e3/c,v=null,_=null,I=null,T=null,C=function(){document.hidden?(I=function(){return window.setTimeout(function(){return S(performance.now())},y)},T=function(){return window.clearTimeout(_)}):(I=function(){return window.requestAnimationFrame(S)},T=function(){return window.cancelAnimationFrame(_)})};document.addEventListener("visibilitychange",function(){T&&T(),C(),S(performance.now())});var S=function N(k){_=I(N),v||(v=k);var H=k-v;H<=y||(v=k-H%y,g.readers.forEach(function(P){return P()}),g.writers.forEach(function(P){return P(k)}))};C(),S(performance.now())}(function(){Er.apps.forEach(function(h){return h._read()})},function(h){Er.apps.forEach(function(s){return s._write(h)})});var Ka=function h(){document.dispatchEvent(new CustomEvent("FilePond:loaded",{detail:{supported:hs,create:J.create,destroy:J.destroy,parse:J.parse,find:J.find,registerPlugin:J.registerPlugin,setOptions:J.setOptions}})),document.removeEventListener("DOMContentLoaded",h)};"loading"!==document.readyState?setTimeout(function(){return Ka()},0):document.addEventListener("DOMContentLoaded",Ka);var kl=function(){return Ee(qt(),function(s,a){J.OptionTypes[s]=a[1]})};J.Status=Object.assign({},dr),J.FileOrigin=Object.assign({},yt),J.FileStatus=Object.assign({},K),J.OptionTypes={},kl(),J.create=function(){var s=Mf.apply(void 0,arguments);return s.on("destroy",J.destroy),Er.apps.push(s),Pl(s)},J.destroy=function(s){var a=Er.apps.findIndex(function(f){return f.isAttachedTo(s)});return a>=0&&(Er.apps.splice(a,1)[0].restoreElement(),!0)},J.parse=function(s){return Array.from(s.querySelectorAll(".filepond")).filter(function(f){return!Er.apps.find(function(g){return g.isAttachedTo(f)})}).map(function(f){return J.create(f)})},J.find=function(s){var a=Er.apps.find(function(c){return c.isAttachedTo(s)});return a?Pl(a):null},J.registerPlugin=function(){for(var s=arguments.length,a=new Array(s),c=0;c<s;c++)a[c]=arguments[c];a.forEach(Ht),kl()},J.getOptions=function(){var s={};return Ee(qt(),function(a,c){s[a]=c[0]}),s},J.setOptions=function(s){return wt(s)&&(Er.apps.forEach(function(a){a.setOptions(s)}),function(s){Ee(s,function(a,c){!li[a]||(li[a][0]=qe(c,li[a][0],li[a][1]))})}(s)),J.getOptions()}}J.supported=hs,Object.defineProperty(J,"__esModule",{value:!0})}(Je)}},lg={};function Pn(ft){var Je=lg[ft];if(void 0!==Je)return Je.exports;var J=lg[ft]={exports:{}};return xD[ft].call(J.exports,J,J.exports,Pn),J.exports}Pn.n=ft=>{var Je=ft&&ft.__esModule?()=>ft.default:()=>ft;return Pn.d(Je,{a:Je}),Je},Pn.d=(ft,Je)=>{for(var J in Je)Pn.o(Je,J)&&!Pn.o(ft,J)&&Object.defineProperty(ft,J,{enumerable:!0,get:Je[J]})},Pn.o=(ft,Je)=>Object.prototype.hasOwnProperty.call(ft,Je),(()=>{"use strict";function ft(t){return"function"==typeof t}let Je=!1;const J={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else Je&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Je=t},get useDeprecatedSynchronousErrorHandling(){return Je}};function pn(t){setTimeout(()=>{throw t},0)}const Nn={closed:!0,next(t){},error(t){if(J.useDeprecatedSynchronousErrorHandling)throw t;pn(t)},complete(){}},Bi=Array.isArray||(t=>t&&"number"==typeof t.length);function Ee(t){return null!==t&&"object"==typeof t}const Ie=(()=>{function t(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((n,r)=>`${r+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return t.prototype=Object.create(Error.prototype),t})();class Ae{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:r,_unsubscribe:i,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof Ae)n.remove(this);else if(null!==n)for(let u=0;u<n.length;++u)n[u].remove(this);if(ft(i)){r&&(this._unsubscribe=void 0);try{i.call(this)}catch(u){e=u instanceof Ie?At(u.errors):[u]}}if(Bi(o)){let u=-1,l=o.length;for(;++u<l;){const d=o[u];if(Ee(d))try{d.unsubscribe()}catch(p){e=e||[],p instanceof Ie?e=e.concat(At(p.errors)):e.push(p)}}}if(e)throw new Ie(e)}add(e){let n=e;if(!e)return Ae.EMPTY;switch(typeof e){case"function":n=new Ae(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof Ae)){const o=n;n=new Ae,n._subscriptions=[o]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:r}=n;if(null===r)n._parentOrParents=this;else if(r instanceof Ae){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}const i=this._subscriptions;return null===i?this._subscriptions=[n]:i.push(n),n}remove(e){const n=this._subscriptions;if(n){const r=n.indexOf(e);-1!==r&&n.splice(r,1)}}}var t;function At(t){return t.reduce((e,n)=>e.concat(n instanceof Ie?n.errors:n),[])}Ae.EMPTY=((t=new Ae).closed=!0,t);const Ut="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class et extends Ae{constructor(e,n,r){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Nn;break;case 1:if(!e){this.destination=Nn;break}if("object"==typeof e){e instanceof et?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new sn(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new sn(this,e,n,r)}}[Ut](){return this}static create(e,n,r){const i=new et(e,n,r);return i.syncErrorThrowable=!1,i}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class sn extends et{constructor(e,n,r,i){super(),this._parentSubscriber=e;let o,u=this;ft(n)?o=n:n&&(o=n.next,r=n.error,i=n.complete,n!==Nn&&(u=Object.create(n),ft(u.unsubscribe)&&this.add(u.unsubscribe.bind(u)),u.unsubscribe=this.unsubscribe.bind(this))),this._context=u,this._next=o,this._error=r,this._complete=i}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:n}=this;J.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?this.__tryOrSetError(n,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:n}=this,{useDeprecatedSynchronousErrorHandling:r}=J;if(this._error)r&&n.syncErrorThrowable?(this.__tryOrSetError(n,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(n.syncErrorThrowable)r?(n.syncErrorValue=e,n.syncErrorThrown=!0):pn(e),this.unsubscribe();else{if(this.unsubscribe(),r)throw e;pn(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const n=()=>this._complete.call(this._context);J.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,n){try{e.call(this._context,n)}catch(r){if(this.unsubscribe(),J.useDeprecatedSynchronousErrorHandling)throw r;pn(r)}}__tryOrSetError(e,n,r){if(!J.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{n.call(this._context,r)}catch(i){return J.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=i,e.syncErrorThrown=!0,!0):(pn(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const Gt="function"==typeof Symbol&&Symbol.observable||"@@observable";function Fn(t){return t}let tt=(()=>{class t{constructor(n){this._isScalar=!1,n&&(this._subscribe=n)}lift(n){const r=new t;return r.source=this,r.operator=n,r}subscribe(n,r,i){const{operator:o}=this,u=function gn(t,e,n){if(t){if(t instanceof et)return t;if(t[Ut])return t[Ut]()}return t||e||n?new et(t,e,n):new et(Nn)}(n,r,i);if(u.add(o?o.call(u,this.source):this.source||J.useDeprecatedSynchronousErrorHandling&&!u.syncErrorThrowable?this._subscribe(u):this._trySubscribe(u)),J.useDeprecatedSynchronousErrorHandling&&u.syncErrorThrowable&&(u.syncErrorThrowable=!1,u.syncErrorThrown))throw u.syncErrorValue;return u}_trySubscribe(n){try{return this._subscribe(n)}catch(r){J.useDeprecatedSynchronousErrorHandling&&(n.syncErrorThrown=!0,n.syncErrorValue=r),function ni(t){for(;t;){const{closed:e,destination:n,isStopped:r}=t;if(e||r)return!1;t=n&&n instanceof et?n:null}return!0}(n)?n.error(r):console.warn(r)}}forEach(n,r){return new(r=zs(r))((i,o)=>{let u;u=this.subscribe(l=>{try{n(l)}catch(d){o(d),u&&u.unsubscribe()}},o,i)})}_subscribe(n){const{source:r}=this;return r&&r.subscribe(n)}[Gt](){return this}pipe(...n){return 0===n.length?this:function Nr(t){return 0===t.length?Fn:1===t.length?t[0]:function(n){return t.reduce((r,i)=>i(r),n)}}(n)(this)}toPromise(n){return new(n=zs(n))((r,i)=>{let o;this.subscribe(u=>o=u,u=>i(u),()=>r(o))})}}return t.create=e=>new t(e),t})();function zs(t){if(t||(t=J.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const ii=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class Fu extends Ae{constructor(e,n){super(),this.subject=e,this.subscriber=n,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,n=e.observers;if(this.subject=null,!n||0===n.length||e.isStopped||e.closed)return;const r=n.indexOf(this.subscriber);-1!==r&&n.splice(r,1)}}class Jc extends et{constructor(e){super(e),this.destination=e}}let So=(()=>{class t extends tt{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Ut](){return new Jc(this)}lift(n){const r=new Lu(this,this);return r.operator=n,r}next(n){if(this.closed)throw new ii;if(!this.isStopped){const{observers:r}=this,i=r.length,o=r.slice();for(let u=0;u<i;u++)o[u].next(n)}}error(n){if(this.closed)throw new ii;this.hasError=!0,this.thrownError=n,this.isStopped=!0;const{observers:r}=this,i=r.length,o=r.slice();for(let u=0;u<i;u++)o[u].error(n);this.observers.length=0}complete(){if(this.closed)throw new ii;this.isStopped=!0;const{observers:n}=this,r=n.length,i=n.slice();for(let o=0;o<r;o++)i[o].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(n){if(this.closed)throw new ii;return super._trySubscribe(n)}_subscribe(n){if(this.closed)throw new ii;return this.hasError?(n.error(this.thrownError),Ae.EMPTY):this.isStopped?(n.complete(),Ae.EMPTY):(this.observers.push(n),new Fu(this,n))}asObservable(){const n=new tt;return n.source=this,n}}return t.create=(e,n)=>new Lu(e,n),t})();class Lu extends So{constructor(e,n){super(),this.destination=e,this.source=n}next(e){const{destination:n}=this;n&&n.next&&n.next(e)}error(e){const{destination:n}=this;n&&n.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:n}=this;return n?this.source.subscribe(e):Ae.EMPTY}}function qs(t){return t&&"function"==typeof t.schedule}function Ws(t,e){return function(r){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new Ys(t,e))}}class Ys{constructor(e,n){this.project=e,this.thisArg=n}call(e,n){return n.subscribe(new ed(e,this.project,this.thisArg))}}class ed extends et{constructor(e,n,r){super(e),this.project=n,this.count=0,this.thisArg=r||this}_next(e){let n;try{n=this.project.call(this.thisArg,e,this.count++)}catch(r){return void this.destination.error(r)}this.destination.next(n)}}const xu=t=>e=>{for(let n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()},Co=function nd(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),ku=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function Bu(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const Vu=t=>{if(t&&"function"==typeof t[Gt])return(t=>e=>{const n=t[Gt]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)})(t);if(ku(t))return xu(t);if(Bu(t))return(t=>e=>(t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,pn),e))(t);if(t&&"function"==typeof t[Co])return(t=>e=>{const n=t[Co]();for(;;){let r;try{r=n.next()}catch(i){return e.error(i),e}if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e})(t);{const n=`You provided ${Ee(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(n)}};function Qs(t,e){return new tt(n=>{const r=new Ae;let i=0;return r.add(e.schedule(function(){i!==t.length?(n.next(t[i++]),n.closed||r.add(this.schedule())):n.complete()})),r})}function Ln(t,e){return e?function Ao(t,e){if(null!=t){if(function Hu(t){return t&&"function"==typeof t[Gt]}(t))return function ju(t,e){return new tt(n=>{const r=new Ae;return r.add(e.schedule(()=>{const i=t[Gt]();r.add(i.subscribe({next(o){r.add(e.schedule(()=>n.next(o)))},error(o){r.add(e.schedule(()=>n.error(o)))},complete(){r.add(e.schedule(()=>n.complete()))}}))})),r})}(t,e);if(Bu(t))return function ht(t,e){return new tt(n=>{const r=new Ae;return r.add(e.schedule(()=>t.then(i=>{r.add(e.schedule(()=>{n.next(i),r.add(e.schedule(()=>n.complete()))}))},i=>{r.add(e.schedule(()=>n.error(i)))}))),r})}(t,e);if(ku(t))return Qs(t,e);if(function Uu(t){return t&&"function"==typeof t[Co]}(t)||"string"==typeof t)return function Ft(t,e){if(!t)throw new Error("Iterable cannot be null");return new tt(n=>{const r=new Ae;let i;return r.add(()=>{i&&"function"==typeof i.return&&i.return()}),r.add(e.schedule(()=>{i=t[Co](),r.add(e.schedule(function(){if(n.closed)return;let o,u;try{const l=i.next();o=l.value,u=l.done}catch(l){return void n.error(l)}u?n.complete():(n.next(o),this.schedule())}))})),r})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof tt?t:new tt(Vu(t))}class Gu extends et{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class $u extends et{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function Zs(t,e){if(!e.closed)return t instanceof tt?t.subscribe(e):Vu(t)(e)}function Lt(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(Lt((i,o)=>Ln(t(i,o)).pipe(Ws((u,l)=>e(i,u,o,l))),n)):("number"==typeof e&&(n=e),r=>r.lift(new zu(t,n)))}class zu{constructor(e,n=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=n}call(e,n){return n.subscribe(new Mo(e,this.project,this.concurrent))}}class Mo extends $u{constructor(e,n,r=Number.POSITIVE_INFINITY){super(e),this.project=n,this.concurrent=r,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let n;const r=this.index++;try{n=this.project(e,r)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(n)}_innerSub(e){const n=new Gu(this),r=this.destination;r.add(n);const i=Zs(e,n);i!==n&&r.add(i)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function oi(t=Number.POSITIVE_INFINITY){return Lt(Fn,t)}function Xs(t,e){return e?Qs(t,e):new tt(xu(t))}function Fr(...t){let e=Number.POSITIVE_INFINITY,n=null,r=t[t.length-1];return qs(r)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof r&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof tt?t[0]:oi(e)(Xs(t,n))}function qu(){return function(e){return e.lift(new Wu(e))}}class Wu{constructor(e){this.connectable=e}call(e,n){const{connectable:r}=this;r._refCount++;const i=new ad(e,r),o=n.subscribe(i);return i.closed||(i.connection=r.connect()),o}}class ad extends et{constructor(e,n){super(e),this.connectable=n}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const n=e._refCount;if(n<=0)return void(this.connection=null);if(e._refCount=n-1,n>1)return void(this.connection=null);const{connection:r}=this,i=e._connection;this.connection=null,i&&(!r||i===r)&&i.unsubscribe()}}class ud extends tt{constructor(e,n){super(),this.source=e,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new Ae,e.add(this.source.subscribe(new cd(this.getSubject(),this))),e.closed&&(this._connection=null,e=Ae.EMPTY)),e}refCount(){return qu()(this)}}const ld=(()=>{const t=ud.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class cd extends Jc{constructor(e,n){super(e),this.connectable=n}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const n=e._connection;e._refCount=0,e._subject=null,e._connection=null,n&&n.unsubscribe()}}}class fd{constructor(e,n){this.subjectFactory=e,this.selector=n}call(e,n){const{selector:r}=this,i=this.subjectFactory(),o=r(i).subscribe(e);return o.add(n.subscribe(i)),o}}function hd(){return new So}function qe(t){for(let e in t)if(t[e]===qe)return e;throw Error("Could not find renamed property on target object.")}function $e(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map($e).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function ta(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const Ro=qe({__forward_ref__:qe});function na(t){return t.__forward_ref__=na,t.toString=function(){return $e(this())},t}function ve(t){return function Yu(t){return"function"==typeof t&&t.hasOwnProperty(Ro)&&t.__forward_ref__===na}(t)?t():t}class Y extends Error{constructor(e,n){super(function Vi(t,e){return`NG0${Math.abs(t)}${e?": "+e:""}`}(e,n)),this.code=e}}function Mt(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():function de(t){return"string"==typeof t?t:null==t?"":String(t)}(t)}function ra(t,e){const n=e?` in ${e}`:"";throw new Y(-201,`No provider for ${Mt(t)} found${n}`)}function un(t,e){null==t&&function ze(t,e,n,r){throw new Error(`ASSERTION ERROR: ${t}`+(null==r?"":` [Expected=> ${n} ${r} ${e} <=Actual]`))}(e,t,null,"!=")}function Ye(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ur(t){return{providers:t.providers||[],imports:t.imports||[]}}function ji(t){return Ed(t,aa)||Ed(t,Ku)}function Ed(t,e){return t.hasOwnProperty(e)?t[e]:null}function _d(t){return t&&(t.hasOwnProperty(ua)||t.hasOwnProperty(Dd))?t[ua]:null}const aa=qe({\u0275prov:qe}),ua=qe({\u0275inj:qe}),Ku=qe({ngInjectableDef:qe}),Dd=qe({ngInjectorDef:qe});var me=(()=>((me=me||{})[me.Default=0]="Default",me[me.Host=1]="Host",me[me.Self=2]="Self",me[me.SkipSelf=4]="SkipSelf",me[me.Optional=8]="Optional",me))();let No;function yn(t){const e=No;return No=t,e}function Id(t,e,n){const r=ji(t);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&me.Optional?null:void 0!==e?e:void ra($e(t),"Injector")}function Lr(t){return{toString:t}.toString()}var xn=(()=>((xn=xn||{})[xn.OnPush=0]="OnPush",xn[xn.Default=1]="Default",xn))(),vn=(()=>(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(vn||(vn={})),vn))();const pg="undefined"!=typeof globalThis&&globalThis,gg="undefined"!=typeof window&&window,Td="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,We=pg||"undefined"!=typeof global&&global||gg||Td,si={},Qe=[],Fo=qe({\u0275cmp:qe}),Hi=qe({\u0275dir:qe}),Xu=qe({\u0275pipe:qe}),Ju=qe({\u0275mod:qe}),kn=qe({\u0275fac:qe}),Lo=qe({__NG_ELEMENT_ID__:qe});let mg=0;function ca(t){return Lr(()=>{const n={},r={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===xn.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Qe,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||vn.Emulated,id:"c",styles:t.styles||Qe,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,o=t.features,u=t.pipes;return r.id+=mg++,r.inputs=Rd(t.inputs,n),r.outputs=Rd(t.outputs),o&&o.forEach(l=>l(r)),r.directiveDefs=i?()=>("function"==typeof i?i():i).map(Cd):null,r.pipeDefs=u?()=>("function"==typeof u?u():u).map(Ad):null,r})}function Cd(t){return Rt(t)||function xr(t){return t[Hi]||null}(t)}function Ad(t){return function lr(t){return t[Xu]||null}(t)}const Md={};function ai(t){return Lr(()=>{const e={type:t.type,bootstrap:t.bootstrap||Qe,declarations:t.declarations||Qe,imports:t.imports||Qe,exports:t.exports||Qe,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(Md[t.id]=t.type),e})}function Rd(t,e){if(null==t)return si;const n={};for(const r in t)if(t.hasOwnProperty(r)){let i=t[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,e&&(e[i]=o)}return n}function Rt(t){return t[Fo]||null}function ln(t,e){const n=t[Ju]||null;if(!n&&!0===e)throw new Error(`Type ${$e(t)} does not have '\u0275mod' property.`);return n}function _n(t){return Array.isArray(t)&&"object"==typeof t[1]}function at(t){return Array.isArray(t)&&!0===t[1]}function dr(t){return 0!=(8&t.flags)}function Bo(t){return 2==(2&t.flags)}function Vo(t){return 1==(1&t.flags)}function Dn(t){return null!==t.template}function Od(t){return 0!=(512&t[2])}function Hr(t,e){return t.hasOwnProperty(kn)?t[kn]:null}class tl{constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function ci(){return Uo}function Uo(t){return t.type.prototype.ngOnChanges&&(t.setInput=nl),kd}function kd(){const t=ut(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===si)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function nl(t,e,n,r){const i=ut(t)||function Ur(t,e){return t[fr]=e}(t,{previous:si,current:null}),o=i.current||(i.current={}),u=i.previous,l=this.declaredInputs[n],d=u[l];o[l]=new tl(d&&d.currentValue,e,u===si),t[r]=e}ci.ngInherit=!0;const fr="__ngSimpleChanges__";function ut(t){return t[fr]||null}let $o;function it(t){return!!t.listen}const Gr={createRenderer:(t,e)=>function ma(){return void 0!==$o?$o:"undefined"!=typeof document?document:void 0}()};function pt(t){for(;Array.isArray(t);)t=t[0];return t}function Qt(t,e){return pt(e[t.index])}function di(t,e){return t.data[e]}function kt(t,e){const n=e[t];return _n(n)?n:n[0]}function ya(t){return 4==(4&t[2])}function Qi(t){return 128==(128&t[2])}function hr(t,e){return null==e?null:t[e]}function zo(t){t[18]=0}function In(t,e){t[5]+=e;let n=t,r=t[3];for(;null!==r&&(1===e&&1===n[5]||-1===e&&0===n[5]);)r[5]+=e,n=r,r=r[3]}const Z={lFrame:wa(null),bindingsEnabled:!0};function Ea(){return Z.bindingsEnabled}function F(){return Z.lFrame.lView}function Me(){return Z.lFrame.tView}function gt(){let t=_a();for(;null!==t&&64===t.type;)t=t.parent;return t}function _a(){return Z.lFrame.currentTNode}function Bn(t,e){const n=Z.lFrame;n.currentTNode=t,n.isParent=e}function qo(){return Z.lFrame.isParent}function gi(t,e){const n=Z.lFrame;n.bindingIndex=n.bindingRootIndex=t,Vt(e)}function Vt(t){Z.lFrame.currentDirectiveIndex=t}function Xi(){return Z.lFrame.currentQueryIndex}function Ta(t){Z.lFrame.currentQueryIndex=t}function Xd(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function sl(t,e,n){if(n&me.SkipSelf){let i=e,o=t;for(;!(i=i.parent,null!==i||n&me.Host||(i=Xd(o),null===i||(o=o[15],10&i.type))););if(null===i)return!1;e=i,t=o}const r=Z.lFrame=al();return r.currentTNode=e,r.lView=t,!0}function Ji(t){const e=al(),n=t[1];Z.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function al(){const t=Z.lFrame,e=null===t?null:t.child;return null===e?wa(t):e}function wa(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function Yo(){const t=Z.lFrame;return Z.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const $r=Yo;function Qo(){const t=Yo();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function pr(t){Z.lFrame.selectedIndex=t}function eo(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n<r;n++){const o=t.data[n].type.prototype,{ngAfterContentInit:u,ngAfterContentChecked:l,ngAfterViewInit:d,ngAfterViewChecked:p,ngOnDestroy:m}=o;u&&(t.contentHooks||(t.contentHooks=[])).push(-n,u),l&&((t.contentHooks||(t.contentHooks=[])).push(n,l),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,l)),d&&(t.viewHooks||(t.viewHooks=[])).push(-n,d),p&&((t.viewHooks||(t.viewHooks=[])).push(n,p),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,p)),null!=m&&(t.destroyHooks||(t.destroyHooks=[])).push(n,m)}}function Ko(t,e,n){ba(t,e,3,n)}function to(t,e,n,r){(3&t[2])===n&&ba(t,e,n,r)}function Zo(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function ba(t,e,n,r){const o=null!=r?r:-1,u=e.length-1;let l=0;for(let d=void 0!==r?65535&t[18]:0;d<u;d++)if("number"==typeof e[d+1]){if(l=e[d],null!=r&&l>=r)break}else e[d]<0&&(t[18]+=65536),(l<o||-1==o)&&(af(t,n,e,d),t[18]=(4294901760&t[18])+d+2),d++}function af(t,e,n,r){const i=n[r]<0,o=n[r+1],l=t[i?-n[r]:n[r]];if(i){if(t[2]>>11<t[18]>>16&&(3&t[2])===e){t[2]+=2048;try{o.call(l)}finally{}}}else try{o.call(l)}finally{}}class no{constructor(e,n,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function mi(t,e,n){const r=it(t);let i=0;for(;i<n.length;){const o=n[i];if("number"==typeof o){if(0!==o)break;i++;const u=n[i++],l=n[i++],d=n[i++];r?t.setAttribute(e,l,d,u):e.setAttributeNS(u,l,d)}else{const u=o,l=n[++i];Aa(u)?r&&t.setProperty(e,u,l):r?t.setAttribute(e,u,l):e.setAttribute(u,l),i++}}return i}function cl(t){return 3===t||4===t||6===t}function Aa(t){return 64===t.charCodeAt(0)}function Xo(t,e){if(null!==e&&0!==e.length)if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let r=0;r<e.length;r++){const i=e[r];"number"==typeof i?n=i:0===n||dl(t,n,i,null,-1===n||2===n?e[++r]:null)}}return t}function dl(t,e,n,r,i){let o=0,u=t.length;if(-1===e)u=-1;else for(;o<t.length;){const l=t[o++];if("number"==typeof l){if(l===e){u=-1;break}if(l>e){u=o-1;break}}}for(;o<t.length;){const l=t[o];if("number"==typeof l)break;if(l===n){if(null===r)return void(null!==i&&(t[o+1]=i));if(r===t[o+1])return void(t[o+2]=i)}o++,null!==r&&o++,null!==i&&o++}-1!==u&&(t.splice(u,0,e),o=u+1),t.splice(o++,0,n),null!==r&&t.splice(o++,0,r),null!==i&&t.splice(o++,0,i)}function fl(t){return-1!==t}function yi(t){return 32767&t}function vi(t,e){let n=function cf(t){return t>>16}(t),r=e;for(;n>0;)r=r[15],n--;return r}let Ma=!0;function Jo(t){const e=Ma;return Ma=t,e}let df=0;function Ei(t,e){const n=ts(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,es(r.data,t),es(e,null),es(r.blueprint,null));const i=_i(t,e),o=t.injectorIndex;if(fl(i)){const u=yi(i),l=vi(i,e),d=l[1].data;for(let p=0;p<8;p++)e[o+p]=l[u+p]|d[u+p]}return e[o+8]=i,o}function es(t,e){t.push(0,0,0,0,0,0,0,0,e)}function ts(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function _i(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,r=null,i=e;for(;null!==i;){const o=i[1],u=o.type;if(r=2===u?o.declTNode:1===u?i[6]:null,null===r)return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function ro(t,e,n){!function ff(t,e,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Lo)&&(r=n[Lo]),null==r&&(r=n[Lo]=df++);const i=255&r;e.data[t+(i>>5)]|=1<<i}(t,e,n)}function Ra(t,e,n){if(n&me.Optional)return t;ra(e,"NodeInjector")}function gl(t,e,n,r){if(n&me.Optional&&void 0===r&&(r=null),0==(n&(me.Self|me.Host))){const i=t[9],o=yn(void 0);try{return i?i.get(e,r,n&me.Optional):Id(e,r,n&me.Optional)}finally{yn(o)}}return Ra(r,e,n)}function ml(t,e,n,r=me.Default,i){if(null!==t){const o=function pf(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(Lo)?t[Lo]:void 0;return"number"==typeof e?e>=0?255&e:hf:e}(n);if("function"==typeof o){if(!sl(e,t,r))return r&me.Host?Ra(i,n,r):gl(e,n,r,i);try{const u=o(r);if(null!=u||r&me.Optional)return u;ra(n)}finally{$r()}}else if("number"==typeof o){let u=null,l=ts(t,e),d=-1,p=r&me.Host?e[16][6]:null;for((-1===l||r&me.SkipSelf)&&(d=-1===l?_i(t,e):e[l+8],-1!==d&&El(r,!1)?(u=e[1],l=yi(d),e=vi(d,e)):l=-1);-1!==l;){const m=e[1];if(vl(o,l,m.data)){const E=yl(l,e,n,u,r,p);if(E!==Oa)return E}d=e[l+8],-1!==d&&El(r,e[1].data[l+8]===p)&&vl(o,l,e)?(u=m,l=yi(d),e=vi(d,e)):l=-1}}}return gl(e,n,r,i)}const Oa={};function hf(){return new Di(gt(),F())}function yl(t,e,n,r,i,o){const u=e[1],l=u.data[t+8],m=ns(l,u,n,null==r?Bo(l)&&Ma:r!=u&&0!=(3&l.type),i&me.Host&&o===l);return null!==m?io(e,u,m,l):Oa}function ns(t,e,n,r,i){const o=t.providerIndexes,u=e.data,l=1048575&o,d=t.directiveStart,m=o>>20,D=i?l+m:t.directiveEnd;for(let w=r?l:l+m;w<D;w++){const b=u[w];if(w<d&&n===b||w>=d&&b.type===n)return w}if(i){const w=u[d];if(w&&Dn(w)&&w.type===n)return d}return null}function io(t,e,n,r){let i=t[n];const o=e.data;if(function uf(t){return t instanceof no}(i)){const u=i;u.resolving&&function cg(t,e){const n=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new Y(-200,`Circular dependency in DI detected for ${t}${n}`)}(Mt(o[n]));const l=Jo(u.canSeeViewProviders);u.resolving=!0;const d=u.injectImpl?yn(u.injectImpl):null;sl(t,r,me.Default);try{i=t[n]=u.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&function sf(t,e,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(r){const u=Uo(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,u),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,u)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o))}(n,o[n],e)}finally{null!==d&&yn(d),Jo(l),u.resolving=!1,$r()}}return i}function vl(t,e,n){return!!(n[e+(t>>5)]&1<<t)}function El(t,e){return!(t&me.Self||t&me.Host&&e)}class Di{constructor(e,n){this._tNode=e,this._lView=n}get(e,n,r){return ml(this._tNode,this._lView,e,r,n)}}class Fe{constructor(e,n){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=Ye({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}function fn(t,e){void 0===e&&(e=t);for(let n=0;n<t.length;n++){let r=t[n];Array.isArray(r)?(e===t&&(e=t.slice(0,n)),fn(r,e)):e!==t&&e.push(r)}return e}function Tn(t,e){t.forEach(n=>Array.isArray(n)?Tn(n,e):e(n))}function rs(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function is(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}const uo={},lo="ngTempTokenPath",ja=/\n/gm,wl="__source",bl=qe({provide:String,useValue:qe});let wi;function Sl(t){const e=wi;return wi=t,e}function Tf(t,e=me.Default){if(void 0===wi)throw new Y(203,"");return null===wi?Id(t,void 0,e):wi.get(t,e&me.Optional?null:void 0,e)}function Se(t,e=me.Default){return(function la(){return No}()||Tf)(ve(t),e)}const ls=Se;function Ua(t){const e=[];for(let n=0;n<t.length;n++){const r=ve(t[n]);if(Array.isArray(r)){if(0===r.length)throw new Y(900,"");let i,o=me.Default;for(let u=0;u<r.length;u++){const l=r[u],d=Cl(l);"number"==typeof d?-1===d?i=l.token:o|=d:i=l}e.push(Se(i,o))}else e.push(Se(r))}return e}function Cl(t){return t.__NG_DI_FLAG__}var tn=(()=>((tn=tn||{})[tn.Important=1]="Important",tn[tn.DashCase=2]="DashCase",tn))();const Ll="__ngContext__";function Ot(t,e){t[Ll]=e}function Qa(t){const e=function ho(t){return t[Ll]||null}(t);return e?Array.isArray(e)?e:e.lView:null}function a(t,e){return undefined(t,e)}function g(t){const e=t[3];return at(e)?e[3]:e}function _(t){return T(t[13])}function I(t){return T(t[4])}function T(t){for(;null!==t&&!at(t);)t=t[4];return t}function S(t,e,n,r,i){if(null!=r){let o,u=!1;at(r)?o=r:_n(r)&&(u=!0,r=r[0]);const l=pt(r);0===t&&null!==n?null==i?ke(e,n,l):je(e,n,l,i||null,!0):1===t&&null!==n?je(e,n,l,i||null,!0):2===t?function ps(t,e,n){const r=A(t,e);r&&function x(t,e,n,r){it(t)?t.removeChild(e,n,r):e.removeChild(n)}(t,r,e,n)}(e,l,u):3===t&&e.destroyNode(l),null!=o&&function jl(t,e,n,r,i){const o=n[7];o!==pt(n)&&S(e,t,r,o,i);for(let l=10;l<n.length;l++){const d=n[l];po(d[1],d,t,e,r,o)}}(e,t,o,n,i)}}function P(t,e,n){if(it(t))return t.createElement(e,n);{const r=null!==n?function Wi(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(n):null;return null===r?t.createElement(e):t.createElementNS(r,e)}}function Ve(t,e){const n=t[9],r=n.indexOf(e),i=e[3];1024&e[2]&&(e[2]&=-1025,In(i,-1)),n.splice(r,1)}function xe(t,e){if(t.length<=10)return;const n=10+e,r=t[n];if(r){const i=r[17];null!==i&&i!==t&&Ve(i,r),e>0&&(t[n-1][4]=r[4]);const o=is(t,10+e);!function B(t,e){po(t,e,e[11],2,null,null),e[0]=null,e[6]=null}(r[1],r);const u=o[19];null!==u&&u.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function q(t,e){if(!(256&e[2])){const n=e[11];it(n)&&n.destroyNode&&po(t,e,n,3,null,null),function j(t){let e=t[13];if(!e)return te(t[1],t);for(;e;){let n=null;if(_n(e))n=e[13];else{const r=e[10];r&&(n=r)}if(!n){for(;e&&!e[4]&&e!==t;)_n(e)&&te(e[1],e),e=e[3];null===e&&(e=t),_n(e)&&te(e[1],e),n=e&&e[4]}e=n}}(e)}}function te(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function z(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let r=0;r<n.length;r+=2){const i=e[n[r]];if(!(i instanceof no)){const o=n[r+1];if(Array.isArray(o))for(let u=0;u<o.length;u+=2){const l=i[o[u]],d=o[u+1];try{d.call(l)}finally{}}else try{o.call(i)}finally{}}}}(t,e),function re(t,e){const n=t.cleanup,r=e[7];let i=-1;if(null!==n)for(let o=0;o<n.length-1;o+=2)if("string"==typeof n[o]){const u=n[o+1],l="function"==typeof u?u(e):pt(e[u]),d=r[i=n[o+2]],p=n[o+3];"boolean"==typeof p?l.removeEventListener(n[o],d,p):p>=0?r[i=p]():r[i=-p].unsubscribe(),o+=2}else{const u=r[i=n[o+1]];n[o].call(u)}if(null!==r){for(let o=i+1;o<r.length;o++)r[o]();e[7]=null}}(t,e),1===e[1].type&&it(e[11])&&e[11].destroy();const n=e[17];if(null!==n&&at(e[3])){n!==e[3]&&Ve(n,e);const r=e[19];null!==r&&r.detachView(t)}}}function ee(t,e,n){return function oe(t,e,n){let r=e;for(;null!==r&&40&r.type;)r=(e=r).parent;if(null===r)return n[0];if(2&r.flags){const i=t.data[r.directiveStart].encapsulation;if(i===vn.None||i===vn.Emulated)return null}return Qt(r,n)}(t,e.parent,n)}function je(t,e,n,r,i){it(t)?t.insertBefore(e,n,r,i):e.insertBefore(n,r,i)}function ke(t,e,n){it(t)?t.appendChild(e,n):e.appendChild(n)}function se(t,e,n,r,i){null!==r?je(t,e,n,r,i):ke(t,e,n)}function A(t,e){return it(t)?t.parentNode(e):e.parentNode}let Ce=function ge(t,e,n){return 40&t.type?Qt(t,n):null};function Kn(t,e,n,r){const i=ee(t,r,e),o=e[11],l=function fe(t,e,n){return Ce(t,e,n)}(r.parent||e[6],r,e);if(null!=i)if(Array.isArray(n))for(let d=0;d<n.length;d++)se(o,i,n[d],l,!1);else se(o,i,n,l,!1)}function _r(t,e){if(null!==e){const n=e.type;if(3&n)return Qt(e,t);if(4&n)return Za(-1,t[e.index]);if(8&n){const r=e.child;if(null!==r)return _r(t,r);{const i=t[e.index];return at(i)?Za(-1,i):pt(i)}}if(32&n)return a(e,t)()||pt(t[e.index]);{const r=Bl(t,e);return null!==r?Array.isArray(r)?r[0]:_r(g(t[16]),r):_r(t,e.next)}}return null}function Bl(t,e){return null!==e?t[16][6].projection[e.projection]:null}function Za(t,e){const n=10+t+1;if(n<e.length){const r=e[n],i=r[1].firstChild;if(null!==i)return _r(r,i)}return e[7]}function Xa(t,e,n,r,i,o,u){for(;null!=n;){const l=r[n.index],d=n.type;if(u&&0===e&&(l&&Ot(pt(l),r),n.flags|=4),64!=(64&n.flags))if(8&d)Xa(t,e,n.child,r,i,o,!1),S(e,t,i,l,o);else if(32&d){const p=a(n,r);let m;for(;m=p();)S(e,t,i,m,o);S(e,t,i,l,o)}else 16&d?Vl(t,e,r,n,i,o):S(e,t,i,l,o);n=u?n.projectionNext:n.next}}function po(t,e,n,r,i,o){Xa(n,r,t.firstChild,e,i,o,!1)}function Vl(t,e,n,r,i,o){const u=n[16],d=u[6].projection[r.projection];if(Array.isArray(d))for(let p=0;p<d.length;p++)S(e,t,i,d[p],o);else Xa(t,e,d,u[3],i,o,!0)}function Ja(t,e,n){it(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function eu(t,e,n){it(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}function Hf(t){return t.ngOriginalError}function EI(t,...e){t.error(...e)}class ou{constructor(){this._console=console}handleError(e){const n=this._findOriginalError(e),r=function vI(t){return t&&t.ngErrorLogger||EI}(e);r(this._console,"ERROR",e),n&&r(this._console,"ORIGINAL ERROR",n)}_findOriginalError(e){let n=e&&Hf(e);for(;n&&Hf(n);)n=Hf(n);return n||null}}const SI=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(We))();function Tr(t){return t instanceof Function?t():t}function cm(t,e,n){let r=t.length;for(;;){const i=t.indexOf(e,n);if(-1===i)return i;if(0===i||t.charCodeAt(i-1)<=32){const o=e.length;if(i+o===r||t.charCodeAt(i+o)<=32)return i}n=i+1}}const dm="ng-template";function RI(t,e,n){let r=0;for(;r<t.length;){let i=t[r++];if(n&&"class"===i){if(i=t[r],-1!==cm(i.toLowerCase(),e,0))return!0}else if(1===i){for(;r<t.length&&"string"==typeof(i=t[r++]);)if(i.toLowerCase()===e)return!0;return!1}}return!1}function fm(t){return 4===t.type&&t.value!==dm}function OI(t,e,n){return e===(4!==t.type||n?t.value:dm)}function PI(t,e,n){let r=4;const i=t.attrs||[],o=function LI(t){for(let e=0;e<t.length;e++)if(cl(t[e]))return e;return t.length}(i);let u=!1;for(let l=0;l<e.length;l++){const d=e[l];if("number"!=typeof d){if(!u)if(4&r){if(r=2|1&r,""!==d&&!OI(t,d,n)||""===d&&1===e.length){if(Jn(r))return!1;u=!0}}else{const p=8&r?d:e[++l];if(8&r&&null!==t.attrs){if(!RI(t.attrs,p,n)){if(Jn(r))return!1;u=!0}continue}const E=NI(8&r?"class":d,i,fm(t),n);if(-1===E){if(Jn(r))return!1;u=!0;continue}if(""!==p){let D;D=E>o?"":i[E+1].toLowerCase();const w=8&r?D:null;if(w&&-1!==cm(w,p,0)||2&r&&p!==D){if(Jn(r))return!1;u=!0}}}}else{if(!u&&!Jn(r)&&!Jn(d))return!1;if(u&&Jn(d))continue;u=!1,r=d|1&r}}return Jn(r)||u}function Jn(t){return 0==(1&t)}function NI(t,e,n,r){if(null===e)return-1;let i=0;if(r||!n){let o=!1;for(;i<e.length;){const u=e[i];if(u===t)return i;if(3===u||6===u)o=!0;else{if(1===u||2===u){let l=e[++i];for(;"string"==typeof l;)l=e[++i];continue}if(4===u)break;if(0===u){i+=4;continue}}i+=o?1:2}return-1}return function xI(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const r=t[n];if("number"==typeof r)return-1;if(r===e)return n;n++}return-1}(e,t)}function hm(t,e,n=!1){for(let r=0;r<e.length;r++)if(PI(t,e[r],n))return!0;return!1}function pm(t,e){return t?":not("+e.trim()+")":e}function BI(t){let e=t[0],n=1,r=2,i="",o=!1;for(;n<t.length;){let u=t[n];if("string"==typeof u)if(2&r){const l=t[++n];i+="["+u+(l.length>0?'="'+l+'"':"")+"]"}else 8&r?i+="."+u:4&r&&(i+=" "+u);else""!==i&&!Jn(u)&&(e+=pm(o,i),i=""),r=u,o=o||!Jn(r);n++}return""!==i&&(e+=pm(o,i)),e}const ye={};function Sm(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const i=n[r],o=n[r+1];if(-1!==o){const u=t.data[o];Ta(i),u.contentQueries(2,e[o],o)}}}function su(t,e,n,r,i,o,u,l,d,p){const m=e.blueprint.slice();return m[0]=i,m[2]=140|r,zo(m),m[3]=m[15]=t,m[8]=n,m[10]=u||t&&t[10],m[11]=l||t&&t[11],m[12]=d||t&&t[12]||null,m[9]=p||t&&t[9]||null,m[6]=o,m[16]=2==e.type?t[16]:m,m}function ms(t,e,n,r,i){let o=t.data[e];if(null===o)o=function Jf(t,e,n,r,i){const o=_a(),u=qo(),d=t.data[e]=function rT(t,e,n,r,i,o){return{type:n,index:r,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,u?o:o&&o.parent,n,e,r,i);return null===t.firstChild&&(t.firstChild=d),null!==o&&(u?null==o.child&&null!==d.parent&&(o.child=d):null===o.next&&(o.next=d)),d}(t,e,n,r,i),function Zi(){return Z.lFrame.inI18n}()&&(o.flags|=64);else if(64&o.type){o.type=n,o.value=r,o.attrs=i;const u=function hi(){const t=Z.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}();o.injectorIndex=null===u?-1:u.injectorIndex}return Bn(o,!0),o}function ys(t,e,n,r){if(0===n)return-1;const i=e.length;for(let o=0;o<n;o++)e.push(r),t.blueprint.push(r),t.data.push(null);return i}function au(t,e,n){Ji(e);try{const r=t.viewQuery;null!==r&&uh(1,r,n);const i=t.template;null!==i&&Cm(t,e,i,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Sm(t,e),t.staticViewQueries&&uh(2,t.viewQuery,n);const o=t.components;null!==o&&function eT(t,e){for(let n=0;n<e.length;n++)DT(t,e[n])}(e,o)}catch(r){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),r}finally{e[2]&=-5,Qo()}}function vs(t,e,n,r){const i=e[2];if(256!=(256&i)){Ji(e);try{zo(e),function il(t){return Z.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==n&&Cm(t,e,n,2,r);const u=3==(3&i);if(u){const p=t.preOrderCheckHooks;null!==p&&Ko(e,p,null)}else{const p=t.preOrderHooks;null!==p&&to(e,p,0,null),Zo(e,0)}if(function ET(t){for(let e=_(t);null!==e;e=I(e)){if(!e[2])continue;const n=e[9];for(let r=0;r<n.length;r++){const i=n[r],o=i[3];0==(1024&i[2])&&In(o,1),i[2]|=1024}}}(e),function vT(t){for(let e=_(t);null!==e;e=I(e))for(let n=10;n<e.length;n++){const r=e[n],i=r[1];Qi(r)&&vs(i,r,i.template,r[8])}}(e),null!==t.contentQueries&&Sm(t,e),u){const p=t.contentCheckHooks;null!==p&&Ko(e,p)}else{const p=t.contentHooks;null!==p&&to(e,p,1),Zo(e,1)}!function XI(t,e){const n=t.hostBindingOpCodes;if(null!==n)try{for(let r=0;r<n.length;r++){const i=n[r];if(i<0)pr(~i);else{const o=i,u=n[++r],l=n[++r];gi(u,o),l(2,e[o])}}}finally{pr(-1)}}(t,e);const l=t.components;null!==l&&function JI(t,e){for(let n=0;n<e.length;n++)_T(t,e[n])}(e,l);const d=t.viewQuery;if(null!==d&&uh(2,d,r),u){const p=t.viewCheckHooks;null!==p&&Ko(e,p)}else{const p=t.viewHooks;null!==p&&to(e,p,2),Zo(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),e[2]&=-73,1024&e[2]&&(e[2]&=-1025,In(e[3],-1))}finally{Qo()}}}function tT(t,e,n,r){const i=e[10],u=ya(e);try{!u&&i.begin&&i.begin(),u&&au(t,e,r),vs(t,e,n,r)}finally{!u&&i.end&&i.end()}}function Cm(t,e,n,r,i){const o=function jt(){return Z.lFrame.selectedIndex}(),u=2&r;try{pr(-1),u&&e.length>20&&function gm(t,e,n,r){if(!r)if(3==(3&e[2])){const o=t.preOrderCheckHooks;null!==o&&Ko(e,o,n)}else{const o=t.preOrderHooks;null!==o&&to(e,o,0,n)}pr(n)}(t,e,20,!1),n(r,i)}finally{pr(o)}}function Mm(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=Wl(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function Wl(t,e,n,r,i,o,u,l,d,p){const m=20+r,E=m+i,D=function nT(t,e){const n=[];for(let r=0;r<e;r++)n.push(r<t?null:ye);return n}(m,E),w="function"==typeof p?p():p;return D[1]={type:t,blueprint:D,template:n,queries:null,viewQuery:l,declTNode:e,data:D.slice().fill(null,m),bindingStartIndex:m,expandoStartIndex:E,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof u?u():u,firstChild:null,schemas:d,consts:w,incompleteFirstPass:!1}}function Pm(t,e,n,r){const i=Um(e);null===n?i.push(r):(i.push(n),t.firstCreatePass&&Gm(t).push(r,i.length-1))}function Nm(t,e,n){for(let r in t)if(t.hasOwnProperty(r)){const i=t[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(e,i):n[r]=[e,i]}return n}function Lm(t,e,n,r,i,o){const u=o.hostBindings;if(u){let l=t.hostBindingOpCodes;null===l&&(l=t.hostBindingOpCodes=[]);const d=~e.index;(function lT(t){let e=t.length;for(;e>0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(l)!=d&&l.push(d),l.push(r,i,u)}}function xm(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function km(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function pT(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;Dn(e)&&(n[""]=t)}}function Bm(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function Vm(t,e,n,r,i){t.data[r]=i;const o=i.factory||(i.factory=Hr(i.type)),u=new no(o,Dn(i),null);t.blueprint[r]=u,n[r]=u,Lm(t,e,0,r,ys(t,n,i.hostVars,ye),i)}function gT(t,e,n){const r=Qt(e,t),i=Mm(n),o=t[10],u=Yl(t,su(t,i,null,n.onPush?64:16,r,e,o,o.createRenderer(r,n),null,null));t[e.index]=u}function mT(t,e,n,r,i,o){const u=o[e];if(null!==u){const l=r.setInput;for(let d=0;d<u.length;){const p=u[d++],m=u[d++],E=u[d++];null!==l?r.setInput(n,E,p,m):n[m]=E}}}function yT(t,e){let n=null,r=0;for(;r<e.length;){const i=e[r];if(0!==i)if(5!==i){if("number"==typeof i)break;t.hasOwnProperty(i)&&(null===n&&(n=[]),n.push(i,t[i],e[r+1])),r+=2}else r+=2;else r+=4}return n}function _T(t,e){const n=kt(e,t);if(Qi(n)){const r=n[1];80&n[2]?vs(r,n,r.template,n[8]):n[5]>0&&ih(n)}}function ih(t){for(let r=_(t);null!==r;r=I(r))for(let i=10;i<r.length;i++){const o=r[i];if(1024&o[2]){const u=o[1];vs(u,o,u.template,o[8])}else o[5]>0&&ih(o)}const n=t[1].components;if(null!==n)for(let r=0;r<n.length;r++){const i=kt(n[r],t);Qi(i)&&i[5]>0&&ih(i)}}function DT(t,e){const n=kt(e,t),r=n[1];(function IT(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])})(r,n),au(r,n,n[8])}function Yl(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function oh(t){for(;t;){t[2]|=64;const e=g(t);if(Od(t)&&!e)return t;t=e}return null}function Hm(t){!function sh(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],r=Qa(n),i=r[1];tT(i,r,i.template,n)}}(t[8])}function uh(t,e,n){Ta(0),e(t,n)}const wT=(()=>Promise.resolve(null))();function Um(t){return t[7]||(t[7]=[])}function Gm(t){return t.cleanup||(t.cleanup=[])}function zm(t,e){const n=t[9],r=n?n.get(ou,null):null;r&&r.handleError(e)}function qm(t,e,n,r,i){for(let o=0;o<n.length;){const u=n[o++],l=n[o++],d=e[u],p=t.data[u];null!==p.setInput?p.setInput(d,i,r,l):d[l]=i}}function Ql(t,e,n){let r=n?t.styles:null,i=n?t.classes:null,o=0;if(null!==e)for(let u=0;u<e.length;u++){const l=e[u];"number"==typeof l?o=l:1==o?i=ta(i,l):2==o&&(r=ta(r,l+": "+e[++u]+";"))}n?t.styles=r:t.stylesWithoutHost=r,n?t.classes=i:t.classesWithoutHost=i}const lh=new Fe("INJECTOR",-1);class Wm{get(e,n=uo){if(n===uo){const r=new Error(`NullInjectorError: No provider for ${$e(e)}!`);throw r.name="NullInjectorError",r}return n}}const ch=new Fe("Set Injector scope."),uu={},CT={};let dh;function Ym(){return void 0===dh&&(dh=new Wm),dh}function Qm(t,e=null,n=null,r){const i=Km(t,e,n,r);return i._resolveInjectorDefTypes(),i}function Km(t,e=null,n=null,r){return new AT(t,n,e||Ym(),r)}class AT{constructor(e,n,r,i=null){this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const o=[];n&&Tn(n,l=>this.processProvider(l,e,n)),Tn([e],l=>this.processInjectorType(l,[],o)),this.records.set(lh,Es(void 0,this));const u=this.records.get(ch);this.scope=null!=u?u.value:null,this.source=i||("object"==typeof e?null:$e(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,n=uo,r=me.Default){this.assertNotDestroyed();const i=Sl(this),o=yn(void 0);try{if(!(r&me.SkipSelf)){let l=this.records.get(e);if(void 0===l){const d=function xT(t){return"function"==typeof t||"object"==typeof t&&t instanceof Fe}(e)&&ji(e);l=d&&this.injectableDefInScope(d)?Es(fh(e),uu):null,this.records.set(e,l)}if(null!=l)return this.hydrate(e,l)}return(r&me.Self?Ym():this.parent).get(e,n=r&me.Optional&&n===uo?null:n)}catch(u){if("NullInjectorError"===u.name){if((u[lo]=u[lo]||[]).unshift($e(e)),i)throw u;return function wf(t,e,n,r){const i=t[lo];throw e[wl]&&i.unshift(e[wl]),t.message=function cs(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let i=$e(e);if(Array.isArray(e))i=e.map($e).join(" -> ");else if("object"==typeof e){let o=[];for(let u in e)if(e.hasOwnProperty(u)){let l=e[u];o.push(u+":"+("string"==typeof l?JSON.stringify(l):$e(l)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${t.replace(ja,"\n ")}`}("\n"+t.message,i,n,r),t.ngTokenPath=i,t[lo]=null,t}(u,e,"R3InjectorError",this.source)}throw u}finally{yn(o),Sl(i)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((r,i)=>e.push($e(i))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Y(205,!1)}processInjectorType(e,n,r){if(!(e=ve(e)))return!1;let i=_d(e);const o=null==i&&e.ngModule||void 0,u=void 0===o?e:o,l=-1!==r.indexOf(u);if(void 0!==o&&(i=_d(o)),null==i)return!1;if(null!=i.imports&&!l){let m;r.push(u);try{Tn(i.imports,E=>{this.processInjectorType(E,n,r)&&(void 0===m&&(m=[]),m.push(E))})}finally{}if(void 0!==m)for(let E=0;E<m.length;E++){const{ngModule:D,providers:w}=m[E];Tn(w,b=>this.processProvider(b,D,w||Qe))}}this.injectorDefTypes.add(u);const d=Hr(u)||(()=>new u);this.records.set(u,Es(d,uu));const p=i.providers;if(null!=p&&!l){const m=e;Tn(p,E=>this.processProvider(E,m,p))}return void 0!==o&&void 0!==e.providers}processProvider(e,n,r){let i=_s(e=ve(e))?e:ve(e&&e.provide);const o=function RT(t,e,n){return Xm(t)?Es(void 0,t.useValue):Es(function Zm(t,e,n){let r;if(_s(t)){const i=ve(t);return Hr(i)||fh(i)}if(Xm(t))r=()=>ve(t.useValue);else if(function PT(t){return!(!t||!t.useFactory)}(t))r=()=>t.useFactory(...Ua(t.deps||[]));else if(function OT(t){return!(!t||!t.useExisting)}(t))r=()=>Se(ve(t.useExisting));else{const i=ve(t&&(t.useClass||t.provide));if(!function FT(t){return!!t.deps}(t))return Hr(i)||fh(i);r=()=>new i(...Ua(t.deps))}return r}(t),uu)}(e);if(_s(e)||!0!==e.multi)this.records.get(i);else{let u=this.records.get(i);u||(u=Es(void 0,uu,!0),u.factory=()=>Ua(u.multi),this.records.set(i,u)),i=e,u.multi.push(e)}this.records.set(i,o)}hydrate(e,n){return n.value===uu&&(n.value=CT,n.value=n.factory()),"object"==typeof n.value&&n.value&&function LT(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(e){if(!e.providedIn)return!1;const n=ve(e.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function fh(t){const e=ji(t),n=null!==e?e.factory:Hr(t);if(null!==n)return n;if(t instanceof Fe)throw new Y(204,!1);if(t instanceof Function)return function MT(t){const e=t.length;if(e>0)throw function so(t,e){const n=[];for(let r=0;r<t;r++)n.push(e);return n}(e,"?"),new Y(204,!1);const n=function fg(t){const e=t&&(t[aa]||t[Ku]);if(e){const n=function hg(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Y(204,!1)}function Es(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Xm(t){return null!==t&&"object"==typeof t&&bl in t}function _s(t){return"function"==typeof t}let jn=(()=>{class t{static create(n,r){var i;if(Array.isArray(n))return Qm({name:""},r,n,"");{const o=null!==(i=n.name)&&void 0!==i?i:"";return Qm({name:o},n.parent,n.providers,o)}}}return t.THROW_IF_NOT_FOUND=uo,t.NULL=new Wm,t.\u0275prov=Ye({token:t,providedIn:"any",factory:()=>Se(lh)}),t.__NG_ELEMENT_ID__=-1,t})();function $T(t,e){eo(Qa(t)[1],gt())}let Kl=null;function Ds(){if(!Kl){const t=We.Symbol;if(t&&t.iterator)Kl=t.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let n=0;n<e.length;++n){const r=e[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(Kl=r)}}}return Kl}function be(t,e=me.Default){const n=F();return null===n?Se(t,e):ml(gt(),n,ve(t),e)}function Dh(t,e,n){const r=F();return function Kt(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}(r,function pi(){return Z.lFrame.bindingIndex++}(),e)&&function bn(t,e,n,r,i,o,u,l){const d=Qt(e,n);let m,p=e.inputs;!l&&null!=p&&(m=p[r])?(qm(t,n,m,r,i),Bo(e)&&function sT(t,e){const n=kt(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3&e.type&&(r=function oT(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(r),i=null!=u?u(i,e.value||"",r):i,it(o)?o.setProperty(d,r,i):Aa(r)||(d.setProperty?d.setProperty(r,i):d[r]=i))}(Me(),function nt(){const t=Z.lFrame;return di(t.tView,t.selectedIndex)}(),r,t,e,r[11],n,!1),Dh}function Ih(t,e,n,r,i){const u=i?"class":"style";qm(t,n,e.inputs[u],u,r)}function du(t,e,n,r){const i=F(),o=Me(),u=20+t,l=i[11],d=i[u]=P(l,e,function of(){return Z.lFrame.currentNamespace}()),p=o.firstCreatePass?function bw(t,e,n,r,i,o,u){const l=e.consts,p=ms(e,t,2,i,hr(l,o));return function nh(t,e,n,r){let i=!1;if(Ea()){const o=function fT(t,e,n){const r=t.directiveRegistry;let i=null;if(r)for(let o=0;o<r.length;o++){const u=r[o];hm(n,u.selectors,!1)&&(i||(i=[]),ro(Ei(n,e),t,u.type),Dn(u)?(km(t,n),i.unshift(u)):i.push(u))}return i}(t,e,n),u=null===r?null:{"":-1};if(null!==o){i=!0,Bm(n,t.data.length,o.length);for(let m=0;m<o.length;m++){const E=o[m];E.providersResolver&&E.providersResolver(E)}let l=!1,d=!1,p=ys(t,e,o.length,null);for(let m=0;m<o.length;m++){const E=o[m];n.mergedAttrs=Xo(n.mergedAttrs,E.hostAttrs),Vm(t,n,e,p,E),pT(p,E,u),null!==E.contentQueries&&(n.flags|=8),(null!==E.hostBindings||null!==E.hostAttrs||0!==E.hostVars)&&(n.flags|=128);const D=E.type.prototype;!l&&(D.ngOnChanges||D.ngOnInit||D.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index),l=!0),!d&&(D.ngOnChanges||D.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index),d=!0),p++}!function iT(t,e){const r=e.directiveEnd,i=t.data,o=e.attrs,u=[];let l=null,d=null;for(let p=e.directiveStart;p<r;p++){const m=i[p],E=m.inputs,D=null===o||fm(e)?null:yT(E,o);u.push(D),l=Nm(E,p,l),d=Nm(m.outputs,p,d)}null!==l&&(l.hasOwnProperty("class")&&(e.flags|=16),l.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=u,e.inputs=l,e.outputs=d}(t,n)}u&&function hT(t,e,n){if(e){const r=t.localNames=[];for(let i=0;i<e.length;i+=2){const o=n[e[i+1]];if(null==o)throw new Y(-301,!1);r.push(e[i],o)}}}(n,r,u)}return n.mergedAttrs=Xo(n.mergedAttrs,n.attrs),i}(e,n,p,hr(l,u)),null!==p.attrs&&Ql(p,p.attrs,!1),null!==p.mergedAttrs&&Ql(p,p.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,p),p}(u,o,i,0,e,n,r):o.data[u];Bn(p,!0);const m=p.mergedAttrs;null!==m&&mi(l,d,m);const E=p.classes;null!==E&&eu(l,d,E);const D=p.styles;return null!==D&&Ja(l,d,D),64!=(64&p.flags)&&Kn(o,i,d,p),0===function qd(){return Z.lFrame.elementDepthCount}()&&Ot(d,i),function Wd(){Z.lFrame.elementDepthCount++}(),Vo(p)&&(function eh(t,e,n){!Ea()||(function cT(t,e,n,r){const i=n.directiveStart,o=n.directiveEnd;t.firstCreatePass||Ei(n,e),Ot(r,e);const u=n.initialInputs;for(let l=i;l<o;l++){const d=t.data[l],p=Dn(d);p&&gT(e,n,d);const m=io(e,t,l,n);Ot(m,e),null!==u&&mT(0,l-i,m,d,0,u),p&&(kt(n.index,e)[8]=m)}}(t,e,n,Qt(n,e)),128==(128&n.flags)&&function dT(t,e,n){const r=n.directiveStart,i=n.directiveEnd,u=n.index,l=function Da(){return Z.lFrame.currentDirectiveIndex}();try{pr(u);for(let d=r;d<i;d++){const p=t.data[d],m=e[d];Vt(d),(null!==p.hostBindings||0!==p.hostVars||null!==p.hostAttrs)&&xm(p,m)}}finally{pr(-1),Vt(l)}}(t,e,n))}(o,i,p),function Am(t,e,n){if(dr(e)){const i=e.directiveEnd;for(let o=e.directiveStart;o<i;o++){const u=t.data[o];u.contentQueries&&u.contentQueries(1,n[o],o)}}}(o,p,i)),null!==r&&function th(t,e,n=Qt){const r=e.localNames;if(null!==r){let i=e.index+1;for(let o=0;o<r.length;o+=2){const u=r[o+1],l=-1===u?n(e,t):t[u];t[i++]=l}}}(i,p),du}function fu(){let t=gt();qo()?function Wo(){Z.lFrame.isParent=!1}():(t=t.parent,Bn(t,!1));const e=t;!function Yd(){Z.lFrame.elementDepthCount--}();const n=Me();return n.firstCreatePass&&(eo(n,t),dr(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function lf(t){return 0!=(16&t.flags)}(e)&&Ih(n,e,F(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function ll(t){return 0!=(32&t.flags)}(e)&&Ih(n,e,F(),e.stylesWithoutHost,!1),fu}function Th(t,e,n,r){return du(t,e,n,r),fu(),Th}function Sh(t){return!!t&&"function"==typeof t.then}const Aw=function Ny(t){return!!t&&"function"==typeof t.subscribe};function Ch(t,e,n,r){const i=F(),o=Me(),u=gt();return function Ly(t,e,n,r,i,o,u,l){const d=Vo(r),m=t.firstCreatePass&&Gm(t),E=e[8],D=Um(e);let w=!0;if(3&r.type||l){const O=Qt(r,e),V=l?l(O):O,R=D.length,G=l?ie=>l(pt(ie[r.index])):r.index;if(it(n)){let ie=null;if(!l&&d&&(ie=function Mw(t,e,n,r){const i=t.cleanup;if(null!=i)for(let o=0;o<i.length-1;o+=2){const u=i[o];if(u===n&&i[o+1]===r){const l=e[7],d=i[o+2];return l.length>d?l[d]:null}"string"==typeof u&&(o+=2)}return null}(t,e,i,r.index)),null!==ie)(ie.__ngLastListenerFn__||ie).__ngNextListenerFn__=o,ie.__ngLastListenerFn__=o,w=!1;else{o=Ah(r,e,E,o,!1);const we=n.listen(V,i,o);D.push(o,we),m&&m.push(i,G,R,R+1)}}else o=Ah(r,e,E,o,!0),V.addEventListener(i,o,u),D.push(o),m&&m.push(i,G,R,u)}else o=Ah(r,e,E,o,!1);const b=r.outputs;let M;if(w&&null!==b&&(M=b[i])){const O=M.length;if(O)for(let V=0;V<O;V+=2){const ot=e[M[V]][M[V+1]].subscribe(o),ct=D.length;D.push(o,ot),m&&m.push(i,r.index,ct,-(ct+1))}}}(o,i,i[11],u,t,e,!!n,r),Ch}function xy(t,e,n,r){try{return!1!==n(r)}catch(i){return zm(t,i),!1}}function Ah(t,e,n,r,i){return function o(u){if(u===Function)return r;const l=2&t.flags?kt(t.index,e):e;0==(32&e[2])&&oh(l);let d=xy(e,0,r,u),p=o.__ngNextListenerFn__;for(;p;)d=xy(e,0,p,u)&&d,p=p.__ngNextListenerFn__;return i&&!1===d&&(u.preventDefault(),u.returnValue=!1),d}}const ec="en-US";let Mv=ec;class eE{}class DS{resolveComponentFactory(e){throw function _S(t){const e=Error(`No component factory found for ${$e(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(e)}}let Ls=(()=>{class t{}return t.NULL=new DS,t})();function IS(){return xs(gt(),F())}function xs(t,e){return new yo(Qt(t,e))}let yo=(()=>{class t{constructor(n){this.nativeElement=n}}return t.__NG_ELEMENT_ID__=IS,t})();function TS(t){return t instanceof yo?t.nativeElement:t}class vu{}let SS=(()=>{class t{}return t.\u0275prov=Ye({token:t,providedIn:"root",factory:()=>null}),t})();class oc{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const CS=new oc("13.4.0"),Bh={};function sc(t,e,n,r,i=!1){for(;null!==n;){const o=e[n.index];if(null!==o&&r.push(pt(o)),at(o))for(let l=10;l<o.length;l++){const d=o[l],p=d[1].firstChild;null!==p&&sc(d[1],d,p,r)}const u=n.type;if(8&u)sc(t,e,n.child,r);else if(32&u){const l=a(n,e);let d;for(;d=l();)r.push(d)}else if(16&u){const l=Bl(e,n);if(Array.isArray(l))r.push(...l);else{const d=g(e[16]);sc(d[1],d,l,r,!0)}}n=i?n.projectionNext:n.next}return r}class Eu{constructor(e,n){this._lView=e,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,n=e[1];return sc(n,e,n.firstChild,[])}get context(){return this._lView[8]}set context(e){this._lView[8]=e}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[3];if(at(e)){const n=e[8],r=n?n.indexOf(this):-1;r>-1&&(xe(e,r),is(n,r))}this._attachedToViewContainer=!1}q(this._lView[1],this._lView)}onDestroy(e){Pm(this._lView[1],this._lView,null,e)}markForCheck(){oh(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function ah(t,e,n){const r=e[10];r.begin&&r.begin();try{vs(t,e,t.template,n)}catch(i){throw zm(e,i),i}finally{r.end&&r.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Y(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function ne(t,e){po(t,e,e[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Y(902,"");this._appRef=e}}class AS extends Eu{constructor(e){super(e),this._view=e}detectChanges(){Hm(this._view)}checkNoChanges(){}get context(){return null}}class rE extends Ls{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const n=Rt(e);return new Vh(n,this.ngModule)}}function iE(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}class Vh extends eE{constructor(e,n){super(),this.componentDef=e,this.ngModule=n,this.componentType=e.type,this.selector=function VI(t){return t.map(BI).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return iE(this.componentDef.inputs)}get outputs(){return iE(this.componentDef.outputs)}create(e,n,r,i){const o=(i=i||this.ngModule)?function RS(t,e){return{get:(n,r,i)=>{const o=t.get(n,Bh,i);return o!==Bh||r===Bh?o:e.get(n,r,i)}}}(e,i.injector):e,u=o.get(vu,Gr),l=o.get(SS,null),d=u.createRenderer(null,this.componentDef),p=this.componentDef.selectors[0][0]||"div",m=r?function Om(t,e,n){if(it(t))return t.selectRootElement(e,n===vn.ShadowDom);let r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(d,r,this.componentDef.encapsulation):P(u.createRenderer(null,this.componentDef),p,function MS(t){const e=t.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(p)),E=this.componentDef.onPush?576:528,D=function ly(t,e){return{components:[],scheduler:t||SI,clean:wT,playerHandler:e||null,flags:0}}(),w=Wl(0,null,null,1,0,null,null,null,null,null),b=su(null,w,D,E,null,null,u,d,l,o);let M,O;Ji(b);try{const V=function ay(t,e,n,r,i,o){const u=n[1];n[20]=t;const d=ms(u,20,2,"#host",null),p=d.mergedAttrs=e.hostAttrs;null!==p&&(Ql(d,p,!0),null!==t&&(mi(i,t,p),null!==d.classes&&eu(i,t,d.classes),null!==d.styles&&Ja(i,t,d.styles)));const m=r.createRenderer(t,e),E=su(n,Mm(e),null,e.onPush?64:16,n[20],d,r,m,o||null,null);return u.firstCreatePass&&(ro(Ei(d,n),u,e.type),km(u,d),Bm(d,n.length,1)),Yl(n,E),n[20]=E}(m,this.componentDef,b,u,d);if(m)if(r)mi(d,m,["ng-version",CS.full]);else{const{attrs:R,classes:G}=function jI(t){const e=[],n=[];let r=1,i=2;for(;r<t.length;){let o=t[r];if("string"==typeof o)2===i?""!==o&&e.push(o,t[++r]):8===i&&n.push(o);else{if(!Jn(i))break;i=o}r++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);R&&mi(d,m,R),G&&G.length>0&&eu(d,m,G.join(" "))}if(O=di(w,20),void 0!==n){const R=O.projection=[];for(let G=0;G<this.ngContentSelectors.length;G++){const ie=n[G];R.push(null!=ie?Array.from(ie):null)}}M=function uy(t,e,n,r,i){const o=n[1],u=function uT(t,e,n){const r=gt();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Vm(t,r,e,ys(t,e,1,null),n));const i=io(e,t,r.directiveStart,r);Ot(i,e);const o=Qt(r,e);return o&&Ot(o,e),i}(o,n,e);if(r.components.push(u),t[8]=u,i&&i.forEach(d=>d(u,e)),e.contentQueries){const d=gt();e.contentQueries(1,u,d.directiveStart)}const l=gt();return!o.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(pr(l.index),Lm(n[1],l,0,l.directiveStart,l.directiveEnd,e),xm(e,u)),u}(V,this.componentDef,b,D,[$T]),au(w,b,null)}finally{Qo()}return new PS(this.componentType,M,xs(O,b),b,O)}}class PS extends class ES{}{constructor(e,n,r,i,o){super(),this.location=r,this._rootLView=i,this._tNode=o,this.instance=n,this.hostView=this.changeDetectorRef=new AS(i),this.componentType=e}get injector(){return new Di(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}class ks{}const Bs=new Map;class aE extends ks{constructor(e,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new rE(this);const r=ln(e);this._bootstrapComponents=Tr(r.bootstrap),this._r3Injector=Km(e,n,[{provide:ks,useValue:this},{provide:Ls,useValue:this.componentFactoryResolver}],$e(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,n=jn.THROW_IF_NOT_FOUND,r=me.Default){return e===jn||e===ks||e===lh?this:this._r3Injector.get(e,n,r)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class jh extends class FS{}{constructor(e){super(),this.moduleType=e,null!==ln(e)&&function LS(t){const e=new Set;!function n(r){const i=ln(r,!0),o=i.id;null!==o&&(function oE(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${$e(e)} vs ${$e(e.name)}`)}(o,Bs.get(o),r),Bs.set(o,r));const u=Tr(i.imports);for(const l of u)e.has(l)||(e.add(l),n(l))}(t)}(e)}create(e){return new aE(this.moduleType,e)}}function Hh(t){return e=>{setTimeout(t,void 0,e)}}const Ar=class JS extends So{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,n,r){var i,o,u;let l=e,d=n||(()=>null),p=r;if(e&&"object"==typeof e){const E=e;l=null===(i=E.next)||void 0===i?void 0:i.bind(E),d=null===(o=E.error)||void 0===o?void 0:o.bind(E),p=null===(u=E.complete)||void 0===u?void 0:u.bind(E)}this.__isAsync&&(d=Hh(d),l&&(l=Hh(l)),p&&(p=Hh(p)));const m=super.subscribe({next:l,error:d,complete:p});return e instanceof Ae&&e.add(m),m}};function eC(){return this._results[Ds()]()}class Uh{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=Ds(),r=Uh.prototype;r[n]||(r[n]=eC)}get changes(){return this._changes||(this._changes=new Ar)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,n){return this._results.reduce(e,n)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,n){const r=this;r.dirty=!1;const i=fn(e);(this._changesDetected=!function vf(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){let i=t[r],o=e[r];if(n&&(i=n(i),o=n(o)),o!==i)return!1}return!0}(r._results,i,n))&&(r._results=i,r.length=i.length,r.last=i[this.length-1],r.first=i[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let Xr=(()=>{class t{}return t.__NG_ELEMENT_ID__=rC,t})();const tC=Xr,nC=class extends tC{constructor(e,n,r){super(),this._declarationLView=e,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(e){const n=this._declarationTContainer.tViews,r=su(this._declarationLView,n,e,16,null,n.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const o=this._declarationLView[19];return null!==o&&(r[19]=o.createEmbeddedView(n)),au(n,r,e),new Eu(r)}};function rC(){return ac(gt(),F())}function ac(t,e){return 4&t.type?new nC(e,t,xs(t,e)):null}let Mr=(()=>{class t{}return t.__NG_ELEMENT_ID__=iC,t})();function iC(){return gE(gt(),F())}const oC=Mr,hE=class extends oC{constructor(e,n,r){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=r}get element(){return xs(this._hostTNode,this._hostLView)}get injector(){return new Di(this._hostTNode,this._hostLView)}get parentInjector(){const e=_i(this._hostTNode,this._hostLView);if(fl(e)){const n=vi(e,this._hostLView),r=yi(e);return new Di(n[1].data[r+8],n)}return new Di(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const n=pE(this._lContainer);return null!==n&&n[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,n,r){const i=e.createEmbeddedView(n||{});return this.insert(i,r),i}createComponent(e,n,r,i,o){const u=e&&!function oo(t){return"function"==typeof t}(e);let l;if(u)l=n;else{const E=n||{};l=E.index,r=E.injector,i=E.projectableNodes,o=E.ngModuleRef}const d=u?e:new Vh(Rt(e)),p=r||this.parentInjector;if(!o&&null==d.ngModule){const D=(u?p:this.parentInjector).get(ks,null);D&&(o=D)}const m=d.create(p,i,void 0,o);return this.insert(m.hostView,l),m}insert(e,n){const r=e._lView,i=r[1];if(function cn(t){return at(t[3])}(r)){const m=this.indexOf(e);if(-1!==m)this.detach(m);else{const E=r[3],D=new hE(E,E[6],E[3]);D.detach(D.indexOf(e))}}const o=this._adjustIndex(n),u=this._lContainer;!function Re(t,e,n,r){const i=10+r,o=n.length;r>0&&(n[i-1][4]=e),r<o-10?(e[4]=n[i],rs(n,10+r,e)):(n.push(e),e[4]=null),e[3]=n;const u=e[17];null!==u&&n!==u&&function ae(t,e){const n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(u,e);const l=e[19];null!==l&&l.insertView(t),e[2]|=128}(i,r,u,o);const l=Za(o,u),d=r[11],p=A(d,u[7]);return null!==p&&function $(t,e,n,r,i,o){r[0]=i,r[6]=e,po(t,r,n,1,i,o)}(i,u[6],d,r,p,l),e.attachToViewContainerRef(),rs(Gh(u),o,e),e}move(e,n){return this.insert(e,n)}indexOf(e){const n=pE(this._lContainer);return null!==n?n.indexOf(e):-1}remove(e){const n=this._adjustIndex(e,-1),r=xe(this._lContainer,n);r&&(is(Gh(this._lContainer),n),q(r[1],r))}detach(e){const n=this._adjustIndex(e,-1),r=xe(this._lContainer,n);return r&&null!=is(Gh(this._lContainer),n)?new Eu(r):null}_adjustIndex(e,n=0){return null==e?this.length+n:e}};function pE(t){return t[8]}function Gh(t){return t[8]||(t[8]=[])}function gE(t,e){let n;const r=e[t.index];if(at(r))n=r;else{let i;if(8&t.type)i=pt(r);else{const o=e[11];i=o.createComment("");const u=Qt(t,e);je(o,A(o,u),i,function Q(t,e){return it(t)?t.nextSibling(e):e.nextSibling}(o,u),!1)}e[t.index]=n=function jm(t,e,n,r){return new Array(t,!0,!1,e,null,0,r,n,null,null)}(r,e,i,t),Yl(e,n)}return new hE(n,t,e)}class $h{constructor(e){this.queryList=e,this.matches=null}clone(){return new $h(this.queryList)}setDirty(){this.queryList.setDirty()}}class zh{constructor(e=[]){this.queries=e}createEmbeddedView(e){const n=e.queries;if(null!==n){const r=null!==e.contentQueries?e.contentQueries[0]:n.length,i=[];for(let o=0;o<r;o++){const u=n.getByIndex(o);i.push(this.queries[u.indexInDeclarationView].clone())}return new zh(i)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let n=0;n<this.queries.length;n++)null!==TE(e,n).matches&&this.queries[n].setDirty()}}class mE{constructor(e,n,r=null){this.predicate=e,this.flags=n,this.read=r}}class qh{constructor(e=[]){this.queries=e}elementStart(e,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(e,n)}elementEnd(e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(e)}embeddedTView(e){let n=null;for(let r=0;r<this.length;r++){const i=null!==n?n.length:0,o=this.getByIndex(r).embeddedTView(e,i);o&&(o.indexInDeclarationView=r,null!==n?n.push(o):n=[o])}return null!==n?new qh(n):null}template(e,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(e,n)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class Wh{constructor(e,n=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}elementStart(e,n){this.isApplyingToNode(n)&&this.matchTNode(e,n)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,n){this.elementStart(e,n)}embeddedTView(e,n){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,n),new Wh(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const n=this._declarationNodeIndex;let r=e.parent;for(;null!==r&&8&r.type&&r.index!==n;)r=r.parent;return n===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(e,n){const r=this.metadata.predicate;if(Array.isArray(r))for(let i=0;i<r.length;i++){const o=r[i];this.matchTNodeWithReadOption(e,n,uC(n,o)),this.matchTNodeWithReadOption(e,n,ns(n,e,o,!1,!1))}else r===Xr?4&n.type&&this.matchTNodeWithReadOption(e,n,-1):this.matchTNodeWithReadOption(e,n,ns(n,e,r,!1,!1))}matchTNodeWithReadOption(e,n,r){if(null!==r){const i=this.metadata.read;if(null!==i)if(i===yo||i===Mr||i===Xr&&4&n.type)this.addMatch(n.index,-2);else{const o=ns(n,e,i,!1,!1);null!==o&&this.addMatch(n.index,o)}else this.addMatch(n.index,r)}}addMatch(e,n){null===this.matches?this.matches=[e,n]:this.matches.push(e,n)}}function uC(t,e){const n=t.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===e)return n[r+1];return null}function cC(t,e,n,r){return-1===n?function lC(t,e){return 11&t.type?xs(t,e):4&t.type?ac(t,e):null}(e,t):-2===n?function dC(t,e,n){return n===yo?xs(e,t):n===Xr?ac(e,t):n===Mr?gE(e,t):void 0}(t,e,r):io(t,t[1],n,e)}function yE(t,e,n,r){const i=e[19].queries[r];if(null===i.matches){const o=t.data,u=n.matches,l=[];for(let d=0;d<u.length;d+=2){const p=u[d];l.push(p<0?null:cC(e,o[p],u[d+1],n.metadata.read))}i.matches=l}return i.matches}function Yh(t,e,n,r){const i=t.queries.getByIndex(n),o=i.matches;if(null!==o){const u=yE(t,e,i,n);for(let l=0;l<o.length;l+=2){const d=o[l];if(d>0)r.push(u[l/2]);else{const p=o[l+1],m=e[-d];for(let E=10;E<m.length;E++){const D=m[E];D[17]===D[3]&&Yh(D[1],D,p,r)}if(null!==m[9]){const E=m[9];for(let D=0;D<E.length;D++){const w=E[D];Yh(w[1],w,p,r)}}}}}return r}function vE(t){const e=F(),n=Me(),r=Xi();Ta(r+1);const i=TE(n,r);if(t.dirty&&ya(e)===(2==(2&i.metadata.flags))){if(null===i.matches)t.reset([]);else{const o=i.crossesNgTemplate?Yh(n,e,r,[]):yE(n,e,i,r);t.reset(o,TS),t.notifyOnChanges()}return!0}return!1}function EE(t,e,n){const r=Me();r.firstCreatePass&&(function IE(t,e,n){null===t.queries&&(t.queries=new qh),t.queries.track(new Wh(e,n))}(r,new mE(t,e,n),-1),2==(2&e)&&(r.staticViewQueries=!0)),function DE(t,e,n){const r=new Uh(4==(4&n));Pm(t,e,r,r.destroy),null===e[19]&&(e[19]=new zh),e[19].queries.push(new $h(r))}(r,F(),e)}function TE(t,e){return t.queries.getByIndex(e)}function cc(...t){}const jE=new Fe("Application Initializer");let ep=(()=>{class t{constructor(n){this.appInits=n,this.resolve=cc,this.reject=cc,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i<this.appInits.length;i++){const o=this.appInits[i]();if(Sh(o))n.push(o);else if(Aw(o)){const u=new Promise((l,d)=>{o.subscribe({complete:l,error:d})});n.push(u)}}Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),0===n.length&&r(),this.initialized=!0}}return t.\u0275fac=function(n){return new(n||t)(Se(jE,8))},t.\u0275prov=Ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Tu=new Fe("AppId",{providedIn:"root",factory:function HE(){return`${tp()}${tp()}${tp()}`}});function tp(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const UE=new Fe("Platform Initializer"),GE=new Fe("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),PC=new Fe("appBootstrapListener"),Oi=new Fe("LocaleId",{providedIn:"root",factory:()=>ls(Oi,me.Optional|me.SkipSelf)||function NC(){return"undefined"!=typeof $localize&&$localize.locale||ec}()}),kC=(()=>Promise.resolve(0))();function np(t){"undefined"==typeof Zone?kC.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Pt{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ar(!1),this.onMicrotaskEmpty=new Ar(!1),this.onStable=new Ar(!1),this.onError=new Ar(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&n,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function BC(){let t=We.requestAnimationFrame,e=We.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function HC(t){const e=()=>{!function jC(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(We,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,ip(t),t.isCheckStableRunning=!0,rp(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),ip(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,u,l)=>{try{return $E(t),n.invokeTask(i,o,u,l)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&e(),zE(t)}},onInvoke:(n,r,i,o,u,l,d)=>{try{return $E(t),n.invoke(i,o,u,l,d)}finally{t.shouldCoalesceRunChangeDetection&&e(),zE(t)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,ip(t),rp(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(n,r,i,o)=>(n.handleError(i,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Pt.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Pt.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,n,r){return this._inner.run(e,n,r)}runTask(e,n,r,i){const o=this._inner,u=o.scheduleEventTask("NgZoneEvent: "+i,e,VC,cc,cc);try{return o.runTask(u,n,r)}finally{o.cancelTask(u)}}runGuarded(e,n,r){return this._inner.runGuarded(e,n,r)}runOutsideAngular(e){return this._outer.run(e)}}const VC={};function rp(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function ip(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function $E(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function zE(t){t._nesting--,rp(t)}class UC{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ar,this.onMicrotaskEmpty=new Ar,this.onStable=new Ar,this.onError=new Ar}run(e,n,r){return e.apply(n,r)}runGuarded(e,n,r){return e.apply(n,r)}runOutsideAngular(e){return e()}runTask(e,n,r,i){return e.apply(n,r)}}let op=(()=>{class t{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Pt.assertNotInAngularZone(),np(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())np(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(u=>u.timeoutId!==o),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:o,updateCb:i})}whenStable(n,r,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,r,i){return[]}}return t.\u0275fac=function(n){return new(n||t)(Se(Pt))},t.\u0275prov=Ye({token:t,factory:t.\u0275fac}),t})(),GC=(()=>{class t{constructor(){this._applications=new Map,sp.addToWindow(this)}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return sp.findTestabilityInTree(this,n,r)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=Ye({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();class $C{addToWindow(e){}findTestabilityInTree(e,n,r){return null}}let sp=new $C,vo=null;const qE=new Fe("AllowMultipleToken"),WE=new Fe("PlatformOnDestroy");function YE(t,e,n=[]){const r=`Platform: ${e}`,i=new Fe(r);return(o=[])=>{let u=ap();if(!u||u.injector.get(qE,!1)){const l=[...n,...o,{provide:i,useValue:!0}];t?t(l):function YC(t){if(vo&&!vo.get(qE,!1))throw new Y(400,"");vo=t;const e=t.get(QE),n=t.get(UE,null);n&&n.forEach(r=>r())}(function KC(t=[],e){return jn.create({name:e,providers:[{provide:ch,useValue:"platform"},{provide:WE,useValue:()=>vo=null},...t]})}(l,r))}return function QC(t){const e=ap();if(!e)throw new Y(401,"");return e}()}}function ap(){var t;return null!==(t=null==vo?void 0:vo.get(QE))&&void 0!==t?t:null}let QE=(()=>{class t{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const l=function ZC(t,e){let n;return n="noop"===t?new UC:("zone.js"===t?void 0:t)||new Pt({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),d=[{provide:Pt,useValue:l}];return l.run(()=>{const p=jn.create({providers:d,parent:this.injector,name:n.moduleType.name}),m=n.create(p),E=m.injector.get(ou,null);if(!E)throw new Y(402,"");return l.runOutsideAngular(()=>{const D=l.onError.subscribe({next:w=>{E.handleError(w)}});m.onDestroy(()=>{lp(this._modules,m),D.unsubscribe()})}),function XC(t,e,n){try{const r=n();return Sh(r)?r.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(E,l,()=>{const D=m.injector.get(ep);return D.runInitializers(),D.donePromise.then(()=>(function Tb(t){un(t,"Expected localeId to be defined"),"string"==typeof t&&(Mv=t.toLowerCase().replace(/_/g,"-"))}(m.injector.get(Oi,ec)||ec),this._moduleDoBootstrap(m),m))})})}bootstrapModule(n,r=[]){const i=KE({},r);return function qC(t,e,n){const r=new jh(n);return Promise.resolve(r)}(0,0,n).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(n){const r=n.injector.get(up);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!n.instance.ngDoBootstrap)throw new Y(403,"");n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Y(404,"");this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(WE,null);null==n||n(),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(n){return new(n||t)(Se(jn))},t.\u0275prov=Ye({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function KE(t,e){return Array.isArray(e)?e.reduce(KE,t):Object.assign(Object.assign({},t),e)}let up=(()=>{class t{constructor(n,r,i,o){this._zone=n,this._injector=r,this._exceptionHandler=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const u=new tt(d=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{d.next(this._stable),d.complete()})}),l=new tt(d=>{let p;this._zone.runOutsideAngular(()=>{p=this._zone.onStable.subscribe(()=>{Pt.assertNotInAngularZone(),np(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,d.next(!0))})})});const m=this._zone.onUnstable.subscribe(()=>{Pt.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{d.next(!1)}))});return()=>{p.unsubscribe(),m.unsubscribe()}});this.isStable=Fr(u,l.pipe(function pd(){return t=>qu()(function Js(t,e){return function(r){let i;if(i="function"==typeof t?t:function(){return t},"function"==typeof e)return r.lift(new fd(i,e));const o=Object.create(r,ld);return o.source=r,o.subjectFactory=i,o}}(hd)(t))}()))}bootstrap(n,r){if(!this._initStatus.done)throw new Y(405,"");let i;i=n instanceof eE?n:this._injector.get(Ls).resolveComponentFactory(n),this.componentTypes.push(i.componentType);const o=function WC(t){return t.isBoundToModule}(i)?void 0:this._injector.get(ks),l=i.create(jn.NULL,[],r||i.selector,o),d=l.location.nativeElement,p=l.injector.get(op,null),m=p&&l.injector.get(GC);return p&&m&&m.registerApplication(d,p),l.onDestroy(()=>{this.detachView(l.hostView),lp(this.components,l),m&&m.unregisterApplication(d)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new Y(101,"");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;lp(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(PC,[]).concat(this._bootstrapListeners).forEach(i=>i(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(n){return new(n||t)(Se(Pt),Se(jn),Se(ou),Se(ep))},t.\u0275prov=Ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function lp(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}let XE=!0,t_=(()=>{class t{}return t.__NG_ELEMENT_ID__=t0,t})();function t0(t){return function n0(t,e,n){if(Bo(t)&&!n){const r=kt(t.index,e);return new Eu(r,r)}return 47&t.type?new Eu(e[16],e):null}(gt(),F(),16==(16&t))}const m0=YE(null,"core",[]);let y0=(()=>{class t{constructor(n){}}return t.\u0275fac=function(n){return new(n||t)(Se(up))},t.\u0275mod=ai({type:t}),t.\u0275inj=ur({}),t})(),pc=null;function bu(){return pc}const Un=new Fe("DocumentToken");let M_=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=ai({type:t}),t.\u0275inj=ur({}),t})();class Mp extends class mM extends class _0{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function E0(t){pc||(pc=t)}(new Mp)}onAndCancel(e,n,r){return e.addEventListener(n,r,!1),()=>{e.removeEventListener(n,r,!1)}}dispatchEvent(e,n){e.dispatchEvent(n)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,n){return(n=n||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,n){return"window"===n?window:"document"===n?e:"body"===n?e.body:null}getBaseHref(e){const n=function yM(){return Mu=Mu||document.querySelector("base"),Mu?Mu.getAttribute("href"):null}();return null==n?null:function vM(t){Sc=Sc||document.createElement("a"),Sc.setAttribute("href",t);const e=Sc.pathname;return"/"===e.charAt(0)?e:`/${e}`}(n)}resetBaseElement(){Mu=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function sA(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const r=n.indexOf("="),[i,o]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}(document.cookie,e)}}let Sc,Mu=null;const O_=new Fe("TRANSITION_ID"),_M=[{provide:jE,useFactory:function EM(t,e,n){return()=>{n.get(ep).donePromise.then(()=>{const r=bu(),i=e.querySelectorAll(`style[ng-transition="${t}"]`);for(let o=0;o<i.length;o++)r.remove(i[o])})}},deps:[O_,Un,jn],multi:!0}];class Rp{static init(){!function zC(t){sp=t}(new Rp)}addToWindow(e){We.getAngularTestability=(r,i=!0)=>{const o=e.findTestabilityInTree(r,i);if(null==o)throw new Error("Could not find testability for element.");return o},We.getAllAngularTestabilities=()=>e.getAllTestabilities(),We.getAllAngularRootElements=()=>e.getAllRootElements(),We.frameworkStabilizers||(We.frameworkStabilizers=[]),We.frameworkStabilizers.push(r=>{const i=We.getAllAngularTestabilities();let o=i.length,u=!1;const l=function(d){u=u||d,o--,0==o&&r(u)};i.forEach(function(d){d.whenStable(l)})})}findTestabilityInTree(e,n,r){if(null==n)return null;const i=e.getTestability(n);return null!=i?i:r?bu().isShadowRoot(n)?this.findTestabilityInTree(e,n.host,!0):this.findTestabilityInTree(e,n.parentElement,!0):null}}let DM=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=Ye({token:t,factory:t.\u0275fac}),t})();const Cc=new Fe("EventManagerPlugins");let Ac=(()=>{class t{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(i=>i.manager=this),this._plugins=n.slice().reverse()}addEventListener(n,r,i){return this._findPluginFor(r).addEventListener(n,r,i)}addGlobalEventListener(n,r,i){return this._findPluginFor(r).addGlobalEventListener(n,r,i)}getZone(){return this._zone}_findPluginFor(n){const r=this._eventNameToPlugin.get(n);if(r)return r;const i=this._plugins;for(let o=0;o<i.length;o++){const u=i[o];if(u.supports(n))return this._eventNameToPlugin.set(n,u),u}throw new Error(`No event manager plugin found for event ${n}`)}}return t.\u0275fac=function(n){return new(n||t)(Se(Cc),Se(Pt))},t.\u0275prov=Ye({token:t,factory:t.\u0275fac}),t})();class P_{constructor(e){this._doc=e}addGlobalEventListener(e,n,r){const i=bu().getGlobalEventTarget(this._doc,e);if(!i)throw new Error(`Unsupported event target ${i} for event ${n}`);return this.addEventListener(i,n,r)}}let N_=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(n){const r=new Set;n.forEach(i=>{this._stylesSet.has(i)||(this._stylesSet.add(i),r.add(i))}),this.onStylesAdded(r)}onStylesAdded(n){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=Ye({token:t,factory:t.\u0275fac}),t})(),Ru=(()=>{class t extends N_{constructor(n){super(),this._doc=n,this._hostNodes=new Map,this._hostNodes.set(n.head,[])}_addStylesToHost(n,r,i){n.forEach(o=>{const u=this._doc.createElement("style");u.textContent=o,i.push(r.appendChild(u))})}addHost(n){const r=[];this._addStylesToHost(this._stylesSet,n,r),this._hostNodes.set(n,r)}removeHost(n){const r=this._hostNodes.get(n);r&&r.forEach(F_),this._hostNodes.delete(n)}onStylesAdded(n){this._hostNodes.forEach((r,i)=>{this._addStylesToHost(n,i,r)})}ngOnDestroy(){this._hostNodes.forEach(n=>n.forEach(F_))}}return t.\u0275fac=function(n){return new(n||t)(Se(Un))},t.\u0275prov=Ye({token:t,factory:t.\u0275fac}),t})();function F_(t){bu().remove(t)}const Op={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Pp=/%COMP%/g;function Mc(t,e,n){for(let r=0;r<e.length;r++){let i=e[r];Array.isArray(i)?Mc(t,i,n):(i=i.replace(Pp,t),n.push(i))}return n}function k_(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let Rc=(()=>{class t{constructor(n,r,i){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new Np(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;switch(r.encapsulation){case vn.Emulated:{let i=this.rendererByCompId.get(r.id);return i||(i=new CM(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,i)),i.applyToHost(n),i}case 1:case vn.ShadowDom:return new AM(this.eventManager,this.sharedStylesHost,n,r);default:if(!this.rendererByCompId.has(r.id)){const i=Mc(r.id,r.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(n){return new(n||t)(Se(Ac),Se(Ru),Se(Tu))},t.\u0275prov=Ye({token:t,factory:t.\u0275fac}),t})();class Np{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,n){return n?document.createElementNS(Op[n]||n,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,n){e.appendChild(n)}insertBefore(e,n,r){e&&e.insertBefore(n,r)}removeChild(e,n){e&&e.removeChild(n)}selectRootElement(e,n){let r="string"==typeof e?document.querySelector(e):e;if(!r)throw new Error(`The selector "${e}" did not match any elements`);return n||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,n,r,i){if(i){n=i+":"+n;const o=Op[i];o?e.setAttributeNS(o,n,r):e.setAttribute(n,r)}else e.setAttribute(n,r)}removeAttribute(e,n,r){if(r){const i=Op[r];i?e.removeAttributeNS(i,n):e.removeAttribute(`${r}:${n}`)}else e.removeAttribute(n)}addClass(e,n){e.classList.add(n)}removeClass(e,n){e.classList.remove(n)}setStyle(e,n,r,i){i&(tn.DashCase|tn.Important)?e.style.setProperty(n,r,i&tn.Important?"important":""):e.style[n]=r}removeStyle(e,n,r){r&tn.DashCase?e.style.removeProperty(n):e.style[n]=""}setProperty(e,n,r){e[n]=r}setValue(e,n){e.nodeValue=n}listen(e,n,r){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,n,k_(r)):this.eventManager.addEventListener(e,n,k_(r))}}class CM extends Np{constructor(e,n,r,i){super(e),this.component=r;const o=Mc(i+"-"+r.id,r.styles,[]);n.addStyles(o),this.contentAttr=function wM(t){return"_ngcontent-%COMP%".replace(Pp,t)}(i+"-"+r.id),this.hostAttr=function bM(t){return"_nghost-%COMP%".replace(Pp,t)}(i+"-"+r.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,n){const r=super.createElement(e,n);return super.setAttribute(r,this.contentAttr,""),r}}class AM extends Np{constructor(e,n,r,i){super(e),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=Mc(i.id,i.styles,[]);for(let u=0;u<o.length;u++){const l=document.createElement("style");l.textContent=o[u],this.shadowRoot.appendChild(l)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,n){return super.appendChild(this.nodeOrShadowRoot(e),n)}insertBefore(e,n,r){return super.insertBefore(this.nodeOrShadowRoot(e),n,r)}removeChild(e,n){return super.removeChild(this.nodeOrShadowRoot(e),n)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let MM=(()=>{class t extends P_{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i){return n.addEventListener(r,i,!1),()=>this.removeEventListener(n,r,i)}removeEventListener(n,r,i){return n.removeEventListener(r,i)}}return t.\u0275fac=function(n){return new(n||t)(Se(Un))},t.\u0275prov=Ye({token:t,factory:t.\u0275fac}),t})();const V_=["alt","control","meta","shift"],OM={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},j_={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},PM={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let NM=(()=>{class t extends P_{constructor(n){super(n)}supports(n){return null!=t.parseEventName(n)}addEventListener(n,r,i){const o=t.parseEventName(r),u=t.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>bu().onAndCancel(n,o.domEventName,u))}static parseEventName(n){const r=n.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const o=t._normalizeKey(r.pop());let u="";if(V_.forEach(d=>{const p=r.indexOf(d);p>-1&&(r.splice(p,1),u+=d+".")}),u+=o,0!=r.length||0===o.length)return null;const l={};return l.domEventName=i,l.fullKey=u,l}static getEventFullKey(n){let r="",i=function FM(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&j_.hasOwnProperty(e)&&(e=j_[e]))}return OM[e]||e}(n);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),V_.forEach(o=>{o!=i&&PM[o](n)&&(r+=o+".")}),r+=i,r}static eventCallback(n,r,i){return o=>{t.getEventFullKey(o)===n&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return t.\u0275fac=function(n){return new(n||t)(Se(Un))},t.\u0275prov=Ye({token:t,factory:t.\u0275fac}),t})();const BM=YE(m0,"browser",[{provide:GE,useValue:"browser"},{provide:UE,useValue:function LM(){Mp.makeCurrent(),Rp.init()},multi:!0},{provide:Un,useFactory:function kM(){return function jd(t){$o=t}(document),document},deps:[]}]),VM=[{provide:ch,useValue:"root"},{provide:ou,useFactory:function xM(){return new ou},deps:[]},{provide:Cc,useClass:MM,multi:!0,deps:[Un,Pt,GE]},{provide:Cc,useClass:NM,multi:!0,deps:[Un]},{provide:Rc,useClass:Rc,deps:[Ac,Ru,Tu]},{provide:vu,useExisting:Rc},{provide:N_,useExisting:Ru},{provide:Ru,useClass:Ru,deps:[Un]},{provide:op,useClass:op,deps:[Pt]},{provide:Ac,useClass:Ac,deps:[Cc,Pt]},{provide:class pM{},useClass:DM,deps:[]}];let H_=(()=>{class t{constructor(n){if(n)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(n){return{ngModule:t,providers:[{provide:Tu,useValue:n.appId},{provide:O_,useExisting:Tu},_M]}}}return t.\u0275fac=function(n){return new(n||t)(Se(t,12))},t.\u0275mod=ai({type:t}),t.\u0275inj=ur({providers:VM,imports:[M_,y0]}),t})();"undefined"!=typeof window&&window;class KM extends Ae{constructor(e,n){super()}schedule(e,n=0){return this}}class ZM extends KM{constructor(e,n){super(e,n),this.scheduler=e,this.work=n,this.pending=!1}schedule(e,n=0){if(this.closed)return this;this.state=e;const r=this.id,i=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(i,r,n)),this.pending=!0,this.delay=n,this.id=this.id||this.requestAsyncId(i,this.id,n),this}requestAsyncId(e,n,r=0){return setInterval(e.flush.bind(e,this),r)}recycleAsyncId(e,n,r=0){if(null!==r&&this.delay===r&&!1===this.pending)return n;clearInterval(n)}execute(e,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(e,n);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,n){let i,r=!1;try{this.work(e)}catch(o){r=!0,i=!!o&&o||new Error(o)}if(r)return this.unsubscribe(),i}_unsubscribe(){const e=this.id,n=this.scheduler,r=n.actions,i=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&r.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(n,e,null)),this.delay=null}}let $_=(()=>{class t{constructor(n,r=t.now){this.SchedulerAction=n,this.now=r}schedule(n,r=0,i){return new this.SchedulerAction(this,n).schedule(i,r)}}return t.now=()=>Date.now(),t})();class Ni extends $_{constructor(e,n=$_.now){super(e,()=>Ni.delegate&&Ni.delegate!==this?Ni.delegate.now():n()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,n=0,r){return Ni.delegate&&Ni.delegate!==this?Ni.delegate.schedule(e,n,r):super.schedule(e,n,r)}flush(e){const{actions:n}=this;if(this.active)return void n.push(e);let r;this.active=!0;do{if(r=e.execute(e.state,e.delay))break}while(e=n.shift());if(this.active=!1,r){for(;e=n.shift();)e.unsubscribe();throw r}}}const eR=new class JM extends Ni{}(class XM extends ZM{constructor(e,n){super(e,n),this.scheduler=e,this.work=n}schedule(e,n=0){return n>0?super.schedule(e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)}execute(e,n){return n>0||this.closed?super.execute(e,n):this._execute(e,n)}requestAsyncId(e,n,r=0){return null!==r&&r>0||null===r&&this.delay>0?super.requestAsyncId(e,n,r):e.flush(this)}}),tR=new tt(t=>t.complete());function sR({error:t,subscriber:e}){e.error(t)}class zn{constructor(e,n,r){this.kind=e,this.value=n,this.error=r,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,n,r){switch(this.kind){case"N":return e&&e(this.value);case"E":return n&&n(this.error);case"C":return r&&r()}}accept(e,n,r){return e&&"function"==typeof e.next?this.observe(e):this.do(e,n,r)}toObservable(){switch(this.kind){case"N":return function iR(...t){let e=t[t.length-1];return qs(e)?(t.pop(),Qs(t,e)):Xs(t)}(this.value);case"E":return function oR(t,e){return new tt(e?n=>e.schedule(sR,0,{error:t,subscriber:n}):n=>n.error(t))}(this.error);case"C":return function nR(t){return t?function rR(t){return new tt(e=>t.schedule(()=>e.complete()))}(t):tR}()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new zn("N",e):zn.undefinedValueNotification}static createError(e){return new zn("E",void 0,e)}static createComplete(){return zn.completeNotification}}zn.completeNotification=new zn("C"),zn.undefinedValueNotification=new zn("N",void 0);class Oc extends et{constructor(e,n,r=0){super(e),this.scheduler=n,this.delay=r}static dispatch(e){const{notification:n,destination:r}=e;n.observe(r),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(Oc.dispatch,this.delay,new uR(e,this.destination)))}_next(e){this.scheduleMessage(zn.createNext(e))}_error(e){this.scheduleMessage(zn.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(zn.createComplete()),this.unsubscribe()}}class uR{constructor(e,n){this.notification=e,this.destination=n}}class lR extends So{constructor(e=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY,r){super(),this.scheduler=r,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){const n=this._events;n.push(e),n.length>this._bufferSize&&n.shift(),super.next(e)}nextTimeWindow(e){this._events.push(new cR(this._getNow(),e)),this._trimBufferThenGetEvents(),super.next(e)}_subscribe(e){const n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;let u;if(this.closed)throw new ii;if(this.isStopped||this.hasError?u=Ae.EMPTY:(this.observers.push(e),u=new Fu(this,e)),i&&e.add(e=new Oc(e,i)),n)for(let l=0;l<o&&!e.closed;l++)e.next(r[l]);else for(let l=0;l<o&&!e.closed;l++)e.next(r[l].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),u}_getNow(){return(this.scheduler||eR).now()}_trimBufferThenGetEvents(){const e=this._getNow(),n=this._bufferSize,r=this._windowTime,i=this._events,o=i.length;let u=0;for(;u<o&&!(e-i[u].time<r);)u++;return o>n&&(u=Math.max(u,o-n)),u>0&&i.splice(0,u),i}}class cR{constructor(e,n){this.time=e,this.value=n}}function z_(t,e){return"function"==typeof e?n=>n.pipe(z_((r,i)=>Ln(t(r,i)).pipe(Ws((o,u)=>e(r,o,i,u))))):n=>n.lift(new dR(t))}class dR{constructor(e){this.project=e}call(e,n){return n.subscribe(new fR(e,this.project))}}class fR extends $u{constructor(e,n){super(e),this.project=n,this.index=0}_next(e){let n;const r=this.index++;try{n=this.project(e,r)}catch(i){return void this.destination.error(i)}this._innerSub(n)}_innerSub(e){const n=this.innerSubscription;n&&n.unsubscribe();const r=new Gu(this),i=this.destination;i.add(r),this.innerSubscription=Zs(e,r),this.innerSubscription!==r&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;(!e||e.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const Pc={schedule(t,e){const n=setTimeout(t,e);return()=>clearTimeout(n)},scheduleBeforeRender(t){if("undefined"==typeof window)return Pc.schedule(t,0);if(void 0===window.requestAnimationFrame)return Pc.schedule(t,16);const e=window.requestAnimationFrame(t);return()=>window.cancelAnimationFrame(e)}};let Lp;function DR(t,e,n){let r=n;return function pR(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}(t)&&e.some((i,o)=>!("*"===i||!function mR(t,e){if(!Lp){const n=Element.prototype;Lp=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return t.nodeType===Node.ELEMENT_NODE&&Lp.call(t,e)}(t,i)||(r=o,0))),r}class TR{constructor(e,n){this.componentFactory=n.get(Ls).resolveComponentFactory(e)}create(e){return new wR(this.componentFactory,e)}}class wR{constructor(e,n){this.componentFactory=e,this.injector=n,this.eventEmitters=new lR(1),this.events=this.eventEmitters.pipe(z_(r=>Fr(...r))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:r})=>r)),this.ngZone=this.injector.get(Pt),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=Pc.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(e){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,n){this.runInZone(()=>{null!==this.componentRef?function yR(t,e){return t===e||t!=t&&e!=e}(n,this.getInputValue(e))&&(void 0!==n||!this.unchangedInputs.has(e))||(this.recordInputChange(e,n),this.unchangedInputs.delete(e),this.hasInputChanges=!0,this.componentRef.instance[e]=n,this.scheduleDetectChanges()):this.initialInputValues.set(e,n)})}initializeComponent(e){const n=jn.create({providers:[],parent:this.injector}),r=function _R(t,e){const n=t.childNodes,r=e.map(()=>[]);let i=-1;e.some((o,u)=>"*"===o&&(i=u,!0));for(let o=0,u=n.length;o<u;++o){const l=n[o],d=DR(l,e,i);-1!==d&&r[d].push(l)}return r}(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(n,r,e),this.viewChangeDetectorRef=this.componentRef.injector.get(t_),this.implementsOnChanges=function gR(t){return"function"==typeof t}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(up).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:e})=>{this.initialInputValues.has(e)&&this.setInputValue(e,this.initialInputValues.get(e))}),this.initialInputValues.clear()}initializeOutputs(e){const n=this.componentFactory.outputs.map(({propName:r,templateName:i})=>e.instance[r].pipe(Ws(u=>({name:i,value:u}))));this.eventEmitters.next(n)}callNgOnChanges(e){if(!this.implementsOnChanges||null===this.inputChanges)return;const n=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(n)}markViewForCheck(e){this.hasInputChanges&&(this.hasInputChanges=!1,e.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Pc.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(e,n){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const r=this.inputChanges[e];if(r)return void(r.currentValue=n);const i=this.unchangedInputs.has(e),o=i?void 0:this.getInputValue(e);this.inputChanges[e]=new tl(o,n,i)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}}class bR extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class q_{}const ei="*";function W_(t,e=null){return{type:2,steps:t,options:e}}function Y_(t){return{type:6,styles:t,offset:null}}function Q_(t){Promise.resolve(null).then(t)}class Ou{constructor(e=0,n=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+n}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Q_(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const n="start"==e?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}}class K_{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let n=0,r=0,i=0;const o=this.players.length;0==o?Q_(()=>this._onFinish()):this.players.forEach(u=>{u.onDone(()=>{++n==o&&this._onFinish()}),u.onDestroy(()=>{++r==o&&this._onDestroy()}),u.onStart(()=>{++i==o&&this._onStart()})}),this.totalTime=this.players.reduce((u,l)=>Math.max(u,l.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const n=e*this.totalTime;this.players.forEach(r=>{const i=r.totalTime?Math.min(1,n/r.totalTime):1;r.setPosition(i)})}getPosition(){const e=this.players.reduce((n,r)=>null===n||r.totalTime>n.totalTime?r:n,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const n="start"==e?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}}const Le=!1;function Z_(t){return new Y(3e3,Le)}function aO(){return"undefined"!=typeof window&&void 0!==window.document}function kp(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Fi(t){switch(t.length){case 0:return new Ou;case 1:return t[0];default:return new K_(t)}}function X_(t,e,n,r,i={},o={}){const u=[],l=[];let d=-1,p=null;if(r.forEach(m=>{const E=m.offset,D=E==d,w=D&&p||{};Object.keys(m).forEach(b=>{let M=b,O=m[b];if("offset"!==b)switch(M=e.normalizePropertyName(M,u),O){case"!":O=i[b];break;case ei:O=o[b];break;default:O=e.normalizeStyleValue(b,M,O,u)}w[M]=O}),D||l.push(w),p=w,d=E}),u.length)throw function KR(t){return new Y(3502,Le)}();return l}function Bp(t,e,n,r){switch(e){case"start":t.onStart(()=>r(n&&Vp(n,"start",t)));break;case"done":t.onDone(()=>r(n&&Vp(n,"done",t)));break;case"destroy":t.onDestroy(()=>r(n&&Vp(n,"destroy",t)))}}function Vp(t,e,n){const r=n.totalTime,o=jp(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==r?t.totalTime:r,!!n.disabled),u=t._data;return null!=u&&(o._data=u),o}function jp(t,e,n,r,i="",o=0,u){return{element:t,triggerName:e,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!u}}function Sn(t,e,n){let r;return t instanceof Map?(r=t.get(e),r||t.set(e,r=n)):(r=t[e],r||(r=t[e]=n)),r}function J_(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let Hp=(t,e)=>!1,eD=(t,e,n)=>[],tD=null;function Up(t){const e=t.parentNode||t.host;return e===tD?null:e}(kp()||"undefined"!=typeof Element)&&(aO()?(tD=(()=>document.documentElement)(),Hp=(t,e)=>{for(;e;){if(e===t)return!0;e=Up(e)}return!1}):Hp=(t,e)=>t.contains(e),eD=(t,e,n)=>{if(n)return Array.from(t.querySelectorAll(e));const r=t.querySelector(e);return r?[r]:[]});let _o=null,nD=!1;function rD(t){_o||(_o=function lO(){return"undefined"!=typeof document?document.body:null}()||{},nD=!!_o.style&&"WebkitAppearance"in _o.style);let e=!0;return _o.style&&!function uO(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in _o.style,!e&&nD&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in _o.style)),e}const iD=Hp,oD=eD;let sD=(()=>{class t{validateStyleProperty(n){return rD(n)}matchesElement(n,r){return!1}containsElement(n,r){return iD(n,r)}getParentElement(n){return Up(n)}query(n,r,i){return oD(n,r,i)}computeStyle(n,r,i){return i||""}animate(n,r,i,o,u,l=[],d){return new Ou(i,o)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=Ye({token:t,factory:t.\u0275fac}),t})(),Gp=(()=>{class t{}return t.NOOP=new sD,t})();const $p="ng-enter",Fc="ng-leave",Lc="ng-trigger",xc=".ng-trigger",uD="ng-animating",zp=".ng-animating";function Do(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:qp(parseFloat(e[1]),e[2])}function qp(t,e){return"s"===e?1e3*t:t}function kc(t,e,n){return t.hasOwnProperty("duration")?t:function fO(t,e,n){let i,o=0,u="";if("string"==typeof t){const l=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===l)return e.push(Z_()),{duration:0,delay:0,easing:""};i=qp(parseFloat(l[1]),l[2]);const d=l[3];null!=d&&(o=qp(parseFloat(d),l[4]));const p=l[5];p&&(u=p)}else i=t;if(!n){let l=!1,d=e.length;i<0&&(e.push(function AR(){return new Y(3100,Le)}()),l=!0),o<0&&(e.push(function MR(){return new Y(3101,Le)}()),l=!0),l&&e.splice(d,0,Z_())}return{duration:i,delay:o,easing:u}}(t,e,n)}function js(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function Li(t,e,n={}){if(e)for(let r in t)n[r]=t[r];else js(t,n);return n}function cD(t,e,n){return n?e+":"+n+";":""}function dD(t){let e="";for(let n=0;n<t.style.length;n++){const r=t.style.item(n);e+=cD(0,r,t.style.getPropertyValue(r))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=cD(0,gO(n),t.style[n]));t.setAttribute("style",e)}function Rr(t,e,n){t.style&&(Object.keys(e).forEach(r=>{const i=Yp(r);n&&!n.hasOwnProperty(r)&&(n[r]=t.style[i]),t.style[i]=e[r]}),kp()&&dD(t))}function Io(t,e){t.style&&(Object.keys(e).forEach(n=>{const r=Yp(n);t.style[r]=""}),kp()&&dD(t))}function Pu(t){return Array.isArray(t)?1==t.length?t[0]:W_(t):t}const Wp=new RegExp("{{\\s*(.+?)\\s*}}","g");function fD(t){let e=[];if("string"==typeof t){let n;for(;n=Wp.exec(t);)e.push(n[1]);Wp.lastIndex=0}return e}function Bc(t,e,n){const r=t.toString(),i=r.replace(Wp,(o,u)=>{let l=e[u];return e.hasOwnProperty(u)||(n.push(function OR(t){return new Y(3003,Le)}()),l=""),l.toString()});return i==r?t:i}function Vc(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const pO=/-+([a-z0-9])/g;function Yp(t){return t.replace(pO,(...e)=>e[1].toUpperCase())}function gO(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Cn(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw function PR(t){return new Y(3004,Le)}()}}function hD(t,e){return window.getComputedStyle(t)[e]}function DO(t,e){const n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(r=>function IO(t,e,n){if(":"==t[0]){const d=function TO(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(n,r)=>parseFloat(r)>parseFloat(n);case":decrement":return(n,r)=>parseFloat(r)<parseFloat(n);default:return e.push(function qR(t){return new Y(3016,Le)}()),"* => *"}}(t,n);if("function"==typeof d)return void e.push(d);t=d}const r=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push(function zR(t){return new Y(3015,Le)}()),e;const i=r[1],o=r[2],u=r[3];e.push(pD(i,u));"<"==o[0]&&!("*"==i&&"*"==u)&&e.push(pD(u,i))}(r,n,e)):n.push(t),n}const Gc=new Set(["true","1"]),$c=new Set(["false","0"]);function pD(t,e){const n=Gc.has(t)||$c.has(t),r=Gc.has(e)||$c.has(e);return(i,o)=>{let u="*"==t||t==i,l="*"==e||e==o;return!u&&n&&"boolean"==typeof i&&(u=i?Gc.has(t):$c.has(t)),!l&&r&&"boolean"==typeof o&&(l=o?Gc.has(e):$c.has(e)),u&&l}}const wO=new RegExp("s*:selfs*,?","g");function Qp(t,e,n,r){return new bO(t).build(e,n,r)}class bO{constructor(e){this._driver=e}build(e,n,r){const i=new AO(n);this._resetContextStyleTimingState(i);const o=Cn(this,Pu(e),i);return i.unsupportedCSSPropertiesFound.size&&i.unsupportedCSSPropertiesFound.keys(),o}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,n){let r=n.queryCount=0,i=n.depCount=0;const o=[],u=[];return"@"==e.name.charAt(0)&&n.errors.push(function FR(){return new Y(3006,Le)}()),e.definitions.forEach(l=>{if(this._resetContextStyleTimingState(n),0==l.type){const d=l,p=d.name;p.toString().split(/\s*,\s*/).forEach(m=>{d.name=m,o.push(this.visitState(d,n))}),d.name=p}else if(1==l.type){const d=this.visitTransition(l,n);r+=d.queryCount,i+=d.depCount,u.push(d)}else n.errors.push(function LR(){return new Y(3007,Le)}())}),{type:7,name:e.name,states:o,transitions:u,queryCount:r,depCount:i,options:null}}visitState(e,n){const r=this.visitStyle(e.styles,n),i=e.options&&e.options.params||null;if(r.containsDynamicStyles){const o=new Set,u=i||{};r.styles.forEach(l=>{if(zc(l)){const d=l;Object.keys(d).forEach(p=>{fD(d[p]).forEach(m=>{u.hasOwnProperty(m)||o.add(m)})})}}),o.size&&(Vc(o.values()),n.errors.push(function xR(t,e){return new Y(3008,Le)}()))}return{type:0,name:e.name,style:r,options:i?{params:i}:null}}visitTransition(e,n){n.queryCount=0,n.depCount=0;const r=Cn(this,Pu(e.animation),n);return{type:1,matchers:DO(e.expr,n.errors),animation:r,queryCount:n.queryCount,depCount:n.depCount,options:To(e.options)}}visitSequence(e,n){return{type:2,steps:e.steps.map(r=>Cn(this,r,n)),options:To(e.options)}}visitGroup(e,n){const r=n.currentTime;let i=0;const o=e.steps.map(u=>{n.currentTime=r;const l=Cn(this,u,n);return i=Math.max(i,n.currentTime),l});return n.currentTime=i,{type:3,steps:o,options:To(e.options)}}visitAnimate(e,n){const r=function RO(t,e){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return Kp(kc(t,e).duration,0,"");const n=t;if(n.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=Kp(0,0,"");return o.dynamic=!0,o.strValue=n,o}const i=kc(n,e);return Kp(i.duration,i.delay,i.easing)}(e.timings,n.errors);n.currentAnimateTimings=r;let i,o=e.styles?e.styles:Y_({});if(5==o.type)i=this.visitKeyframes(o,n);else{let u=e.styles,l=!1;if(!u){l=!0;const p={};r.easing&&(p.easing=r.easing),u=Y_(p)}n.currentTime+=r.duration+r.delay;const d=this.visitStyle(u,n);d.isEmptyStep=l,i=d}return n.currentAnimateTimings=null,{type:4,timings:r,style:i,options:null}}visitStyle(e,n){const r=this._makeStyleAst(e,n);return this._validateStyleAst(r,n),r}_makeStyleAst(e,n){const r=[];Array.isArray(e.styles)?e.styles.forEach(u=>{"string"==typeof u?u==ei?r.push(u):n.errors.push(function kR(t){return new Y(3002,Le)}()):r.push(u)}):r.push(e.styles);let i=!1,o=null;return r.forEach(u=>{if(zc(u)){const l=u,d=l.easing;if(d&&(o=d,delete l.easing),!i)for(let p in l)if(l[p].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:r,easing:o,offset:e.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(e,n){const r=n.currentAnimateTimings;let i=n.currentTime,o=n.currentTime;r&&o>0&&(o-=r.duration+r.delay),e.styles.forEach(u=>{"string"!=typeof u&&Object.keys(u).forEach(l=>{if(!this._driver.validateStyleProperty(l))return delete u[l],void n.unsupportedCSSPropertiesFound.add(l);const d=n.collectedStyles[n.currentQuerySelector],p=d[l];let m=!0;p&&(o!=i&&o>=p.startTime&&i<=p.endTime&&(n.errors.push(function BR(t,e,n,r,i){return new Y(3010,Le)}()),m=!1),o=p.startTime),m&&(d[l]={startTime:o,endTime:i}),n.options&&function hO(t,e,n){const r=e.params||{},i=fD(t);i.length&&i.forEach(o=>{r.hasOwnProperty(o)||n.push(function RR(t){return new Y(3001,Le)}())})}(u[l],n.options,n.errors)})})}visitKeyframes(e,n){const r={type:5,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(function VR(){return new Y(3011,Le)}()),r;let o=0;const u=[];let l=!1,d=!1,p=0;const m=e.steps.map(V=>{const R=this._makeStyleAst(V,n);let G=null!=R.offset?R.offset:function MO(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(n=>{if(zc(n)&&n.hasOwnProperty("offset")){const r=n;e=parseFloat(r.offset),delete r.offset}});else if(zc(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(R.styles),ie=0;return null!=G&&(o++,ie=R.offset=G),d=d||ie<0||ie>1,l=l||ie<p,p=ie,u.push(ie),R});d&&n.errors.push(function jR(){return new Y(3012,Le)}()),l&&n.errors.push(function HR(){return new Y(3200,Le)}());const E=e.steps.length;let D=0;o>0&&o<E?n.errors.push(function UR(){return new Y(3202,Le)}()):0==o&&(D=1/(E-1));const w=E-1,b=n.currentTime,M=n.currentAnimateTimings,O=M.duration;return m.forEach((V,R)=>{const G=D>0?R==w?1:D*R:u[R],ie=G*O;n.currentTime=b+M.delay+ie,M.duration=ie,this._validateStyleAst(V,n),V.offset=G,r.styles.push(V)}),r}visitReference(e,n){return{type:8,animation:Cn(this,Pu(e.animation),n),options:To(e.options)}}visitAnimateChild(e,n){return n.depCount++,{type:9,options:To(e.options)}}visitAnimateRef(e,n){return{type:10,animation:this.visitReference(e.animation,n),options:To(e.options)}}visitQuery(e,n){const r=n.currentQuerySelector,i=e.options||{};n.queryCount++,n.currentQuery=e;const[o,u]=function SO(t){const e=!!t.split(/\s*,\s*/).find(n=>":self"==n);return e&&(t=t.replace(wO,"")),t=t.replace(/@\*/g,xc).replace(/@\w+/g,n=>xc+"-"+n.substr(1)).replace(/:animating/g,zp),[t,e]}(e.selector);n.currentQuerySelector=r.length?r+" "+o:o,Sn(n.collectedStyles,n.currentQuerySelector,{});const l=Cn(this,Pu(e.animation),n);return n.currentQuery=null,n.currentQuerySelector=r,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:u,animation:l,originalSelector:e.selector,options:To(e.options)}}visitStagger(e,n){n.currentQuery||n.errors.push(function GR(){return new Y(3013,Le)}());const r="full"===e.timings?{duration:0,delay:0,easing:"full"}:kc(e.timings,n.errors,!0);return{type:12,animation:Cn(this,Pu(e.animation),n),timings:r,options:null}}}class AO{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function zc(t){return!Array.isArray(t)&&"object"==typeof t}function To(t){return t?(t=js(t)).params&&(t.params=function CO(t){return t?js(t):null}(t.params)):t={},t}function Kp(t,e,n){return{duration:t,delay:e,easing:n}}function Zp(t,e,n,r,i,o,u=null,l=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:u,subTimeline:l}}class qc{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,n){let r=this._map.get(e);r||this._map.set(e,r=[]),r.push(...n)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const NO=new RegExp(":enter","g"),LO=new RegExp(":leave","g");function Xp(t,e,n,r,i,o={},u={},l,d,p=[]){return(new xO).buildKeyframes(t,e,n,r,i,o,u,l,d,p)}class xO{buildKeyframes(e,n,r,i,o,u,l,d,p,m=[]){p=p||new qc;const E=new Jp(e,n,p,i,o,m,[]);E.options=d,E.currentTimeline.setStyles([u],null,E.errors,d),Cn(this,r,E);const D=E.timelines.filter(w=>w.containsAnimation());if(Object.keys(l).length){let w;for(let b=D.length-1;b>=0;b--){const M=D[b];if(M.element===n){w=M;break}}w&&!w.allowOnlyTimelineStyles()&&w.setStyles([l],null,E.errors,d)}return D.length?D.map(w=>w.buildKeyframes()):[Zp(n,[],[],[],0,0,"",!1)]}visitTrigger(e,n){}visitState(e,n){}visitTransition(e,n){}visitAnimateChild(e,n){const r=n.subInstructions.get(n.element);if(r){const i=n.createSubContext(e.options),o=n.currentTimeline.currentTime,u=this._visitSubInstructions(r,i,i.options);o!=u&&n.transformIntoNewTimeline(u)}n.previousNode=e}visitAnimateRef(e,n){const r=n.createSubContext(e.options);r.transformIntoNewTimeline(),this.visitReference(e.animation,r),n.transformIntoNewTimeline(r.currentTimeline.currentTime),n.previousNode=e}_visitSubInstructions(e,n,r){let o=n.currentTimeline.currentTime;const u=null!=r.duration?Do(r.duration):null,l=null!=r.delay?Do(r.delay):null;return 0!==u&&e.forEach(d=>{const p=n.appendInstructionToTimeline(d,u,l);o=Math.max(o,p.duration+p.delay)}),o}visitReference(e,n){n.updateOptions(e.options,!0),Cn(this,e.animation,n),n.previousNode=e}visitSequence(e,n){const r=n.subContextCount;let i=n;const o=e.options;if(o&&(o.params||o.delay)&&(i=n.createSubContext(o),i.transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Wc);const u=Do(o.delay);i.delayNextStep(u)}e.steps.length&&(e.steps.forEach(u=>Cn(this,u,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),n.previousNode=e}visitGroup(e,n){const r=[];let i=n.currentTimeline.currentTime;const o=e.options&&e.options.delay?Do(e.options.delay):0;e.steps.forEach(u=>{const l=n.createSubContext(e.options);o&&l.delayNextStep(o),Cn(this,u,l),i=Math.max(i,l.currentTimeline.currentTime),r.push(l.currentTimeline)}),r.forEach(u=>n.currentTimeline.mergeTimelineCollectedStyles(u)),n.transformIntoNewTimeline(i),n.previousNode=e}_visitTiming(e,n){if(e.dynamic){const r=e.strValue;return kc(n.params?Bc(r,n.params,n.errors):r,n.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,n){const r=n.currentAnimateTimings=this._visitTiming(e.timings,n),i=n.currentTimeline;r.delay&&(n.incrementTime(r.delay),i.snapshotCurrentStyles());const o=e.style;5==o.type?this.visitKeyframes(o,n):(n.incrementTime(r.duration),this.visitStyle(o,n),i.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=e}visitStyle(e,n){const r=n.currentTimeline,i=n.currentAnimateTimings;!i&&r.getCurrentStyleProperties().length&&r.forwardFrame();const o=i&&i.easing||e.easing;e.isEmptyStep?r.applyEmptyStep(o):r.setStyles(e.styles,o,n.errors,n.options),n.previousNode=e}visitKeyframes(e,n){const r=n.currentAnimateTimings,i=n.currentTimeline.duration,o=r.duration,l=n.createSubContext().currentTimeline;l.easing=r.easing,e.styles.forEach(d=>{l.forwardTime((d.offset||0)*o),l.setStyles(d.styles,d.easing,n.errors,n.options),l.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(l),n.transformIntoNewTimeline(i+o),n.previousNode=e}visitQuery(e,n){const r=n.currentTimeline.currentTime,i=e.options||{},o=i.delay?Do(i.delay):0;o&&(6===n.previousNode.type||0==r&&n.currentTimeline.getCurrentStyleProperties().length)&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Wc);let u=r;const l=n.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,n.errors);n.currentQueryTotal=l.length;let d=null;l.forEach((p,m)=>{n.currentQueryIndex=m;const E=n.createSubContext(e.options,p);o&&E.delayNextStep(o),p===n.element&&(d=E.currentTimeline),Cn(this,e.animation,E),E.currentTimeline.applyStylesToKeyframe(),u=Math.max(u,E.currentTimeline.currentTime)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(u),d&&(n.currentTimeline.mergeTimelineCollectedStyles(d),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=e}visitStagger(e,n){const r=n.parentContext,i=n.currentTimeline,o=e.timings,u=Math.abs(o.duration),l=u*(n.currentQueryTotal-1);let d=u*n.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":d=l-d;break;case"full":d=r.currentStaggerTime}const m=n.currentTimeline;d&&m.delayNextStep(d);const E=m.currentTime;Cn(this,e.animation,n),n.previousNode=e,r.currentStaggerTime=i.currentTime-E+(i.startTime-r.currentTimeline.startTime)}}const Wc={};class Jp{constructor(e,n,r,i,o,u,l,d){this._driver=e,this.element=n,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=o,this.errors=u,this.timelines=l,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Wc,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=d||new Yc(this._driver,n,0),l.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,n){if(!e)return;const r=e;let i=this.options;null!=r.duration&&(i.duration=Do(r.duration)),null!=r.delay&&(i.delay=Do(r.delay));const o=r.params;if(o){let u=i.params;u||(u=this.options.params={}),Object.keys(o).forEach(l=>{(!n||!u.hasOwnProperty(l))&&(u[l]=Bc(o[l],u,this.errors))})}}_copyOptions(){const e={};if(this.options){const n=this.options.params;if(n){const r=e.params={};Object.keys(n).forEach(i=>{r[i]=n[i]})}}return e}createSubContext(e=null,n,r){const i=n||this.element,o=new Jp(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(e){return this.previousNode=Wc,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,n,r){const i={duration:null!=n?n:e.duration,delay:this.currentTimeline.currentTime+(null!=r?r:0)+e.delay,easing:""},o=new kO(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(o),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,n,r,i,o,u){let l=[];if(i&&l.push(this.element),e.length>0){e=(e=e.replace(NO,"."+this._enterClassName)).replace(LO,"."+this._leaveClassName);let p=this._driver.query(this.element,e,1!=r);0!==r&&(p=r<0?p.slice(p.length+r,p.length):p.slice(0,r)),l.push(...p)}return!o&&0==l.length&&u.push(function $R(t){return new Y(3014,Le)}()),l}}class Yc{constructor(e,n,r,i){this._driver=e,this.element=n,this.startTime=r,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const n=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||n?(this.forwardTime(this.currentTime+e),n&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,n){return this.applyStylesToKeyframe(),new Yc(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,n){this._localTimelineStyles[e]=n,this._globalTimelineStyles[e]=n,this._styleSummary[e]={time:this.currentTime,value:n}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(n=>{this._backFill[n]=this._globalTimelineStyles[n]||ei,this._currentKeyframe[n]=ei}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,n,r,i){n&&(this._previousKeyframe.easing=n);const o=i&&i.params||{},u=function BO(t,e){const n={};let r;return t.forEach(i=>{"*"===i?(r=r||Object.keys(e),r.forEach(o=>{n[o]=ei})):Li(i,!1,n)}),n}(e,this._globalTimelineStyles);Object.keys(u).forEach(l=>{const d=Bc(u[l],o,r);this._pendingStyles[l]=d,this._localTimelineStyles.hasOwnProperty(l)||(this._backFill[l]=this._globalTimelineStyles.hasOwnProperty(l)?this._globalTimelineStyles[l]:ei),this._updateStyle(l,d)})}applyStylesToKeyframe(){const e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(r=>{this._currentKeyframe[r]=e[r]}),Object.keys(this._localTimelineStyles).forEach(r=>{this._currentKeyframe.hasOwnProperty(r)||(this._currentKeyframe[r]=this._localTimelineStyles[r])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const n=this._localTimelineStyles[e];this._pendingStyles[e]=n,this._updateStyle(e,n)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let n in this._currentKeyframe)e.push(n);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(n=>{const r=this._styleSummary[n],i=e._styleSummary[n];(!r||i.time>r.time)&&this._updateStyle(n,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((l,d)=>{const p=Li(l,!0);Object.keys(p).forEach(m=>{const E=p[m];"!"==E?e.add(m):E==ei&&n.add(m)}),r||(p.offset=d/this.duration),i.push(p)});const o=e.size?Vc(e.values()):[],u=n.size?Vc(n.values()):[];if(r){const l=i[0],d=js(l);l.offset=0,d.offset=1,i=[l,d]}return Zp(this.element,i,o,u,this.duration,this.startTime,this.easing,!1)}}class kO extends Yc{constructor(e,n,r,i,o,u,l=!1){super(e,n,u.delay),this.keyframes=r,this.preStyleProps=i,this.postStyleProps=o,this._stretchStartingKeyframe=l,this.timings={duration:u.duration,delay:u.delay,easing:u.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:n,duration:r,easing:i}=this.timings;if(this._stretchStartingKeyframe&&n){const o=[],u=r+n,l=n/u,d=Li(e[0],!1);d.offset=0,o.push(d);const p=Li(e[0],!1);p.offset=yD(l),o.push(p);const m=e.length-1;for(let E=1;E<=m;E++){let D=Li(e[E],!1);D.offset=yD((n+D.offset*r)/u),o.push(D)}r=u,n=0,i="",e=o}return Zp(this.element,e,this.preStyleProps,this.postStyleProps,r,n,i,!0)}}function yD(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class eg{}class VO extends eg{normalizePropertyName(e,n){return Yp(e)}normalizeStyleValue(e,n,r,i){let o="";const u=r.toString().trim();if(jO[n]&&0!==r&&"0"!==r)if("number"==typeof r)o="px";else{const l=r.match(/^[+-]?[\d\.]+([a-z]*)$/);l&&0==l[1].length&&i.push(function NR(t,e){return new Y(3005,Le)}())}return u+o}}const jO=(()=>function HO(t){const e={};return t.forEach(n=>e[n]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function vD(t,e,n,r,i,o,u,l,d,p,m,E,D){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:u,timelines:l,queriedElements:d,preStyleProps:p,postStyleProps:m,totalTime:E,errors:D}}const tg={};class ED{constructor(e,n,r){this._triggerName=e,this.ast=n,this._stateStyles=r}match(e,n,r,i){return function UO(t,e,n,r,i){return t.some(o=>o(e,n,r,i))}(this.ast.matchers,e,n,r,i)}buildStyles(e,n,r){const i=this._stateStyles["*"],o=this._stateStyles[e],u=i?i.buildStyles(n,r):{};return o?o.buildStyles(n,r):u}build(e,n,r,i,o,u,l,d,p,m){const E=[],D=this.ast.options&&this.ast.options.params||tg,b=this.buildStyles(r,l&&l.params||tg,E),M=d&&d.params||tg,O=this.buildStyles(i,M,E),V=new Set,R=new Map,G=new Map,ie="void"===i,we={params:Object.assign(Object.assign({},D),M)},ot=m?[]:Xp(e,n,this.ast.animation,o,u,b,O,we,p,E);let ct=0;if(ot.forEach(Mn=>{ct=Math.max(Mn.duration+Mn.delay,ct)}),E.length)return vD(n,this._triggerName,r,i,ie,b,O,[],[],R,G,ct,E);ot.forEach(Mn=>{const Rn=Mn.element,Us=Sn(R,Rn,{});Mn.preStyleProps.forEach(sr=>Us[sr]=!0);const ti=Sn(G,Rn,{});Mn.postStyleProps.forEach(sr=>ti[sr]=!0),Rn!==n&&V.add(Rn)});const An=Vc(V.values());return vD(n,this._triggerName,r,i,ie,b,O,ot,An,R,G,ct)}}class GO{constructor(e,n,r){this.styles=e,this.defaultParams=n,this.normalizer=r}buildStyles(e,n){const r={},i=js(this.defaultParams);return Object.keys(e).forEach(o=>{const u=e[o];null!=u&&(i[o]=u)}),this.styles.styles.forEach(o=>{if("string"!=typeof o){const u=o;Object.keys(u).forEach(l=>{let d=u[l];d.length>1&&(d=Bc(d,i,n));const p=this.normalizer.normalizePropertyName(l,n);d=this.normalizer.normalizeStyleValue(l,p,d,n),r[p]=d})}}),r}}class zO{constructor(e,n,r){this.name=e,this.ast=n,this._normalizer=r,this.transitionFactories=[],this.states={},n.states.forEach(i=>{this.states[i.name]=new GO(i.style,i.options&&i.options.params||{},r)}),_D(this.states,"true","1"),_D(this.states,"false","0"),n.transitions.forEach(i=>{this.transitionFactories.push(new ED(e,i,this.states))}),this.fallbackTransition=function qO(t,e,n){return new ED(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(u,l)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,n,r,i){return this.transitionFactories.find(u=>u.match(e,n,r,i))||null}matchStyles(e,n,r){return this.fallbackTransition.buildStyles(e,n,r)}}function _D(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const WO=new qc;class YO{constructor(e,n,r){this.bodyNode=e,this._driver=n,this._normalizer=r,this._animations={},this._playersById={},this.players=[]}register(e,n){const r=[],o=Qp(this._driver,n,r,[]);if(r.length)throw function ZR(t){return new Y(3503,Le)}();this._animations[e]=o}_buildPlayer(e,n,r){const i=e.element,o=X_(0,this._normalizer,0,e.keyframes,n,r);return this._driver.animate(i,o,e.duration,e.delay,e.easing,[],!0)}create(e,n,r={}){const i=[],o=this._animations[e];let u;const l=new Map;if(o?(u=Xp(this._driver,n,o,$p,Fc,{},{},r,WO,i),u.forEach(m=>{const E=Sn(l,m.element,{});m.postStyleProps.forEach(D=>E[D]=null)})):(i.push(function XR(){return new Y(3300,Le)}()),u=[]),i.length)throw function JR(t){return new Y(3504,Le)}();l.forEach((m,E)=>{Object.keys(m).forEach(D=>{m[D]=this._driver.computeStyle(E,D,ei)})});const p=Fi(u.map(m=>{const E=l.get(m.element);return this._buildPlayer(m,{},E)}));return this._playersById[e]=p,p.onDestroy(()=>this.destroy(e)),this.players.push(p),p}destroy(e){const n=this._getPlayer(e);n.destroy(),delete this._playersById[e];const r=this.players.indexOf(n);r>=0&&this.players.splice(r,1)}_getPlayer(e){const n=this._playersById[e];if(!n)throw function eO(t){return new Y(3301,Le)}();return n}listen(e,n,r,i){const o=jp(n,"","","");return Bp(this._getPlayer(e),r,o,i),()=>{}}command(e,n,r,i){if("register"==r)return void this.register(e,i[0]);if("create"==r)return void this.create(e,n,i[0]||{});const o=this._getPlayer(e);switch(r){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}}const DD="ng-animate-queued",ng="ng-animate-disabled",JO=[],ID={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},eP={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},qn="__ng_removed";class rg{constructor(e,n=""){this.namespaceId=n;const r=e&&e.hasOwnProperty("value");if(this.value=function iP(t){return null!=t?t:null}(r?e.value:e),r){const o=js(e);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const n=e.params;if(n){const r=this.options.params;Object.keys(n).forEach(i=>{null==r[i]&&(r[i]=n[i])})}}}const Nu="void",ig=new rg(Nu);class tP{constructor(e,n,r){this.id=e,this.hostElement=n,this._engine=r,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Wn(n,this._hostClassName)}listen(e,n,r,i){if(!this._triggers.hasOwnProperty(n))throw function tO(t,e){return new Y(3302,Le)}();if(null==r||0==r.length)throw function nO(t){return new Y(3303,Le)}();if(!function oP(t){return"start"==t||"done"==t}(r))throw function rO(t,e){return new Y(3400,Le)}();const o=Sn(this._elementListeners,e,[]),u={name:n,phase:r,callback:i};o.push(u);const l=Sn(this._engine.statesByElement,e,{});return l.hasOwnProperty(n)||(Wn(e,Lc),Wn(e,Lc+"-"+n),l[n]=ig),()=>{this._engine.afterFlush(()=>{const d=o.indexOf(u);d>=0&&o.splice(d,1),this._triggers[n]||delete l[n]})}}register(e,n){return!this._triggers[e]&&(this._triggers[e]=n,!0)}_getTrigger(e){const n=this._triggers[e];if(!n)throw function iO(t){return new Y(3401,Le)}();return n}trigger(e,n,r,i=!0){const o=this._getTrigger(n),u=new og(this.id,n,e);let l=this._engine.statesByElement.get(e);l||(Wn(e,Lc),Wn(e,Lc+"-"+n),this._engine.statesByElement.set(e,l={}));let d=l[n];const p=new rg(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&d&&p.absorbOptions(d.options),l[n]=p,d||(d=ig),p.value!==Nu&&d.value===p.value){if(!function uP(t,e){const n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(let i=0;i<n.length;i++){const o=n[i];if(!e.hasOwnProperty(o)||t[o]!==e[o])return!1}return!0}(d.params,p.params)){const M=[],O=o.matchStyles(d.value,d.params,M),V=o.matchStyles(p.value,p.params,M);M.length?this._engine.reportError(M):this._engine.afterFlush(()=>{Io(e,O),Rr(e,V)})}return}const D=Sn(this._engine.playersByElement,e,[]);D.forEach(M=>{M.namespaceId==this.id&&M.triggerName==n&&M.queued&&M.destroy()});let w=o.matchTransition(d.value,p.value,e,p.params),b=!1;if(!w){if(!i)return;w=o.fallbackTransition,b=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:n,transition:w,fromState:d,toState:p,player:u,isFallbackTransition:b}),b||(Wn(e,DD),u.onStart(()=>{Hs(e,DD)})),u.onDone(()=>{let M=this.players.indexOf(u);M>=0&&this.players.splice(M,1);const O=this._engine.playersByElement.get(e);if(O){let V=O.indexOf(u);V>=0&&O.splice(V,1)}}),this.players.push(u),D.push(u),u}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((n,r)=>{delete n[e]}),this._elementListeners.forEach((n,r)=>{this._elementListeners.set(r,n.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const n=this._engine.playersByElement.get(e);n&&(n.forEach(r=>r.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,n){const r=this._engine.driver.query(e,xc,!0);r.forEach(i=>{if(i[qn])return;const o=this._engine.fetchNamespacesByElement(i);o.size?o.forEach(u=>u.triggerLeaveAnimation(i,n,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,n,r,i){const o=this._engine.statesByElement.get(e),u=new Map;if(o){const l=[];if(Object.keys(o).forEach(d=>{if(u.set(d,o[d].value),this._triggers[d]){const p=this.trigger(e,d,Nu,i);p&&l.push(p)}}),l.length)return this._engine.markElementAsRemoved(this.id,e,!0,n,u),r&&Fi(l).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const n=this._elementListeners.get(e),r=this._engine.statesByElement.get(e);if(n&&r){const i=new Set;n.forEach(o=>{const u=o.name;if(i.has(u))return;i.add(u);const d=this._triggers[u].fallbackTransition,p=r[u]||ig,m=new rg(Nu),E=new og(this.id,u,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:u,transition:d,fromState:p,toState:m,player:E,isFallbackTransition:!0})})}}removeNode(e,n){const r=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,n),this.triggerLeaveAnimation(e,n,!0))return;let i=!1;if(r.totalAnimations){const o=r.players.length?r.playersByQueriedElement.get(e):[];if(o&&o.length)i=!0;else{let u=e;for(;u=u.parentNode;)if(r.statesByElement.get(u)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)r.markElementAsRemoved(this.id,e,!1,n);else{const o=e[qn];(!o||o===ID)&&(r.afterFlush(()=>this.clearElementCache(e)),r.destroyInnerAnimations(e),r._onRemovalComplete(e,n))}}insertNode(e,n){Wn(e,this._hostClassName)}drainQueuedTransitions(e){const n=[];return this._queue.forEach(r=>{const i=r.player;if(i.destroyed)return;const o=r.element,u=this._elementListeners.get(o);u&&u.forEach(l=>{if(l.name==r.triggerName){const d=jp(o,r.triggerName,r.fromState.value,r.toState.value);d._data=e,Bp(r.player,l.phase,d,l.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):n.push(r)}),this._queue=[],n.sort((r,i)=>{const o=r.transition.ast.depCount,u=i.transition.ast.depCount;return 0==o||0==u?o-u:this._engine.driver.containsElement(r.element,i.element)?1:-1})}destroy(e){this.players.forEach(n=>n.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let n=!1;return this._elementListeners.has(e)&&(n=!0),n=!!this._queue.find(r=>r.element===e)||n,n}}class nP{constructor(e,n,r){this.bodyNode=e,this.driver=n,this._normalizer=r,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(i,o)=>{}}_onRemovalComplete(e,n){this.onRemovalComplete(e,n)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(n=>{n.players.forEach(r=>{r.queued&&e.push(r)})}),e}createNamespace(e,n){const r=new tP(e,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(r,n):(this.newHostElements.set(n,r),this.collectEnterElement(n)),this._namespaceLookup[e]=r}_balanceNamespaceList(e,n){const r=this._namespaceList,i=this.namespacesByHostElement,o=r.length-1;if(o>=0){let u=!1;if(void 0!==this.driver.getParentElement){let l=this.driver.getParentElement(n);for(;l;){const d=i.get(l);if(d){const p=r.indexOf(d);r.splice(p+1,0,e),u=!0;break}l=this.driver.getParentElement(l)}}else for(let l=o;l>=0;l--)if(this.driver.containsElement(r[l].hostElement,n)){r.splice(l+1,0,e),u=!0;break}u||r.unshift(e)}else r.push(e);return i.set(n,e),e}register(e,n){let r=this._namespaceLookup[e];return r||(r=this.createNamespace(e,n)),r}registerTrigger(e,n,r){let i=this._namespaceLookup[e];i&&i.register(n,r)&&this.totalAnimations++}destroy(e,n){if(!e)return;const r=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(r.hostElement),delete this._namespaceLookup[e];const i=this._namespaceList.indexOf(r);i>=0&&this._namespaceList.splice(i,1)}),this.afterFlushAnimationsDone(()=>r.destroy(n))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const n=new Set,r=this.statesByElement.get(e);if(r){const i=Object.keys(r);for(let o=0;o<i.length;o++){const u=r[i[o]].namespaceId;if(u){const l=this._fetchNamespace(u);l&&n.add(l)}}}return n}trigger(e,n,r,i){if(Qc(n)){const o=this._fetchNamespace(e);if(o)return o.trigger(n,r,i),!0}return!1}insertNode(e,n,r,i){if(!Qc(n))return;const o=n[qn];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const u=this.collectedLeaveElements.indexOf(n);u>=0&&this.collectedLeaveElements.splice(u,1)}if(e){const u=this._fetchNamespace(e);u&&u.insertNode(n,r)}i&&this.collectEnterElement(n)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,n){n?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Wn(e,ng)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Hs(e,ng))}removeNode(e,n,r,i){if(Qc(n)){const o=e?this._fetchNamespace(e):null;if(o?o.removeNode(n,i):this.markElementAsRemoved(e,n,!1,i),r){const u=this.namespacesByHostElement.get(n);u&&u.id!==e&&u.removeNode(n,i)}}else this._onRemovalComplete(n,i)}markElementAsRemoved(e,n,r,i,o){this.collectedLeaveElements.push(n),n[qn]={namespaceId:e,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,n,r,i,o){return Qc(n)?this._fetchNamespace(e).listen(n,r,i,o):()=>{}}_buildInstruction(e,n,r,i,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,r,i,e.fromState.options,e.toState.options,n,o)}destroyInnerAnimations(e){let n=this.driver.query(e,xc,!0);n.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,zp,!0),n.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(e){const n=this.playersByElement.get(e);n&&n.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(e){const n=this.playersByQueriedElement.get(e);n&&n.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Fi(this.players).onDone(()=>e());e()})}processLeaveNode(e){var n;const r=e[qn];if(r&&r.setForRemoval){if(e[qn]=ID,r.namespaceId){this.destroyInnerAnimations(e);const i=this._fetchNamespace(r.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,r.setForRemoval)}(null===(n=e.classList)||void 0===n?void 0:n.contains(ng))&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(e=-1){let n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,i)=>this._balanceNamespaceList(r,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;r<this.collectedEnterElements.length;r++)Wn(this.collectedEnterElements[r],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const r=[];try{n=this._flushAnimations(r,e)}finally{for(let i=0;i<r.length;i++)r[i]()}}else for(let r=0;r<this.collectedLeaveElements.length;r++)this.processLeaveNode(this.collectedLeaveElements[r]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(r=>r()),this._flushFns=[],this._whenQuietFns.length){const r=this._whenQuietFns;this._whenQuietFns=[],n.length?Fi(n).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(e){throw function oO(t){return new Y(3402,Le)}()}_flushAnimations(e,n){const r=new qc,i=[],o=new Map,u=[],l=new Map,d=new Map,p=new Map,m=new Set;this.disabledNodes.forEach(X=>{m.add(X);const ue=this.driver.query(X,".ng-animate-queued",!0);for(let he=0;he<ue.length;he++)m.add(ue[he])});const E=this.bodyNode,D=Array.from(this.statesByElement.keys()),w=bD(D,this.collectedEnterElements),b=new Map;let M=0;w.forEach((X,ue)=>{const he=$p+M++;b.set(ue,he),X.forEach(Ue=>Wn(Ue,he))});const O=[],V=new Set,R=new Set;for(let X=0;X<this.collectedLeaveElements.length;X++){const ue=this.collectedLeaveElements[X],he=ue[qn];he&&he.setForRemoval&&(O.push(ue),V.add(ue),he.hasAnimation?this.driver.query(ue,".ng-star-inserted",!0).forEach(Ue=>V.add(Ue)):R.add(ue))}const G=new Map,ie=bD(D,Array.from(V));ie.forEach((X,ue)=>{const he=Fc+M++;G.set(ue,he),X.forEach(Ue=>Wn(Ue,he))}),e.push(()=>{w.forEach((X,ue)=>{const he=b.get(ue);X.forEach(Ue=>Hs(Ue,he))}),ie.forEach((X,ue)=>{const he=G.get(ue);X.forEach(Ue=>Hs(Ue,he))}),O.forEach(X=>{this.processLeaveNode(X)})});const we=[],ot=[];for(let X=this._namespaceList.length-1;X>=0;X--)this._namespaceList[X].drainQueuedTransitions(n).forEach(he=>{const Ue=he.player,Nt=he.element;if(we.push(Ue),this.collectedEnterElements.length){const on=Nt[qn];if(on&&on.setForMove){if(on.previousTriggersValues&&on.previousTriggersValues.has(he.triggerName)){const wo=on.previousTriggersValues.get(he.triggerName),ki=this.statesByElement.get(he.element);ki&&ki[he.triggerName]&&(ki[he.triggerName].value=wo)}return void Ue.destroy()}}const Or=!E||!this.driver.containsElement(E,Nt),On=G.get(Nt),xi=b.get(Nt),dt=this._buildInstruction(he,r,xi,On,Or);if(dt.errors&&dt.errors.length)return void ot.push(dt);if(Or)return Ue.onStart(()=>Io(Nt,dt.fromStyles)),Ue.onDestroy(()=>Rr(Nt,dt.toStyles)),void i.push(Ue);if(he.isFallbackTransition)return Ue.onStart(()=>Io(Nt,dt.fromStyles)),Ue.onDestroy(()=>Rr(Nt,dt.toStyles)),void i.push(Ue);const LD=[];dt.timelines.forEach(on=>{on.stretchStartingKeyframe=!0,this.disabledNodes.has(on.element)||LD.push(on)}),dt.timelines=LD,r.append(Nt,dt.timelines),u.push({instruction:dt,player:Ue,element:Nt}),dt.queriedElements.forEach(on=>Sn(l,on,[]).push(Ue)),dt.preStyleProps.forEach((on,wo)=>{const ki=Object.keys(on);if(ki.length){let bo=d.get(wo);bo||d.set(wo,bo=new Set),ki.forEach(ug=>bo.add(ug))}}),dt.postStyleProps.forEach((on,wo)=>{const ki=Object.keys(on);let bo=p.get(wo);bo||p.set(wo,bo=new Set),ki.forEach(ug=>bo.add(ug))})});if(ot.length){const X=[];ot.forEach(ue=>{X.push(function sO(t,e){return new Y(3505,Le)}())}),we.forEach(ue=>ue.destroy()),this.reportError(X)}const ct=new Map,An=new Map;u.forEach(X=>{const ue=X.element;r.has(ue)&&(An.set(ue,ue),this._beforeAnimationBuild(X.player.namespaceId,X.instruction,ct))}),i.forEach(X=>{const ue=X.element;this._getPreviousPlayers(ue,!1,X.namespaceId,X.triggerName,null).forEach(Ue=>{Sn(ct,ue,[]).push(Ue),Ue.destroy()})});const Mn=O.filter(X=>CD(X,d,p)),Rn=new Map;wD(Rn,this.driver,R,p,ei).forEach(X=>{CD(X,d,p)&&Mn.push(X)});const ti=new Map;w.forEach((X,ue)=>{wD(ti,this.driver,new Set(X),d,"!")}),Mn.forEach(X=>{const ue=Rn.get(X),he=ti.get(X);Rn.set(X,Object.assign(Object.assign({},ue),he))});const sr=[],Gs=[],$s={};u.forEach(X=>{const{element:ue,player:he,instruction:Ue}=X;if(r.has(ue)){if(m.has(ue))return he.onDestroy(()=>Rr(ue,Ue.toStyles)),he.disabled=!0,he.overrideTotalTime(Ue.totalTime),void i.push(he);let Nt=$s;if(An.size>1){let On=ue;const xi=[];for(;On=On.parentNode;){const dt=An.get(On);if(dt){Nt=dt;break}xi.push(On)}xi.forEach(dt=>An.set(dt,Nt))}const Or=this._buildAnimation(he.namespaceId,Ue,ct,o,ti,Rn);if(he.setRealPlayer(Or),Nt===$s)sr.push(he);else{const On=this.playersByElement.get(Nt);On&&On.length&&(he.parentPlayer=Fi(On)),i.push(he)}}else Io(ue,Ue.fromStyles),he.onDestroy(()=>Rr(ue,Ue.toStyles)),Gs.push(he),m.has(ue)&&i.push(he)}),Gs.forEach(X=>{const ue=o.get(X.element);if(ue&&ue.length){const he=Fi(ue);X.setRealPlayer(he)}}),i.forEach(X=>{X.parentPlayer?X.syncPlayerEvents(X.parentPlayer):X.destroy()});for(let X=0;X<O.length;X++){const ue=O[X],he=ue[qn];if(Hs(ue,Fc),he&&he.hasAnimation)continue;let Ue=[];if(l.size){let Or=l.get(ue);Or&&Or.length&&Ue.push(...Or);let On=this.driver.query(ue,zp,!0);for(let xi=0;xi<On.length;xi++){let dt=l.get(On[xi]);dt&&dt.length&&Ue.push(...dt)}}const Nt=Ue.filter(Or=>!Or.destroyed);Nt.length?sP(this,ue,Nt):this.processLeaveNode(ue)}return O.length=0,sr.forEach(X=>{this.players.push(X),X.onDone(()=>{X.destroy();const ue=this.players.indexOf(X);this.players.splice(ue,1)}),X.play()}),sr}elementContainsData(e,n){let r=!1;const i=n[qn];return i&&i.setForRemoval&&(r=!0),this.playersByElement.has(n)&&(r=!0),this.playersByQueriedElement.has(n)&&(r=!0),this.statesByElement.has(n)&&(r=!0),this._fetchNamespace(e).elementContainsData(n)||r}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,n,r,i,o){let u=[];if(n){const l=this.playersByQueriedElement.get(e);l&&(u=l)}else{const l=this.playersByElement.get(e);if(l){const d=!o||o==Nu;l.forEach(p=>{p.queued||!d&&p.triggerName!=i||u.push(p)})}}return(r||i)&&(u=u.filter(l=>!(r&&r!=l.namespaceId||i&&i!=l.triggerName))),u}_beforeAnimationBuild(e,n,r){const o=n.element,u=n.isRemovalTransition?void 0:e,l=n.isRemovalTransition?void 0:n.triggerName;for(const d of n.timelines){const p=d.element,m=p!==o,E=Sn(r,p,[]);this._getPreviousPlayers(p,m,u,l,n.toState).forEach(w=>{const b=w.getRealPlayer();b.beforeDestroy&&b.beforeDestroy(),w.destroy(),E.push(w)})}Io(o,n.fromStyles)}_buildAnimation(e,n,r,i,o,u){const l=n.triggerName,d=n.element,p=[],m=new Set,E=new Set,D=n.timelines.map(b=>{const M=b.element;m.add(M);const O=M[qn];if(O&&O.removedBeforeQueried)return new Ou(b.duration,b.delay);const V=M!==d,R=function aP(t){const e=[];return SD(t,e),e}((r.get(M)||JO).map(ct=>ct.getRealPlayer())).filter(ct=>!!ct.element&&ct.element===M),G=o.get(M),ie=u.get(M),we=X_(0,this._normalizer,0,b.keyframes,G,ie),ot=this._buildPlayer(b,we,R);if(b.subTimeline&&i&&E.add(M),V){const ct=new og(e,l,M);ct.setRealPlayer(ot),p.push(ct)}return ot});p.forEach(b=>{Sn(this.playersByQueriedElement,b.element,[]).push(b),b.onDone(()=>function rP(t,e,n){let r;if(t instanceof Map){if(r=t.get(e),r){if(r.length){const i=r.indexOf(n);r.splice(i,1)}0==r.length&&t.delete(e)}}else if(r=t[e],r){if(r.length){const i=r.indexOf(n);r.splice(i,1)}0==r.length&&delete t[e]}return r}(this.playersByQueriedElement,b.element,b))}),m.forEach(b=>Wn(b,uD));const w=Fi(D);return w.onDestroy(()=>{m.forEach(b=>Hs(b,uD)),Rr(d,n.toStyles)}),E.forEach(b=>{Sn(i,b,[]).push(w)}),w}_buildPlayer(e,n,r){return n.length>0?this.driver.animate(e.element,n,e.duration,e.delay,e.easing,r):new Ou(e.duration,e.delay)}}class og{constructor(e,n,r){this.namespaceId=e,this.triggerName=n,this.element=r,this._player=new Ou,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(n=>{this._queuedCallbacks[n].forEach(r=>Bp(e,n,void 0,r))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const n=this._player;n.triggerCallback&&e.onStart(()=>n.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,n){Sn(this._queuedCallbacks,e,[]).push(n)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const n=this._player;n.triggerCallback&&n.triggerCallback(e)}}function Qc(t){return t&&1===t.nodeType}function TD(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function wD(t,e,n,r,i){const o=[];n.forEach(d=>o.push(TD(d)));const u=[];r.forEach((d,p)=>{const m={};d.forEach(E=>{const D=m[E]=e.computeStyle(p,E,i);(!D||0==D.length)&&(p[qn]=eP,u.push(p))}),t.set(p,m)});let l=0;return n.forEach(d=>TD(d,o[l++])),u}function bD(t,e){const n=new Map;if(t.forEach(l=>n.set(l,[])),0==e.length)return n;const i=new Set(e),o=new Map;function u(l){if(!l)return 1;let d=o.get(l);if(d)return d;const p=l.parentNode;return d=n.has(p)?p:i.has(p)?1:u(p),o.set(l,d),d}return e.forEach(l=>{const d=u(l);1!==d&&n.get(d).push(l)}),n}function Wn(t,e){var n;null===(n=t.classList)||void 0===n||n.add(e)}function Hs(t,e){var n;null===(n=t.classList)||void 0===n||n.remove(e)}function sP(t,e,n){Fi(n).onDone(()=>t.processLeaveNode(e))}function SD(t,e){for(let n=0;n<t.length;n++){const r=t[n];r instanceof K_?SD(r.players,e):e.push(r)}}function CD(t,e,n){const r=n.get(t);if(!r)return!1;let i=e.get(t);return i?r.forEach(o=>i.add(o)):e.set(t,r),n.delete(t),!0}class Kc{constructor(e,n,r){this.bodyNode=e,this._driver=n,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(i,o)=>{},this._transitionEngine=new nP(e,n,r),this._timelineEngine=new YO(e,n,r),this._transitionEngine.onRemovalComplete=(i,o)=>this.onRemovalComplete(i,o)}registerTrigger(e,n,r,i,o){const u=e+"-"+i;let l=this._triggerCache[u];if(!l){const d=[],m=Qp(this._driver,o,d,[]);if(d.length)throw function QR(t,e){return new Y(3404,Le)}();l=function $O(t,e,n){return new zO(t,e,n)}(i,m,this._normalizer),this._triggerCache[u]=l}this._transitionEngine.registerTrigger(n,i,l)}register(e,n){this._transitionEngine.register(e,n)}destroy(e,n){this._transitionEngine.destroy(e,n)}onInsert(e,n,r,i){this._transitionEngine.insertNode(e,n,r,i)}onRemove(e,n,r,i){this._transitionEngine.removeNode(e,n,i||!1,r)}disableAnimations(e,n){this._transitionEngine.markElementAsDisabled(e,n)}process(e,n,r,i){if("@"==r.charAt(0)){const[o,u]=J_(r);this._timelineEngine.command(o,n,u,i)}else this._transitionEngine.trigger(e,n,r,i)}listen(e,n,r,i,o){if("@"==r.charAt(0)){const[u,l]=J_(r);return this._timelineEngine.listen(u,n,l,o)}return this._transitionEngine.listen(e,n,r,i,o)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let cP=(()=>{class t{constructor(n,r,i){this._element=n,this._startStyles=r,this._endStyles=i,this._state=0;let o=t.initialStylesByElement.get(n);o||t.initialStylesByElement.set(n,o={}),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Rr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Rr(this._element,this._initialStyles),this._endStyles&&(Rr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Io(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Io(this._element,this._endStyles),this._endStyles=null),Rr(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function sg(t){let e=null;const n=Object.keys(t);for(let r=0;r<n.length;r++){const i=n[r];dP(i)&&(e=e||{},e[i]=t[i])}return e}function dP(t){return"display"===t||"position"===t}class AD{constructor(e,n,r,i){this.element=e,this.keyframes=n,this.options=r,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,n,r){return e.animate(n,r)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};if(this.hasStarted()){const n=this._finalKeyframe;Object.keys(n).forEach(r=>{"offset"!=r&&(e[r]=this._finished?n[r]:hD(this.element,r))})}this.currentSnapshot=e}triggerCallback(e){const n="start"==e?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}}class fP{validateStyleProperty(e){return rD(e)}matchesElement(e,n){return!1}containsElement(e,n){return iD(e,n)}getParentElement(e){return Up(e)}query(e,n,r){return oD(e,n,r)}computeStyle(e,n,r){return window.getComputedStyle(e)[n]}animate(e,n,r,i,o,u=[]){const d={duration:r,delay:i,fill:0==i?"both":"forwards"};o&&(d.easing=o);const p={},m=u.filter(D=>D instanceof AD);(function mO(t,e){return 0===t||0===e})(r,i)&&m.forEach(D=>{let w=D.currentSnapshot;Object.keys(w).forEach(b=>p[b]=w[b])}),n=function yO(t,e,n){const r=Object.keys(n);if(r.length&&e.length){let o=e[0],u=[];if(r.forEach(l=>{o.hasOwnProperty(l)||u.push(l),o[l]=n[l]}),u.length)for(var i=1;i<e.length;i++){let l=e[i];u.forEach(function(d){l[d]=hD(t,d)})}}return e}(e,n=n.map(D=>Li(D,!1)),p);const E=function lP(t,e){let n=null,r=null;return Array.isArray(e)&&e.length?(n=sg(e[0]),e.length>1&&(r=sg(e[e.length-1]))):e&&(n=sg(e)),n||r?new cP(t,n,r):null}(e,n);return new AD(e,n,d,E)}}let hP=(()=>{class t extends q_{constructor(n,r){super(),this._nextAnimationId=0,this._renderer=n.createRenderer(r.body,{id:"0",encapsulation:vn.None,styles:[],data:{animation:[]}})}build(n){const r=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(n)?W_(n):n;return MD(this._renderer,null,r,"register",[i]),new pP(r,this._renderer)}}return t.\u0275fac=function(n){return new(n||t)(Se(vu),Se(Un))},t.\u0275prov=Ye({token:t,factory:t.\u0275fac}),t})();class pP extends class CR{}{constructor(e,n){super(),this._id=e,this._renderer=n}create(e,n){return new gP(this._id,e,n||{},this._renderer)}}class gP{constructor(e,n,r,i){this.id=e,this.element=n,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}_listen(e,n){return this._renderer.listen(this.element,`@@${this.id}:${e}`,n)}_command(e,...n){return MD(this._renderer,this.element,this.id,e,n)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(e){this._command("setPosition",e)}getPosition(){var e,n;return null!==(n=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==n?n:0}}function MD(t,e,n,r,i){return t.setProperty(e,`@@${n}:${r}`,i)}const RD="@.disabled";let mP=(()=>{class t{constructor(n,r,i){this.delegate=n,this.engine=r,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),r.onRemovalComplete=(o,u)=>{const l=null==u?void 0:u.parentNode(o);l&&u.removeChild(l,o)}}createRenderer(n,r){const o=this.delegate.createRenderer(n,r);if(!(n&&r&&r.data&&r.data.animation)){let m=this._rendererCache.get(o);return m||(m=new OD("",o,this.engine),this._rendererCache.set(o,m)),m}const u=r.id,l=r.id+"-"+this._currentId;this._currentId++,this.engine.register(l,n);const d=m=>{Array.isArray(m)?m.forEach(d):this.engine.registerTrigger(u,l,n,m.name,m)};return r.data.animation.forEach(d),new yP(this,l,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(n,r,i){n>=0&&n<this._microtaskId?this._zone.run(()=>r(i)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[u,l]=o;u(l)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([r,i]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(n){return new(n||t)(Se(vu),Se(Kc),Se(Pt))},t.\u0275prov=Ye({token:t,factory:t.\u0275fac}),t})();class OD{constructor(e,n,r){this.namespaceId=e,this.delegate=n,this.engine=r,this.destroyNode=this.delegate.destroyNode?i=>n.destroyNode(i):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,n){return this.delegate.createElement(e,n)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,n){this.delegate.appendChild(e,n),this.engine.onInsert(this.namespaceId,n,e,!1)}insertBefore(e,n,r,i=!0){this.delegate.insertBefore(e,n,r),this.engine.onInsert(this.namespaceId,n,e,i)}removeChild(e,n,r){this.engine.onRemove(this.namespaceId,n,this.delegate,r)}selectRootElement(e,n){return this.delegate.selectRootElement(e,n)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,n,r,i){this.delegate.setAttribute(e,n,r,i)}removeAttribute(e,n,r){this.delegate.removeAttribute(e,n,r)}addClass(e,n){this.delegate.addClass(e,n)}removeClass(e,n){this.delegate.removeClass(e,n)}setStyle(e,n,r,i){this.delegate.setStyle(e,n,r,i)}removeStyle(e,n,r){this.delegate.removeStyle(e,n,r)}setProperty(e,n,r){"@"==n.charAt(0)&&n==RD?this.disableAnimations(e,!!r):this.delegate.setProperty(e,n,r)}setValue(e,n){this.delegate.setValue(e,n)}listen(e,n,r){return this.delegate.listen(e,n,r)}disableAnimations(e,n){this.engine.disableAnimations(e,n)}}class yP extends OD{constructor(e,n,r,i){super(n,r,i),this.factory=e,this.namespaceId=n}setProperty(e,n,r){"@"==n.charAt(0)?"."==n.charAt(1)&&n==RD?this.disableAnimations(e,r=void 0===r||!!r):this.engine.process(this.namespaceId,e,n.substr(1),r):this.delegate.setProperty(e,n,r)}listen(e,n,r){if("@"==n.charAt(0)){const i=function vP(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(e);let o=n.substr(1),u="";return"@"!=o.charAt(0)&&([o,u]=function EP(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(o)),this.engine.listen(this.namespaceId,i,o,u,l=>{this.factory.scheduleListenerCallback(l._data||-1,r,l)})}return this.delegate.listen(e,n,r)}}let _P=(()=>{class t extends Kc{constructor(n,r,i){super(n.body,r,i)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(n){return new(n||t)(Se(Un),Se(Gp),Se(eg))},t.\u0275prov=Ye({token:t,factory:t.\u0275fac}),t})();const PD=new Fe("AnimationModuleType"),ND=[{provide:q_,useClass:hP},{provide:eg,useFactory:function DP(){return new VO}},{provide:Kc,useClass:_P},{provide:vu,useFactory:function IP(t,e,n){return new mP(t,e,n)},deps:[Rc,Kc,Pt]}],FD=[{provide:Gp,useFactory:()=>new fP},{provide:PD,useValue:"BrowserAnimations"},...ND],TP=[{provide:Gp,useClass:sD},{provide:PD,useValue:"NoopAnimations"},...ND];let wP=(()=>{class t{static withConfig(n){return{ngModule:t,providers:n.disableAnimations?TP:FD}}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=ai({type:t}),t.\u0275inj=ur({providers:FD,imports:[H_]}),t})();var bP=Pn(452),SP=Pn.n(bP),CP=Pn(212),AP=Pn.n(CP),Xc=Pn(917);const MP=(0,Xc.supported)(),RP=["id","name","class","multiple","required","disabled","capture","accept"],OP=["setOptions","on","off","onOnce","appendTo","insertAfter","insertBefore","isAttachedTo","replaceElement","restoreElement","destroy"],ag=["oninit","onwarning","onerror","onactivatefile","onaddfilestart","onaddfileprogress","onaddfile","onprocessfilestart","onprocessfileprogress","onprocessfileabort","onprocessfilerevert","onprocessfile","onprocessfiles","onremovefile","onpreparefile","onupdatefiles"];let PP=(()=>{class t{constructor(n,r){this.options={},this.handleEvent=null,this.root=n,this.zone=r,ag.forEach(i=>{this[i]=new Ar})}ngAfterViewInit(){const n=this.root.nativeElement.querySelector("input"),r=this.root.nativeElement.attributes;RP.forEach(i=>{const o=r[i]?r[i].value:this.options[i];!o||n.setAttribute(i,o)}),MP&&(this.handleEvent=i=>{this[`on${i.type.split(":")[1]}`].emit(Object.assign({},i.detail))},ag.forEach(i=>{this.root.nativeElement.addEventListener(`FilePond:${i.substr(2)}`,this.handleEvent)}),this.zone.runOutsideAngular(()=>{this.pond=(0,Xc.create)(n,Object.assign({},this.options,{files:this.files}))}),Object.keys(this.pond).filter(i=>-1===OP.indexOf(i)).forEach(i=>{this[i]=this.pond[i]}))}ngOnChanges(n){if(n.firstChange||!this.pond)return;const r=n.options?n.options.currentValue:this.options;n.files&&JSON.stringify(n.files.previousValue)!==JSON.stringify(n.files.currentValue)&&(r.files=n.files.currentValue),this.pond.setOptions(r)}ngOnDestroy(){!this.pond||(ag.forEach(n=>{this.root.nativeElement.removeEventListener(`FilePond:${n.substr(2)}`,this.handleEvent)}),this.pond.destroy())}}return t.\u0275fac=function(n){return new(n||t)(be(yo),be(Pt))},t.\u0275cmp=ca({type:t,selectors:[["file-pond"]],inputs:{options:"options",files:"files"},outputs:{oninit:"oninit",onwarning:"onwarning",onerror:"onerror",onactivatefile:"onactivatefile",onaddfilestart:"onaddfilestart",onaddfileprogress:"onaddfileprogress",onaddfile:"onaddfile",onprocessfilestart:"onprocessfilestart",onprocessfileprogress:"onprocessfileprogress",onprocessfileabort:"onprocessfileabort",onprocessfilerevert:"onprocessfilerevert",onprocessfile:"onprocessfile",onprocessfiles:"onprocessfiles",onremovefile:"onremovefile",onpreparefile:"onpreparefile",onupdatefiles:"onupdatefiles"},features:[ci],decls:2,vars:0,consts:[[1,"filepond--wrapper"],["type","file"]],template:function(n,r){1&n&&(du(0,"div",0),Th(1,"input",1),fu())},styles:[""],encapsulation:2}),t})(),NP=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=ai({type:t}),t.\u0275inj=ur({imports:[[M_]]}),t})();const FP=["myPond"];let LP=(()=>{class t{constructor(){this.initialFiles=[],this.pondOptions={instantUpload:!0,allowDownloadByUrl:!0,server:{process:(n,r,i,o,u,l,d)=>(this.onUpload(null,[{fieldName:n,file:r,fileName:r.name}]).then(p=>o(p)).catch(p=>u(p)),{abort:()=>{d()}}),revert:(n,r,i)=>{this.onRemoveUploaded({fileId:n}).then(o=>r()).catch(o=>i(o))}}}}pondInit(){for(const n of this.initialFiles)this.myPond.addFile(n.id,{type:"limbo",file:{name:n.fileName,size:n.length},metadata:{url:n.downloadUrl}})}ngOnChanges(n){this.pondOptions=Object.assign(Object.assign(Object.assign({},this.pondOptions),{allowMultiple:!!this.allowMultiple}),this.filePondOptions||{})}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=ca({type:t,selectors:[["drayman-file-uploader-internal"]],viewQuery:function(n,r){if(1&n&&EE(FP,5),2&n){let i;vE(i=function _E(){return function hC(t,e){return t[19].queries[e].queryList}(F(),Xi())}())&&(r.myPond=i.first)}},inputs:{onUpload:"onUpload",onRemoveUploaded:"onRemoveUploaded",allowMultiple:"allowMultiple",filePondOptions:"filePondOptions",initialFiles:"initialFiles"},features:[ci],decls:2,vars:1,consts:[["aria-label","File uploader",3,"options","oninit"],["myPond",""]],template:function(n,r){1&n&&(du(0,"file-pond",0,1),Ch("oninit",function(){return r.pondInit()}),fu()),2&n&&Dh("options",r.pondOptions)},directives:[PP],styles:[""]}),t})();(0,Xc.registerPlugin)(AP()),(0,Xc.registerPlugin)(SP());let xP=(()=>{class t{constructor(n){this.injector=n}ngDoBootstrap(){const n=function SR(t,e){const n=function ER(t,e){return e.get(Ls).resolveComponentFactory(t).inputs}(t,e.injector),r=e.strategyFactory||new TR(t,e.injector),i=function vR(t){const e={};return t.forEach(({propName:n,templateName:r})=>{e[function hR(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}(r)]=n}),e}(n);class o extends bR{constructor(l){super(),this.injector=l}get ngElementStrategy(){if(!this._ngElementStrategy){const l=this._ngElementStrategy=r.create(this.injector||e.injector);n.forEach(({propName:d})=>{if(!this.hasOwnProperty(d))return;const p=this[d];delete this[d],l.setInputValue(d,p)})}return this._ngElementStrategy}attributeChangedCallback(l,d,p,m){this.ngElementStrategy.setInputValue(i[l],p)}connectedCallback(){let l=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),l=!0),this.ngElementStrategy.connect(this),l||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(l=>{const d=new CustomEvent(l.name,{detail:l.value});this.dispatchEvent(d)})}}return o.observedAttributes=Object.keys(i),n.forEach(({propName:u})=>{Object.defineProperty(o.prototype,u,{get(){return this.ngElementStrategy.getInputValue(u)},set(l){this.ngElementStrategy.setInputValue(u,l)},configurable:!0,enumerable:!0})}),o}(LP,{injector:this.injector});customElements.define("drayman-file-uploader",n)}}return t.\u0275fac=function(n){return new(n||t)(Se(jn))},t.\u0275mod=ai({type:t}),t.\u0275inj=ur({imports:[[H_,wP,NP]]}),t})();(function e0(){XE=!1})(),BM().bootstrapModule(xP).catch(t=>console.error(t))})()})();