@mxtommy/kip 4.2.0 → 4.3.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.
- package/.github/copilot-instructions.md +1 -1
- package/.github/instructions/project.instructions.md +7 -1
- package/.github/workflows/ci.yml +37 -0
- package/CHANGELOG.md +10 -0
- package/package.json +2 -4
- package/public/3rdpartylicenses.txt +52 -75
- package/public/assets/svg/icons.svg +3 -0
- package/public/{chunk-7SK25B6D.js → chunk-2KZMRA4F.js} +1 -1
- package/public/{chunk-2VPC34OU.js → chunk-3Z6GSUML.js} +6 -6
- package/public/{chunk-XWOIVPRO.js → chunk-4LGDIZQH.js} +1 -1
- package/public/{chunk-SP4UPLYW.js → chunk-5QZ2G7BQ.js} +4 -4
- package/public/{chunk-5SCAJ637.js → chunk-BICTPGGI.js} +1 -1
- package/public/{chunk-4NAXE7SZ.js → chunk-BU2UG7KI.js} +8 -8
- package/public/chunk-E57JLACD.js +8 -0
- package/public/{chunk-PJZLX3XW.js → chunk-GDSV24J2.js} +1 -1
- package/public/chunk-GSMU2M4Y.js +15 -0
- package/public/{chunk-DWMZAC65.js → chunk-H7SICK4W.js} +1 -1
- package/public/{chunk-WON6RAF5.js → chunk-JE4IH556.js} +1 -1
- package/public/chunk-KC4TEJJN.js +4 -0
- package/public/chunk-KQY62HN7.js +1 -0
- package/public/{chunk-CX4O7M4U.js → chunk-KXSGKJ7X.js} +4 -4
- package/public/{chunk-UUOWRIVR.js → chunk-N77C4M4I.js} +1 -1
- package/public/{chunk-K6B4TD2H.js → chunk-ODGDFFA5.js} +2 -2
- package/public/{chunk-NL5QCOXT.js → chunk-OIUDA44M.js} +2 -2
- package/public/chunk-SGKVVF2R.js +8 -0
- package/public/{chunk-GDL5ORNF.js → chunk-T26GJV5O.js} +1 -1
- package/public/chunk-UM5PEESF.js +53 -0
- package/public/chunk-WGS5SNGF.js +3 -0
- package/public/{chunk-FHQZULYJ.js → chunk-WUZG34V4.js} +1 -1
- package/public/{chunk-PNFBM2CP.js → chunk-ZPAB6RAF.js} +1 -1
- package/public/chunk-ZQJMMQNG.js +2 -0
- package/public/index.html +1 -1
- package/public/main-2EXNI6Z4.js +1 -0
- package/public/polyfills-L4FJGPOC.js +2 -0
- package/public/chunk-36RQFRQN.js +0 -4
- package/public/chunk-3KBT35BP.js +0 -3
- package/public/chunk-6X3BMVOP.js +0 -8
- package/public/chunk-ATH26UZ7.js +0 -1
- package/public/chunk-FGMEEOZH.js +0 -5
- package/public/chunk-MOEZSWFX.js +0 -15
- package/public/chunk-PVUOCOI5.js +0 -53
- package/public/chunk-Y5TQMH7M.js +0 -2
- package/public/main-CRPMOYEB.js +0 -4
- package/public/polyfills-GNK4EEYZ.js +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as ft}from"./chunk-WGS5SNGF.js";import{a as Et,b as N,c as at,h as de,j as T,k as pe,l as rt,n as me,o as fe,t as st}from"./chunk-UM5PEESF.js";import{c as ae}from"./chunk-SGKVVF2R.js";import{a as be,b as Ce,c as Se,d as ye,e as we,f as Me}from"./chunk-5QZ2G7BQ.js";import{a as ve}from"./chunk-JE4IH556.js";import{c as ue,f as he,g as ge,i as _e}from"./chunk-OIUDA44M.js";import{b as xe,g as ke}from"./chunk-KXSGKJ7X.js";import{c as nt,d as ot,e as K,f as B,g as re,h as se,i as ce,j as le}from"./chunk-KC4TEJJN.js";import"./chunk-WUZG34V4.js";import{a as tt,b as $t,c as P,e as jt,f as qt,g as Gt}from"./chunk-2KZMRA4F.js";import{a as oe}from"./chunk-4LGDIZQH.js";import{a as ee,g as ie,u as ne}from"./chunk-E57JLACD.js";import{c as Ut,e as Vt,h as F,i as Y,k as I,l as X,m as M}from"./chunk-GDSV24J2.js";import{a as Zt,k as it,q as Xt,t as te}from"./chunk-ZQJMMQNG.js";import{$b as W,$d as Qt,A as gt,Ab as C,Ba as St,Bb as G,Bc as Dt,Ce as L,Db as U,De as A,Eb as V,Fb as w,Ga as yt,Gb as o,Gc as At,Ha as y,Hb as s,Hc as J,Ia as z,Ib as x,Jc as mt,K as q,Ka as wt,Kc as Tt,Kd as Wt,Pb as v,Rb as u,Tb as g,U as _t,Xa as f,a as ut,ac as Q,ba as vt,bc as kt,c as ht,dc as Ot,f as R,fd as Rt,gc as l,hc as H,ib as O,ic as It,jd as Ft,je as Jt,kd as Lt,la as S,lc as lt,ld as Kt,mc as dt,md as Bt,nc as pt,ne as et,od as Z,oe as Yt,pd as _,qa as a,qd as zt,qe as D,rd as Ht,sa as bt,tb as Mt,va as p,w as $,wa as m,wc as Pt,xb as xt,yc as Nt,z as j,za as Ct,zb as b}from"./chunk-GSMU2M4Y.js";var ct=(i,c)=>{let t=a(M),e=a(P),n=t.getSplitShellEnabled(),r="/"+c.map(k=>k.path).join("/"),d=r.startsWith("/chartplotter"),h=r.startsWith("/dashboard");if(n&&h&&!d){let k=c.length>1?c[1].path:void 0;return e.createUrlTree(["chartplotter",k??""])}if(!n&&d){let k=c.length>1?c[1].path:void 0;return e.createUrlTree(["dashboard",k??""])}return!0};var Oe=[{path:"dashboard/:id",component:ft,canMatch:[ct]},{path:"chartplotter/:id",loadComponent:()=>import("./chunk-H7SICK4W.js").then(i=>i.SplitShellComponent),canMatch:[ct]},{path:"settings",loadComponent:()=>import("./chunk-ODGDFFA5.js").then(i=>i.SettingsComponent),title:"KIP - Settings"},{path:"options",loadComponent:()=>import("./chunk-BU2UG7KI.js").then(i=>i.TabsComponent),title:"KIP - Options"},{path:"remote",loadComponent:()=>import("./chunk-BICTPGGI.js").then(i=>i.RemoteControlComponent),title:"KIP - Remote Control"},{path:"help",loadComponent:()=>import("./chunk-ZPAB6RAF.js").then(i=>i.AppHelpComponent),title:"KIP - Help"},{path:"data",loadComponent:()=>import("./chunk-3Z6GSUML.js").then(i=>i.DataInspectorComponent),title:"KIP - Data Inspector"},{path:"login",loadComponent:()=>import("./chunk-KQY62HN7.js").then(i=>i.WidgetLoginComponent),title:"Login"},{path:"**",component:ft,canMatch:[ct]}];var Ie={production:!0};var ze=(i,c)=>c.path;function He(i,c){i&1&&(o(0,"mat-icon"),l(1,"info"),s())}function $e(i,c){i&1&&(o(0,"mat-icon"),l(1,"info"),s())}function je(i,c){i&1&&(o(0,"mat-icon",3),l(1,"report"),s())}function qe(i,c){i&1&&(o(0,"mat-icon",4),l(1,"warning"),s())}function Ge(i,c){i&1&&(o(0,"mat-icon",5),l(1,"error"),s())}function We(i,c){i&1&&(o(0,"mat-icon",6),l(1,"emergency_home"),s())}function Qe(i,c){if(i&1){let t=v();o(0,"div",2),b(1,He,2,0,"mat-icon")(2,$e,2,0,"mat-icon")(3,je,2,0,"mat-icon",3)(4,qe,2,0,"mat-icon",4)(5,Ge,2,0,"mat-icon",5)(6,We,2,0,"mat-icon",6),o(7,"div",7),l(8),s(),o(9,"div",8),l(10),Pt(11,"slice"),s(),o(12,"div",9),l(13),s(),o(14,"button",10),u("click",function(){let n=p(t).$implicit,r=g();return m(r.silence(n.path))}),o(15,"mat-icon"),l(16,"music_off"),s()(),o(17,"button",11),u("click",function(){let n=p(t).$implicit,r=g();return m(r.clear(n.path))}),o(18,"mat-icon"),l(19,"published_with_changes"),s()()(),x(20,"mat-divider",12)}if(i&2){let t,e=c.$implicit;f(),C((t=e.value.state)==="nominal"?1:t==="normal"?2:t==="alert"?3:t==="warn"?4:t==="alarm"?5:t==="emergency"?6:-1),f(7),H(e.value.state),f(2),It(" ",Nt(11,5,e.path,14)," "),f(3),H(e.value.message),f(),w("disabled",!(e.value.method!=null&&e.value.method.includes("sound")))}}function Je(i,c){i&1&&(o(0,"mat-list-item",13)(1,"span",15),l(2,"Notifications Disabled"),s(),o(3,"span")(4,"i"),l(5,"*Enable notifications in Settings."),s()()())}function Ye(i,c){i&1&&(o(0,"mat-list-item",14)(1,"i"),l(2,'"No Notification"'),s()())}function Ze(i,c){if(i&1&&b(0,Je,6,0,"mat-list-item",13)(1,Ye,3,0,"mat-list-item",14),i&2){let t=g();C(t.notificationConfig().disableNotifications?0:1)}}function Xe(i,c){if(i&1){let t=v();o(0,"button",17),u("click",function(){p(t);let n=g(2);return m(n.mutePlayer(!n.isMuted))}),o(1,"span",18),l(2,"volume_up"),s(),l(3," Unmute Audio "),s()}}function ti(i,c){if(i&1){let t=v();o(0,"button",17),u("click",function(){p(t);let n=g(2);return m(n.mutePlayer(!n.isMuted))}),o(1,"span",18),l(2,"volume_off"),s(),l(3," Mute Audio "),s()}}function ei(i,c){if(i&1&&b(0,Xe,4,0,"button",16)(1,ti,4,0,"button",16),i&2){let t=g();C(t.isMuted?0:1)}}var De=(()=>{class i{_notificationsService=a(T);_notifications$=this._notificationsService.observeNotifications();notificationConfig=_(this._notificationsService.observeNotificationConfiguration(),{requireSync:!0});menuNotifications=_(gt([this._notifications$,this._notificationsService.observeNotificationConfiguration()]).pipe(j(([t,e])=>{let n=[];return e.devices.showNormalState||n.push(nt.Normal),e.devices.showNominalState||n.push(nt.Nominal),t.filter(r=>r.value&&r.value.state&&!n.includes(r.value.state)).filter(r=>{let d=r.value?.method;return d?.length?d.includes(ot.Visual)||d.includes(ot.Sound):!1})})),{requireSync:!0,equal:Vt});isMuted=!1;mutePlayer(t){this.isMuted=t,this._notificationsService.mutePlayer(t)}silence(t){this._notificationsService.setSkMethod(t,[ot.Visual])}clear(t){this._notificationsService.setSkState(t,nt.Normal)}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=O({type:i,selectors:[["menu-notifications"]],decls:6,vars:2,consts:[[1,"menu-item-container"],[1,"actions-container","actions-bottom-container"],[1,"notification-container"],[1,"icon-alert-color"],[1,"icon-warn-color"],[1,"icon-alarm-color"],[1,"icon-emergency-color"],[1,"notification-title"],[1,"notification-path","scrollable-text"],[1,"notification-text"],["mat-icon-button","",1,"notification-action-btn",3,"click","disabled"],["mat-icon-button","",1,"notification-action-btn",3,"click"],[1,"notification-divider"],["lines","3","disabled","true",2,"text-align","center"],["disabled","true",2,"text-align","center"],["matListItemTitle",""],["mat-flat-button","","matTooltip","Temporally toggle all notification audio. To permanently disable/enable notification audio, use the configuration settings option",1,"action-button"],["mat-flat-button","","matTooltip","Temporally toggle all notification audio. To permanently disable/enable notification audio, use the configuration settings option",1,"action-button",3,"click"],[1,"material-icons"]],template:function(e,n){e&1&&(o(0,"mat-list",0),U(1,Qe,21,8,null,null,ze,!1,Ze,2,1),s(),o(4,"div",1),b(5,ei,2,1),s()),e&2&&(f(),V(n.menuNotifications()),f(4),C(n.notificationConfig().disableNotifications?-1:5))},dependencies:[_e,he,ge,oe,ue,D,et,Jt,rt,le,ce,A,L,Rt],styles:[".notification-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-evenly;padding:2px 10px 7px;scroll-behavior:smooth}mat-icon[_ngcontent-%COMP%]{margin-right:10px}.scrollable-text[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.scrollable-text[_ngcontent-%COMP%]:hover{overflow:auto;white-space:normal;word-wrap:break-word}.notification-title[_ngcontent-%COMP%]{text-transform:capitalize;font-size:var(--mat-sys-headline-small-size);width:calc(100% - 34px)}.notification-path[_ngcontent-%COMP%]{font-size:var(--mat-sys-body-small-size);word-break:break-all;width:100%}.notification-text[_ngcontent-%COMP%]{font-size:var(--mat-sys-body-small-line-height);font-style:italic;width:100%;overflow:auto;white-space:normal;word-wrap:break-word}.notification-action-btn[_ngcontent-%COMP%]{background-color:var(--mat-sys-surface-container)}.notification-btn-container[_ngcontent-%COMP%]{display:inline-block;width:50%;height:48px;text-align:center}.menu-item-container[_ngcontent-%COMP%]{width:230px;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;height:calc(100% - 48px)}.notification-bottom-container[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%;background-color:var(--mat-sys-surface-container)}.actions-container[_ngcontent-%COMP%]{display:grid;grid-auto-flow:column}.actions-bottom-container[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%;height:48px}.action-button[_ngcontent-%COMP%]{border-radius:0;height:48px;border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large))}.icon-alert-color[_ngcontent-%COMP%]{color:var(--kip-zone-alert-color)}.icon-warn-color[_ngcontent-%COMP%]{color:var(--kip-zone-warn-color)}.icon-alarm-color[_ngcontent-%COMP%]{color:var(--kip-zone-alarm-color)}.icon-emergency-color[_ngcontent-%COMP%]{color:var(--kip-zone-emergency-color)}.alarm-emergency-blink[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_blinking-emergency 1.5s infinite}@keyframes _ngcontent-%COMP%_blinking-emergency{0%{background-color:var(--kip-zone-alarm-color)}50%{background-color:transparent}to{background-color:var(--kip-zone-alarm-color)}}.warn[_ngcontent-%COMP%]{color:var(--kip-zone-warn-color)}.notification-divider[_ngcontent-%COMP%]{padding-top:10px}"],changeDetection:0})}return i})();var ii=["badgeButton"],Ae=(()=>{class i{badgeButton=J.required("badgeButton");_notifications=a(T);notificationsInfo=_(this._notifications.observerNotificationsInfo());openNotificationMenu(){let t=new Event("openRightSidenav",{bubbles:!0,cancelable:!0});window.document.dispatchEvent(t)}onKeyDown(t){let e=t.key?.toLowerCase();(e==="enter"||e===" "||e==="spacebar")&&(t.preventDefault(),this.openNotificationMenu())}focus(){try{let t=this.badgeButton&&this.badgeButton(),e=t&&t.nativeElement;e&&typeof e.focus=="function"&&e.focus()}catch(t){}}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=O({type:i,selectors:[["notification-badge"]],viewQuery:function(e,n){e&1&&W(n.badgeButton,ii,5),e&2&&Q()},decls:5,vars:7,consts:[["badgeButton",""],["mat-fab","","role","button","aria-label","Open notifications",1,"layout-action-btn",3,"click","keydown"],["aria-hidden","false","matBadgeSize","large","matBadgePosition","after","matBadgeOverlap","true",1,"icon-alert-color",3,"matBadgeHidden","matBadge"]],template:function(e,n){if(e&1){let r=v();o(0,"div")(1,"button",1,0),u("click",function(){return p(r),m(n.openNotificationMenu())})("keydown",function(h){return p(r),m(n.onKeyDown(h))}),o(3,"mat-icon",2),l(4,"notifications "),s()()()}e&2&&(f(),Ot("warn",n.notificationsInfo().isWarn)("alarm-emergency-blink",n.notificationsInfo().isAlarmEmergency),xt("aria-haspopup",!0),f(2),w("matBadgeHidden",!n.notificationsInfo().alarmCount)("matBadge",n.notificationsInfo().alarmCount))},dependencies:[D,Yt,A,L,rt,pe],styles:["[_nghost-%COMP%]{display:block}.layout-action-btn[_ngcontent-%COMP%]{color:var(--mat-sys-on-primary);background-color:var(--mat-sys-primary)}.icon-alert-color[_ngcontent-%COMP%]{--mat-list-list-item-leading-icon-color: var(--kip-zone-alert-color)}.icon-warn-color[_ngcontent-%COMP%]{--mat-list-list-item-leading-icon-color: var(--kip-zone-warn-color)}.icon-alarm-color[_ngcontent-%COMP%]{--mat-list-list-item-leading-icon-color: var(--kip-zone-alarm-color)}.icon-emergency-color[_ngcontent-%COMP%]{--mat-list-list-item-leading-icon-color: var(--kip-zone-emergency-color)}.alarm-emergency-blink[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_blinking-emergency 1.5s infinite}@keyframes _ngcontent-%COMP%_blinking-emergency{0%{background-color:var(--kip-zone-alarm-color)}50%{background-color:var(--mat-sys-primary)}to{background-color:var(--kip-zone-alarm-color)}}.warn[_ngcontent-%COMP%]{color:var(--kip-zone-warn-color)}"]})}return i})();var Te=(()=>{class i{overlayRef=null;overlay=a(Xt);injector=a(Ct);open(){if(this.overlayRef)return;this.overlayRef=this.overlay.create({hasBackdrop:!1,panelClass:"notification-overlay-panel",positionStrategy:this.overlay.position().global().bottom("20px").left("20px"),scrollStrategy:this.overlay.scrollStrategies.reposition()});let t=new Zt(Ae,null,this.injector),e=this.overlayRef.attach(t);try{let n=e&&e.instance;if(n&&typeof n.focus=="function")n.focus();else{let r=this.overlayRef.overlayElement,d=r&&r.querySelector("button[mat-fab], .layout-action-btn");d&&typeof d.focus=="function"&&d.focus()}}catch(n){}}close(){try{this.overlayRef&&this.overlayRef.dispose()}catch(t){console.warn("[NotificationOverlayService] dispose failed",t)}finally{this.overlayRef=null}}toggle(t){t?this.open():this.close()}isOpen(){return!!this.overlayRef}ngOnDestroy(){try{this.overlayRef&&this.overlayRef.dispose()}catch(t){}finally{this.overlayRef=null}}static \u0275fac=function(e){return new(e||i)};static \u0275prov=S({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function ni(i,c){if(i&1){let t=v();o(0,"button",12),u("click",function(){p(t);let n=g(2);return m(n.onActionItem("toggleFullScreen"))}),o(1,"span",10),l(2,"fullscreen"),s()()}}function oi(i,c){if(i&1){let t=v();o(0,"button",12),u("click",function(){p(t);let n=g(2);return m(n.onActionItem("toggleFullScreen"))}),o(1,"span",10),l(2,"close_fullscreen"),s()()}}function ai(i,c){if(i&1&&b(0,ni,3,0,"button",11)(1,oi,3,0,"button",11),i&2){let t=g();C(t.uiEvent.fullscreenStatus()?1:0)}}function ri(i,c){if(i&1){let t=v();o(0,"button",14),u("click",function(){p(t);let n=g(2);return m(n.onActionItem("nightMode"))}),o(1,"span",10),l(2,"mode_night"),s()()}}function si(i,c){if(i&1){let t=v();o(0,"button",14),u("click",function(){p(t);let n=g(2);return m(n.onActionItem("nightMode"))}),o(1,"span",10),l(2,"light_mode"),s()()}}function ci(i,c){if(i&1&&b(0,ri,3,0,"button",13)(1,si,3,0,"button",13),i&2){let t=g();C(t.app.isNightMode()?1:0)}}function li(i,c){if(i&1){let t=v();o(0,"tile-large-icon",15,1),u("click",function(){let n=p(t).$index,r=g();return m(r.navigateToDashboard(n))}),s()}if(i&2){let t=c.$implicit;w("active",t.active)("svgIcon",t.svgIcon)("iconSize",t.iconSize)("label",t.label)}}var Ee=(()=>{class i{actionsSidenav=At.required();_router=a(P);uiEvent=a(st);dashboard=a(N);app=a(ae);_settings=a(M);isAutoNightMode=_(this._settings.getAutoNightModeAsO(),{requireSync:!0});_initialDashboardMatch=(()=>{let e=this._router.parseUrl(this._router.url).root.children.primary,n=e?e.segments.map(r=>r.path):[];return n.length===0||n[0]==="dashboard"||n[0]==="chartplotter"})();isDashboardContext=_(this._router.events.pipe(q(t=>t instanceof tt),vt(null),j(()=>{let e=this._router.parseUrl(this._router.url).root.children.primary,n=e?e.segments.map(r=>r.path):[];return n.length===0||n[0]==="dashboard"||n[0]==="chartplotter"}),_t()),{initialValue:this._initialDashboardMatch});menuItems=Dt(()=>{let t=this.dashboard.dashboards(),e=this.dashboard.activeDashboard();return t.map((n,r)=>({id:Number(n.id),active:r===e,pinned:!1,svgIcon:n.icon||"dashboard-dashboard",iconSize:60,label:n.name||`Dashboard ${r+1}`}))});ngAfterViewInit(){this.uiEvent.addHotkeyListener((t,e)=>this.handleKeyDown(t,e),{ctrlKey:!0,shiftKey:!0,keys:["e","f","n"]})}ngOnDestroy(){this.uiEvent.removeHotkeyListener(this.handleKeyDown.bind(this))}handleKeyDown(t,e){switch(t){case"e":this.onActionItem("layout");break;case"f":this.onActionItem("toggleFullScreen");break;case"n":this.onActionItem("nightMode");break;default:break}}onActionItem(t){switch(this.actionsSidenav().close(),t){case"toggleFullScreen":this.uiEvent.toggleFullScreen();break;case"settings":this._router.navigate(["/settings"]);break;case"layout":this.dashboard.setStaticDashboard(!1);break;case"nightMode":this.app.isNightMode.set(!this.app.isNightMode()),this.app.toggleDayNightMode();break;default:break}}navigateToDashboard(t){this.actionsSidenav().close(),this._router.navigate([`dashboard/${t}`])}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=O({type:i,selectors:[["menu-actions"]],inputs:{actionsSidenav:[1,"actionsSidenav"]},decls:14,vars:3,consts:[["tileContainer",""],["tile",""],[1,"actions-container"],[1,"actions-top-container"],["mat-flat-button","","tabindex","0",1,"action-button","home-btn",3,"click"],["height","24px","width","24px","svgIcon","kip","aria-hidden","false",1,"home-icon",2,"height","24px","width","24px"],[1,"menu-item-container"],[3,"active","svgIcon","iconSize","label"],[1,"actions-bottom-container"],["mat-flat-button","",1,"action-button",2,"width","135px",3,"click","disabled"],[1,"material-icons"],["mat-flat-button","","tabindex","0",1,"action-button"],["mat-flat-button","","tabindex","0",1,"action-button",3,"click"],["mat-flat-button","",1,"action-button"],["mat-flat-button","",1,"action-button",3,"click"],[3,"click","active","svgIcon","iconSize","label"]],template:function(e,n){if(e&1){let r=v();o(0,"div",2)(1,"div",3),b(2,ai,2,1),b(3,ci,2,1),o(4,"button",4),u("click",function(){return p(r),m(n.onActionItem("settings"))}),x(5,"mat-icon",5),s()(),o(6,"div",6,0),U(8,li,2,4,"tile-large-icon",7,G),s(),o(10,"div",8)(11,"button",9),u("click",function(){return p(r),m(n.onActionItem("layout"))}),o(12,"span",10),l(13,"lock_open"),s()()()()}e&2&&(f(2),C(n.uiEvent.fullscreenSupported()?2:-1),f(),C(n.isAutoNightMode()?-1:3),f(5),V(n.menuItems()),f(3),w("disabled",!n.isDashboardContext()))},dependencies:[A,L,D,et,ve],styles:[".actions-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;width:135px}.actions-top-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.actions-bottom-container[_ngcontent-%COMP%]{height:48px;width:100%}.action-button[_ngcontent-%COMP%]{border-radius:0;height:48px;flex:1 1 48px;min-height:0;overflow:hidden;border:1px solid var(--mat-sidenav-container-background-color, var(--mat-sys-surface))}.home-btn[_ngcontent-%COMP%]{--mat-icon-button-icon-size: 24px;--mat-button-filled-icon-offset: 0px;--mat-button-filled-icon-spacing: 0px;--mat-button-filled-label-text-size: 0px}.home-icon[_ngcontent-%COMP%] .mat-mdc-unelevated-button[_ngcontent-%COMP%] > .mat-icon[_ngcontent-%COMP%]{font-size:0px}.full-size[_ngcontent-%COMP%]{width:135px}.menu-item-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-wrap:nowrap;padding:3px 1px;gap:5px;width:135px;overflow-y:auto;scrollbar-width:none;overflow-x:hidden;scroll-behavior:smooth;flex:1 1 auto;min-height:0}"]})}return i})();var Re=(()=>{class i{http=a(Lt);settings=a(M);dashboard=a(N);data=a(B);KIP_UUID=this.settings.KipUUID;ACTIVE_SCREEN_PATH=`self.displays.${this.KIP_UUID}.screenIndex`;CHANGE_SCREEN_PATH=`self.displays.${this.KIP_UUID}.activeScreen`;displayName=_(this.settings.getInstanceNameAsO());isRemoteControl=_(this.settings.getIsRemoteControlAsO());remoteScreenPosition=_(this.data.subscribePath(this.ACTIVE_SCREEN_PATH,"default"));changeDashboardTo=_(this.data.subscribePath(this.CHANGE_SCREEN_PATH,"default"));PLUGIN_URL=this.settings.signalkUrl.url+"/plugins/kip";previousIsRemoteControl=!1;constructor(){this.setActiveDashboardOnRemote(this.KIP_UUID,null),this.setScreensOnRemote(this.KIP_UUID,null),this.clearActiveScreenOnRemote(this.KIP_UUID,null),console.log("[Remote Dashboards] Cleaning paths on server"),y(()=>{let t=this.isRemoteControl(),e=this.displayName();z(()=>{if(!t&&!this.previousIsRemoteControl)return;this.previousIsRemoteControl=t;let n;t?(n=this.getScreensPayload(this.dashboard.dashboards()),this.dashboard.activeDashboard()!==null&&this.setActiveDashboardOnRemote(this.KIP_UUID,this.dashboard.activeDashboard()).catch(d=>{console.error("[Remote Dashboards] Error sharing active dashboard on Remote Control activation:",d)})):(n=null,this.clearActiveDashboardOnServer()),this.shareScreens(n)})}),y(()=>{let t=this.dashboard.dashboards();z(()=>{if(!this.isRemoteControl())return;let e=this.getScreensPayload(t);this.shareScreens(e)})}),y(()=>{let t=this.dashboard.activeDashboard();z(()=>{this.isRemoteControl()&&t!==null&&this.setActiveDashboardOnRemote(this.KIP_UUID,t).then(()=>{console.log(`[Remote Dashboards] Sent new dashboard highlight index ${t} to server.`)}).catch(e=>{console.error("[Remote Dashboards] Error sharing active dashboard:",e)})})}),y(()=>{let t=this.changeDashboardTo();z(()=>{if(!this.isRemoteControl()||t.data.value==null)return;let e=Number(t.data.value);!isNaN(e)&&e>=0&&e<this.dashboard.dashboards().length&&this.dashboard.activeDashboard()!==e&&(this.dashboard.navigateTo(e),console.log(`[Remote Dashboards] Executed remote request to change active dashboard to: ${e}`))})})}clearActiveDashboardOnServer(){this.setActiveDashboardOnRemote(this.KIP_UUID,null).then(()=>{console.log("[Remote Dashboards] Disabled: Cleared active dashboard on server")}).catch(t=>{console.error("[Remote Dashboards] Error clearing active dashboard on server while disabling the feature:",t)})}getScreensPayload(t){let e=this.displayName(),n=t.map(h=>{var k=h,{configuration:r}=k,d=ht(k,["configuration"]);return d});return{displayName:e,screens:n}}shareScreens(t){this.setScreensOnRemote(this.KIP_UUID,t).then(()=>{console.log("[Remote Dashboards] Sending dashboard configurations to server.")}).catch(e=>{console.error("[Remote Dashboards] Error sharing screen configuration:",e)})}setActiveDashboardOnRemote(t,e){return R(this,null,function*(){let n=e===null?null:{screenIdx:e};return $(this.http.put(`${this.PLUGIN_URL}/displays/${t}/screenIndex`,n))})}setScreensOnRemote(t,e){return R(this,null,function*(){let n=e===null?null:ut({},e);return $(this.http.put(`${this.PLUGIN_URL}/displays/${t}`,n))})}clearActiveScreenOnRemote(t,e){return R(this,null,function*(){let n=e===null?null:{screenIdx:e};return $(this.http.put(`${this.PLUGIN_URL}/displays/${t}/activeScreen`,n))})}static \u0275fac=function(e){return new(e||i)};static \u0275prov=S({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var di=["upgradeMessages"];function pi(i,c){if(i&1&&(o(0,"li"),l(1),s()),i&2){let t=c.$implicit;f(),H(t)}}function mi(i,c){if(i&1&&(o(0,"ul",11,1),U(2,pi,2,1,"li",null,G),s()),i&2){let t=g(2);f(2),V(t.upgrade.messages())}}function fi(i,c){if(i&1&&(o(0,"div",7)(1,"div",8),x(2,"mat-progress-spinner",9),o(3,"div",10)(4,"h3"),l(5,"Upgrading Configuration\u2026"),s(),o(6,"p"),l(7,"Please wait a moment while we migrate your dashboards and widgets."),s(),b(8,mi,4,0,"ul",11),s()()()),i&2){let t=g();f(8),C(t.upgrade.messages().length?8:-1)}}var Ue=(()=>{class i{_deltaService=a(K);_connectionStateMachine=a(F);_dashboard=a(N);_remoteControl=a(Re);toast=a(ee);_notifications=a(T);_uiEvent=a(st);_dialog=a(fe);appSettingsService=a(M);authenticationService=a(I);_dataSet=a(at);_responsive=a(Wt);_destroyRef=a(St);_notificationOverlay=a(Te);_router=a(P);upgrade=a(me);upgradeMessagesRef=J("upgradeMessages");_upgradeShown=!1;actionsSidenavOpened=mt(!1);notificationsSidenavOpened=mt(!1);notificationsInfo=_(this._notifications.observerNotificationsInfo());dashboardVisible=yt(!1);isPhonePortrait;scheduledOpen=null;OPEN_DELAY_MS=300;_swipeLeftHandler=()=>this.onSwipeLeft();_swipeRightHandler=()=>this.onSwipeRight();_hotkeyHandler=t=>this.handleKeyDown(t);constructor(){y(()=>{if(this.appSettingsService.configUpgrade()){let t=this.appSettingsService.getConfigVersion();t===11&&this.upgrade.runUpgrade(t),t||this._upgradeShown||(this._upgradeShown=!0,this._dialog.openFrameDialog({title:"Upgrade Instructions",component:"upgrade-config"},!0).pipe(Z(this._destroyRef)).subscribe())}}),y(()=>{let t=this.upgrade.messages();if(this.upgrade.upgrading()&&t.length&&this.upgradeMessagesRef()){let e=this.upgradeMessagesRef().nativeElement;e.scrollTop=e.scrollHeight}});try{this.dashboardVisible.set(this.isUrlDashboard(this._router.url))}catch(t){}this._router.events.pipe(q(t=>t instanceof tt),Z(this._destroyRef)).subscribe(t=>{try{this.dashboardVisible.set(this.isUrlDashboard(t.urlAfterRedirects||t.url))}catch(e){}}),y(()=>{let t=this.dashboardVisible()&&this._dashboard.isDashboardStatic()&&this.notificationsInfo().alarmCount>0;if(this.notificationsSidenavOpened()){this.scheduledOpen&&(clearTimeout(this.scheduledOpen),this.scheduledOpen=null);try{this._notificationOverlay.close()}catch(n){}return}if(t){if(this.scheduledOpen)return;this.scheduledOpen=window.setTimeout(()=>{this.scheduledOpen=null;try{this._notificationOverlay.open()}catch(n){}},this.OPEN_DELAY_MS)}else{this.scheduledOpen&&(clearTimeout(this.scheduledOpen),this.scheduledOpen=null);try{this._notificationOverlay.close()}catch(n){}}}),y(()=>{if(this.notificationsSidenavOpened())try{this._notificationOverlay.close()}catch(e){}}),this.isPhonePortrait=_(this._responsive.observe(Qt.HandsetPortrait)),this._connectionStateMachine.status$.pipe(Z(this._destroyRef)).subscribe(t=>this.displayConnectionsStatusNotification(t))}isUrlDashboard(t){if(!t)return!1;let e=t.split("?")[0].replace(/\/+$/,"");return e==="/"||e==="/dashboard"||/^\/dashboard(\/\d+)?$/.test(e)||e==="/chartplotter"||/^\/chartplotter(\/\d+)?$/.test(e)}ngOnInit(){this._uiEvent.addGestureListeners(this._swipeLeftHandler,this._swipeRightHandler)}ngAfterViewInit(){this._uiEvent.addHotkeyListener(this._hotkeyHandler,{ctrlKey:!0,keys:["arrowright","arrowleft"]})}handleKeyDown(t){switch(t){case"arrowright":this.onSwipeRight();break;case"arrowleft":this.onSwipeLeft();break;case"escape":this.backdropClicked();break}}escapeKeyPressed(t){t=t.toLowerCase(),t==="escape"&&this.backdropClicked()}displayConnectionsStatusNotification(t){let e=t.message;switch(t.operation){case 0:this.toast.show(e,5e3,!0);break;case 1:case 2:break;case 3:this.toast.show(e,3e3,!1,"Dismiss","warn");break;case 4:this.toast.show(e,3e3,!0,"Dismiss","info");break;case 5:this.toast.show(e,0,!1);break;default:console.error("[AppComponent] Unknown operation code:",t.operation),this.toast.show(`Unknown connection status: ${t.state}`,0,!1,null,"error")}}onSwipeRight(){this._dashboard.isDashboardStatic()&&!this._uiEvent.isDragging()&&(this.isPhonePortrait().matches?(this.actionsSidenavOpened.set(!1),this.notificationsSidenavOpened.set(!0)):(this.actionsSidenavOpened.set(!1),this.notificationsSidenavOpened.update(t=>!t)))}backdropClicked(){this.notificationsSidenavOpened.update(t=>t?!t:!1),this.actionsSidenavOpened.update(t=>t?!t:!1)}onSwipeLeft(){this._dashboard.isDashboardStatic()&&!this._uiEvent.isDragging()&&(this.isPhonePortrait().matches?(this.notificationsSidenavOpened.set(!1),this.actionsSidenavOpened.set(!0)):(this.notificationsSidenavOpened.set(!1),this.actionsSidenavOpened.update(t=>!t)))}ngOnDestroy(){this._uiEvent.removeGestureListeners(this._swipeLeftHandler,this._swipeRightHandler),this._uiEvent.removeHotkeyListener(this._hotkeyHandler),this.scheduledOpen&&(clearTimeout(this.scheduledOpen),this.scheduledOpen=null)}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=O({type:i,selectors:[["app-root"]],viewQuery:function(e,n){e&1&&W(n.upgradeMessagesRef,di,5),e&2&&Q()},inputs:{actionsSidenavOpened:[1,"actionsSidenavOpened"],notificationsSidenavOpened:[1,"notificationsSidenavOpened"]},outputs:{actionsSidenavOpened:"actionsSidenavOpenedChange",notificationsSidenavOpened:"notificationsSidenavOpenedChange"},decls:9,vars:6,consts:[["actionsSidenav",""],["upgradeMessages",""],["kipGestures","",1,"sidenav-container",3,"swipeleft","swiperight","backdropClick","mode","bridgeUiEvents"],["mode","over","position","start","autoFocus","true","disableClose","",1,"sidenav-notifications",3,"openedChange","keydown","opened"],["mode","over","position","end","autoFocus","true","disableClose","",1,"sidenav-actions",3,"openedChange","keydown","opened"],[3,"actionsSidenav"],[1,"router-outlet-container"],["role","alert","aria-live","polite",1,"config-upgrade-overlay"],[1,"config-upgrade-card"],["diameter","46","mode","indeterminate"],[1,"config-upgrade-text"],[1,"config-upgrade-messages"]],template:function(e,n){if(e&1){let r=v();o(0,"mat-sidenav-container",2),u("swipeleft",function(){return p(r),m(n.onSwipeLeft())})("swiperight",function(){return p(r),m(n.onSwipeRight())})("backdropClick",function(){return p(r),m(n.backdropClicked())}),o(1,"mat-sidenav",3),pt("openedChange",function(h){return p(r),dt(n.notificationsSidenavOpened,h)||(n.notificationsSidenavOpened=h),m(h)}),u("keydown",function(h){return p(r),m(n.escapeKeyPressed(h.key))}),x(2,"menu-notifications"),s(),o(3,"mat-sidenav",4,0),pt("openedChange",function(h){return p(r),dt(n.actionsSidenavOpened,h)||(n.actionsSidenavOpened=h),m(h)}),u("keydown",function(h){return p(r),m(n.escapeKeyPressed(h.key))}),x(5,"menu-actions",5),s(),o(6,"mat-sidenav-content"),x(7,"router-outlet",6),s()(),b(8,fi,9,1,"div",7)}if(e&2){let r=kt(4);w("mode","horizontal")("bridgeUiEvents",!0),f(),lt("opened",n.notificationsSidenavOpened),f(2),lt("opened",n.actionsSidenavOpened),f(2),w("actionsSidenav",r),f(3),C(n.upgrade.upgrading()?8:-1)}},dependencies:[De,Ee,D,ke,A,Gt,$t,ye,Ce,Se,be,Et,te,Me,we],styles:[".sidenav-container[_ngcontent-%COMP%]{height:100%;width:100%}mat-sidenav-content[_ngcontent-%COMP%]{overflow-y:hidden;overflow-x:hidden}mat-sidenav.sidenav-notifications[_ngcontent-%COMP%]{width:230px;z-index:1200}mat-sidenav.sidenav-actions[_ngcontent-%COMP%]{width:135px;z-index:1200;overflow-x:hidden}.config-upgrade-overlay[_ngcontent-%COMP%]{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:#00000073;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:2000;pointer-events:all}.config-upgrade-card[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;gap:18px;padding:20px 24px;width:clamp(300px,60vw,640px);background:var(--kip-background, #1f1f1f);border:1px solid rgba(255,255,255,.18);border-radius:14px;color:var(--kip-contrast-color, #fff);box-shadow:0 6px 22px #0000008c}.config-upgrade-text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 4px;font-size:1.05rem;font-weight:600;letter-spacing:.5px}.config-upgrade-text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 10px;font-size:.8rem;opacity:.85}.config-upgrade-messages[_ngcontent-%COMP%]{list-style:disc;margin:0;padding-left:18px;max-height:180px;font-size:.68rem;line-height:1.25;scrollbar-width:thin;overflow-y:auto}.config-upgrade-messages[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-bottom:2px}"]})}return i})();var Ve=11,Fe="connectionConfig",Le=(()=>{class i{config;isLoggedIn=null;loggedInSubscription=null;connection=a(Y);auth=a(I);connectionStateMachine=a(F);router=a(P);delta=a(K);data=a(B);storage=a(X);constructor(){this.loggedInSubscription=this.auth.isLoggedIn$.subscribe(t=>{this.isLoggedIn=t})}initNetworkServices(){return R(this,null,function*(){this.loadLocalStorageConfig(),this.preloadFonts();try{this.config?.signalKUrl!==void 0&&this.config.signalKUrl!==null&&(yield this.connection.initializeConnection({url:this.config.signalKUrl,new:!1},this.config.proxyEnabled,this.config.signalKSubscribeAll)),!this.isLoggedIn&&this.config?.signalKUrl&&this.config?.useSharedConfig&&this.config?.loginName&&this.config?.loginPassword&&(yield this.login()),this.isLoggedIn&&this.config?.useSharedConfig&&(this.storage.activeConfigFileVersion=Ve,this.storage.sharedConfigName=this.config.sharedConfigName,yield this.storage.getConfig("user",this.config.sharedConfigName,Ve,!0)),!this.isLoggedIn&&this.config?.signalKUrl&&this.config?.useSharedConfig&&this.router.navigate(["/login"])}catch(t){return t.status===0?console.warn("[AppInit Network Service] Initialization failed. Network error. Redirecting to settings page."):t.status===401?console.warn("[AppInit Network Service] Initialization failed. Unauthorized access. Redirecting to login page."):console.warn("[AppInit Network Service] Initialization failed. Error: ",JSON.stringify(t)),Promise.reject("[AppInit Network Service] Startup completed with connection issue.")}finally{console.log("[AppInit Network Service] Initialization completed"),this.connectionStateMachine.enableWebSocketMode(),this.connectionStateMachine.isHTTPConnected()&&(console.log("[AppInit Network Service] Starting WebSocket connection after initialization"),this.connectionStateMachine.startWebSocketConnection())}})}login(){return R(this,null,function*(){if(!this.isLoggedIn&&this.config.useSharedConfig&&this.config.loginName&&this.config.loginPassword)try{yield this.auth.login({usr:this.config.loginName,pwd:this.config.loginPassword})}catch(t){throw t.status===0?this.router.navigate(["/settings"]):t.status===401&&this.router.navigate(["/login"]),t}})}setLocalStorageConfig(){localStorage.setItem(Fe,JSON.stringify(this.config))}loadLocalStorageConfig(){this.config=JSON.parse(localStorage.getItem(Fe)),this.config?this.config.signalKUrl||(this.config.signalKUrl=window.location.origin,this.setLocalStorageConfig(),console.log(`[AppInit Network Service] Config found with no server URL. Setting Auto-Discovery URL: ${this.config.signalKUrl}`)):(this.config=Ut,this.config.signalKUrl=window.location.origin,console.log(`[AppInit Network Service] Connection Configuration not found. Creating configuration using Auto-Discovery URL: ${this.config.signalKUrl}`),this.setLocalStorageConfig()),this.config.configVersion==9&&(this.config.configVersion=10,this.setLocalStorageConfig(),console.log("[AppInit Network Service] Upgrading Connection version from 9 to 10")),this.config.configVersion==10&&(this.config.configVersion=11,this.setLocalStorageConfig(),console.log("[AppInit Network Service] Upgrading Connection version from 10 to 11")),this.config.configVersion==11&&(this.config.configVersion=12,this.setLocalStorageConfig(),console.log("[AppInit Network Service] Upgrading Connection version from 11 to 12"))}preloadFonts(){let t=[{family:"Roboto",src:"url(./assets/google-fonts/KFOlCnqEu92Fr1MmSU5fChc4AMP6lbBP.woff2)",options:{weight:"300",style:"normal"}},{family:"Roboto",src:"url(./assets/google-fonts/KFOlCnqEu92Fr1MmSU5fBBc4AMP6lQ.woff2)",options:{weight:"300",style:"normal"}},{family:"Roboto",src:"url(./assets/google-fonts/KFOmCnqEu92Fr1Mu7GxKKTU1Kvnz.woff2)",options:{weight:"400",style:"normal"}},{family:"Roboto",src:"url(./assets/google-fonts/KFOmCnqEu92Fr1Mu4mxKKTU1Kg.woff2)",options:{weight:"400",style:"normal"}},{family:"Roboto",src:"url(./assets/google-fonts/KFOlCnqEu92Fr1MmEU9fChc4AMP6lbBP.woff2)",options:{weight:"500",style:"normal"}},{family:"Roboto",src:"url(./assets/google-fonts/KFOlCnqEu92Fr1MmEU9fBBc4AMP6lQ.woff2)",options:{weight:"500",style:"normal"}}];for(let{family:e,src:n,options:r}of t){let d=new FontFace(e,n,r);d.load().then(()=>document.fonts.add(d)).catch(h=>console.log(`[AppInit Network Service] Error loading fonts: ${h}`))}}ngOnDestroy(){this.loggedInSubscription?.unsubscribe()}static \u0275fac=function(e){return new(e||i)};static \u0275prov=S({token:i,factory:i.\u0275fac})}return i})();var Ke=(()=>{class i{auth=a(I);authToken=null;authTokenSubscription=null;constructor(){this.authTokenSubscription=this.auth.authToken$.subscribe(t=>{this.authToken=t})}intercept(t,e){let n=t.clone();return this.authToken&&(n=t.clone({headers:t.headers.set("authorization","JWT "+this.authToken.token)})),e.handle(n)}ngOnDestroy(){this.authTokenSubscription?.unsubscribe()}static \u0275fac=function(e){return new(e||i)};static \u0275prov=S({token:i,factory:i.\u0275fac})}return i})();var Be=(()=>{class i extends it{_createContainer(){let t=document.createElement("div");t.classList.add("cdk-overlay-container"),(document.getElementById("app-filter-wrapper")||document.querySelector("app-root")||document.body).appendChild(t),this._containerElement=t}static \u0275fac=(()=>{let t;return function(n){return(t||(t=wt(i)))(n||i)}})();static \u0275prov=S({token:i,factory:i.\u0275fac})}return i})();Ie.production&&void 0;zt(Ue,{providers:[Tt(),bt(Ht),{provide:Ft,useClass:Ke,multi:!0},{provide:ie,useValue:{hasBackdrop:!0,disableClose:!1,autoFocus:"first-tabbable",delayFocusTrap:!0,backdropClass:"dialogBackdrop"}},{provide:ne,useValue:{appearance:"outline",floatLabel:"always",subscriptSizing:"dynamic"}},{provide:se,useValue:{showDelay:1500,hideDelay:0}},I,B,Y,K,F,at,N,re,M,T,de,X,xe(),Kt(Bt()),jt(Oe,qt()),{provide:it,useClass:Be},Mt(()=>new Le().initNetworkServices().then(()=>{}).catch(()=>{}))]});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var ca=Object.create;var Ut=Object.defineProperty;var ua=Object.getOwnPropertyDescriptor;var la=Object.getOwnPropertyNames;var fa=Object.getPrototypeOf,ha=Object.prototype.hasOwnProperty;var u=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var va=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of la(r))!ha.call(e,o)&&o!==t&&Ut(e,o,{get:()=>r[o],enumerable:!(n=ua(r,o))||n.enumerable});return e};var da=(e,r,t)=>(t=e!=null?ca(fa(e)):{},va(r||!e||!e.__esModule?Ut(t,"default",{value:e,enumerable:!0}):t,e));var oe=u((Pr,$t)=>{"use strict";var Ae=function(e){return e&&e.Math===Math&&e};$t.exports=Ae(typeof globalThis=="object"&&globalThis)||Ae(typeof window=="object"&&window)||Ae(typeof self=="object"&&self)||Ae(typeof global=="object"&&global)||Ae(typeof Pr=="object"&&Pr)||(function(){return this})()||Function("return this")()});var zt=u((_v,Vt)=>{"use strict";Vt.exports=!1});var Xe=u((Tv,Yt)=>{"use strict";var Wt=oe(),pa=Object.defineProperty;Yt.exports=function(e,r){try{pa(Wt,e,{value:r,configurable:!0,writable:!0})}catch{Wt[e]=r}return r}});var Je=u((Ev,Jt)=>{"use strict";var ya=zt(),_a=oe(),Ta=Xe(),Kt="__core-js_shared__",Xt=Jt.exports=_a[Kt]||Ta(Kt,{});(Xt.versions||(Xt.versions=[])).push({version:"3.48.0",mode:ya?"pure":"global",copyright:"\xA9 2013\u20132025 Denis Pushkarev (zloirock.ru), 2025\u20132026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.48.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var wr=u((gv,en)=>{"use strict";var Qt=Je();en.exports=function(e,r){return Qt[e]||(Qt[e]=r||{})}});var J=u((bv,rn)=>{"use strict";rn.exports=function(e){try{return!!e()}catch{return!0}}});var Ze=u((mv,tn)=>{"use strict";var Ea=J();tn.exports=!Ea(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var ie=u((Ov,sn)=>{"use strict";var nn=Ze(),on=Function.prototype,Sr=on.call,ga=nn&&on.bind.bind(Sr,Sr);sn.exports=nn?ga:function(e){return function(){return Sr.apply(e,arguments)}}});var Rr=u((qv,an)=>{"use strict";an.exports=function(e){return e==null}});var Qe=u((kv,cn)=>{"use strict";var ba=Rr(),ma=TypeError;cn.exports=function(e){if(ba(e))throw new ma("Can't call method on "+e);return e}});var Cr=u((Pv,un)=>{"use strict";var Oa=Qe(),qa=Object;un.exports=function(e){return qa(Oa(e))}});var ce=u((wv,ln)=>{"use strict";var ka=ie(),Pa=Cr(),wa=ka({}.hasOwnProperty);ln.exports=Object.hasOwn||function(r,t){return wa(Pa(r),t)}});var Dr=u((Sv,fn)=>{"use strict";var Sa=ie(),Ra=0,Ca=Math.random(),Da=Sa(1.1.toString);fn.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Da(++Ra+Ca,36)}});var pn=u((Rv,dn)=>{"use strict";var Ia=oe(),hn=Ia.navigator,vn=hn&&hn.userAgent;dn.exports=vn?String(vn):""});var mn=u((Cv,bn)=>{"use strict";var gn=oe(),Ir=pn(),yn=gn.process,_n=gn.Deno,Tn=yn&&yn.versions||_n&&_n.version,En=Tn&&Tn.v8,ve,er;En&&(ve=En.split("."),er=ve[0]>0&&ve[0]<4?1:+(ve[0]+ve[1]));!er&&Ir&&(ve=Ir.match(/Edge\/(\d+)/),(!ve||ve[1]>=74)&&(ve=Ir.match(/Chrome\/(\d+)/),ve&&(er=+ve[1])));bn.exports=er});var jr=u((Dv,qn)=>{"use strict";var On=mn(),ja=J(),Na=oe(),xa=Na.String;qn.exports=!!Object.getOwnPropertySymbols&&!ja(function(){var e=Symbol("symbol detection");return!xa(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&On&&On<41})});var Nr=u((Iv,kn)=>{"use strict";var Ma=jr();kn.exports=Ma&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Fe=u((jv,wn)=>{"use strict";var La=oe(),Aa=wr(),Pn=ce(),Za=Dr(),Fa=jr(),Ga=Nr(),Ne=La.Symbol,xr=Aa("wks"),Ba=Ga?Ne.for||Ne:Ne&&Ne.withoutSetter||Za;wn.exports=function(e){return Pn(xr,e)||(xr[e]=Fa&&Pn(Ne,e)?Ne[e]:Ba("Symbol."+e)),xr[e]}});var rr=u((Nv,Rn)=>{"use strict";var Ha=Fe(),Ua=Ha("toStringTag"),Sn={};Sn[Ua]="z";Rn.exports=String(Sn)==="[object z]"});var se=u((xv,Cn)=>{"use strict";var Mr=typeof document=="object"&&document.all;Cn.exports=typeof Mr>"u"&&Mr!==void 0?function(e){return typeof e=="function"||e===Mr}:function(e){return typeof e=="function"}});var de=u((Mv,Dn)=>{"use strict";var $a=J();Dn.exports=!$a(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var ae=u((Lv,In)=>{"use strict";var Va=se();In.exports=function(e){return typeof e=="object"?e!==null:Va(e)}});var Ar=u((Av,Nn)=>{"use strict";var za=oe(),jn=ae(),Lr=za.document,Wa=jn(Lr)&&jn(Lr.createElement);Nn.exports=function(e){return Wa?Lr.createElement(e):{}}});var Zr=u((Zv,xn)=>{"use strict";var Ya=de(),Ka=J(),Xa=Ar();xn.exports=!Ya&&!Ka(function(){return Object.defineProperty(Xa("div"),"a",{get:function(){return 7}}).a!==7})});var Fr=u((Fv,Mn)=>{"use strict";var Ja=de(),Qa=J();Mn.exports=Ja&&Qa(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var re=u((Gv,Ln)=>{"use strict";var ec=ae(),rc=String,tc=TypeError;Ln.exports=function(e){if(ec(e))return e;throw new tc(rc(e)+" is not an object")}});var xe=u((Bv,An)=>{"use strict";var nc=Ze(),tr=Function.prototype.call;An.exports=nc?tr.bind(tr):function(){return tr.apply(tr,arguments)}});var Re=u((Hv,Zn)=>{"use strict";var Gr=oe(),oc=se(),ic=function(e){return oc(e)?e:void 0};Zn.exports=function(e,r){return arguments.length<2?ic(Gr[e]):Gr[e]&&Gr[e][r]}});var Gn=u((Uv,Fn)=>{"use strict";var sc=ie();Fn.exports=sc({}.isPrototypeOf)});var Br=u(($v,Bn)=>{"use strict";var ac=Re(),cc=se(),uc=Gn(),lc=Nr(),fc=Object;Bn.exports=lc?function(e){return typeof e=="symbol"}:function(e){var r=ac("Symbol");return cc(r)&&uc(r.prototype,fc(e))}});var Hr=u((Vv,Hn)=>{"use strict";var hc=String;Hn.exports=function(e){try{return hc(e)}catch{return"Object"}}});var Ge=u((zv,Un)=>{"use strict";var vc=se(),dc=Hr(),pc=TypeError;Un.exports=function(e){if(vc(e))return e;throw new pc(dc(e)+" is not a function")}});var Vn=u((Wv,$n)=>{"use strict";var yc=Ge(),_c=Rr();$n.exports=function(e,r){var t=e[r];return _c(t)?void 0:yc(t)}});var Wn=u((Yv,zn)=>{"use strict";var Ur=xe(),$r=se(),Vr=ae(),Tc=TypeError;zn.exports=function(e,r){var t,n;if(r==="string"&&$r(t=e.toString)&&!Vr(n=Ur(t,e))||$r(t=e.valueOf)&&!Vr(n=Ur(t,e))||r!=="string"&&$r(t=e.toString)&&!Vr(n=Ur(t,e)))return n;throw new Tc("Can't convert object to primitive value")}});var Jn=u((Kv,Xn)=>{"use strict";var Ec=xe(),Yn=ae(),Kn=Br(),gc=Vn(),bc=Wn(),mc=Fe(),Oc=TypeError,qc=mc("toPrimitive");Xn.exports=function(e,r){if(!Yn(e)||Kn(e))return e;var t=gc(e,qc),n;if(t){if(r===void 0&&(r="default"),n=Ec(t,e,r),!Yn(n)||Kn(n))return n;throw new Oc("Can't convert object to primitive value")}return r===void 0&&(r="number"),bc(e,r)}});var nr=u((Xv,Qn)=>{"use strict";var kc=Jn(),Pc=Br();Qn.exports=function(e){var r=kc(e,"string");return Pc(r)?r:r+""}});var Se=u(ro=>{"use strict";var wc=de(),Sc=Zr(),Rc=Fr(),or=re(),eo=nr(),Cc=TypeError,zr=Object.defineProperty,Dc=Object.getOwnPropertyDescriptor,Wr="enumerable",Yr="configurable",Kr="writable";ro.f=wc?Rc?function(r,t,n){if(or(r),t=eo(t),or(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Kr in n&&!n[Kr]){var o=Dc(r,t);o&&o[Kr]&&(r[t]=n.value,n={configurable:Yr in n?n[Yr]:o[Yr],enumerable:Wr in n?n[Wr]:o[Wr],writable:!1})}return zr(r,t,n)}:zr:function(r,t,n){if(or(r),t=eo(t),or(n),Sc)try{return zr(r,t,n)}catch{}if("get"in n||"set"in n)throw new Cc("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var oo=u((Qv,no)=>{"use strict";var Xr=de(),Ic=ce(),to=Function.prototype,jc=Xr&&Object.getOwnPropertyDescriptor,Jr=Ic(to,"name"),Nc=Jr&&function(){}.name==="something",xc=Jr&&(!Xr||Xr&&jc(to,"name").configurable);no.exports={EXISTS:Jr,PROPER:Nc,CONFIGURABLE:xc}});var et=u((ed,io)=>{"use strict";var Mc=ie(),Lc=se(),Qr=Je(),Ac=Mc(Function.toString);Lc(Qr.inspectSource)||(Qr.inspectSource=function(e){return Ac(e)});io.exports=Qr.inspectSource});var co=u((rd,ao)=>{"use strict";var Zc=oe(),Fc=se(),so=Zc.WeakMap;ao.exports=Fc(so)&&/native code/.test(String(so))});var ir=u((td,uo)=>{"use strict";uo.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var rt=u((nd,lo)=>{"use strict";var Gc=de(),Bc=Se(),Hc=ir();lo.exports=Gc?function(e,r,t){return Bc.f(e,r,Hc(1,t))}:function(e,r,t){return e[r]=t,e}});var sr=u((od,ho)=>{"use strict";var Uc=wr(),$c=Dr(),fo=Uc("keys");ho.exports=function(e){return fo[e]||(fo[e]=$c(e))}});var ar=u((id,vo)=>{"use strict";vo.exports={}});var To=u((sd,_o)=>{"use strict";var Vc=co(),yo=oe(),zc=ae(),Wc=rt(),tt=ce(),nt=Je(),Yc=sr(),Kc=ar(),po="Object already initialized",ot=yo.TypeError,Xc=yo.WeakMap,cr,Be,ur,Jc=function(e){return ur(e)?Be(e):cr(e,{})},Qc=function(e){return function(r){var t;if(!zc(r)||(t=Be(r)).type!==e)throw new ot("Incompatible receiver, "+e+" required");return t}};Vc||nt.state?(pe=nt.state||(nt.state=new Xc),pe.get=pe.get,pe.has=pe.has,pe.set=pe.set,cr=function(e,r){if(pe.has(e))throw new ot(po);return r.facade=e,pe.set(e,r),r},Be=function(e){return pe.get(e)||{}},ur=function(e){return pe.has(e)}):(Ce=Yc("state"),Kc[Ce]=!0,cr=function(e,r){if(tt(e,Ce))throw new ot(po);return r.facade=e,Wc(e,Ce,r),r},Be=function(e){return tt(e,Ce)?e[Ce]:{}},ur=function(e){return tt(e,Ce)});var pe,Ce;_o.exports={set:cr,get:Be,has:ur,enforce:Jc,getterFor:Qc}});var mo=u((ad,bo)=>{"use strict";var st=ie(),eu=J(),ru=se(),lr=ce(),it=de(),tu=oo().CONFIGURABLE,nu=et(),go=To(),ou=go.enforce,iu=go.get,Eo=String,fr=Object.defineProperty,su=st("".slice),au=st("".replace),cu=st([].join),uu=it&&!eu(function(){return fr(function(){},"length",{value:8}).length!==8}),lu=String(String).split("String"),fu=bo.exports=function(e,r,t){su(Eo(r),0,7)==="Symbol("&&(r="["+au(Eo(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),t&&t.getter&&(r="get "+r),t&&t.setter&&(r="set "+r),(!lr(e,"name")||tu&&e.name!==r)&&(it?fr(e,"name",{value:r,configurable:!0}):e.name=r),uu&&t&&lr(t,"arity")&&e.length!==t.arity&&fr(e,"length",{value:t.arity});try{t&&lr(t,"constructor")&&t.constructor?it&&fr(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch{}var n=ou(e);return lr(n,"source")||(n.source=cu(lu,typeof r=="string"?r:"")),e};Function.prototype.toString=fu(function(){return ru(this)&&iu(this).source||nu(this)},"toString")});var at=u((cd,Oo)=>{"use strict";var hu=se(),vu=Se(),du=mo(),pu=Xe();Oo.exports=function(e,r,t,n){n||(n={});var o=n.enumerable,c=n.name!==void 0?n.name:r;if(hu(t)&&du(t,c,n),n.global)o?e[r]=t:pu(r,t);else{try{n.unsafe?e[r]&&(o=!0):delete e[r]}catch{}o?e[r]=t:vu.f(e,r,{value:t,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e}});var hr=u((ud,ko)=>{"use strict";var qo=ie(),yu=qo({}.toString),_u=qo("".slice);ko.exports=function(e){return _u(yu(e),8,-1)}});var ct=u((ld,Po)=>{"use strict";var Tu=rr(),Eu=se(),vr=hr(),gu=Fe(),bu=gu("toStringTag"),mu=Object,Ou=vr((function(){return arguments})())==="Arguments",qu=function(e,r){try{return e[r]}catch{}};Po.exports=Tu?vr:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=qu(r=mu(e),bu))=="string"?t:Ou?vr(r):(n=vr(r))==="Object"&&Eu(r.callee)?"Arguments":n}});var So=u((fd,wo)=>{"use strict";var ku=rr(),Pu=ct();wo.exports=ku?{}.toString:function(){return"[object "+Pu(this)+"]"}});var Ro=u(()=>{"use strict";var wu=rr(),Su=at(),Ru=So();wu||Su(Object.prototype,"toString",Ru,{unsafe:!0})});var jo=u(Io=>{"use strict";var Co={}.propertyIsEnumerable,Do=Object.getOwnPropertyDescriptor,Cu=Do&&!Co.call({1:2},1);Io.f=Cu?function(r){var t=Do(this,r);return!!t&&t.enumerable}:Co});var xo=u((pd,No)=>{"use strict";var Du=ie(),Iu=J(),ju=hr(),ut=Object,Nu=Du("".split);No.exports=Iu(function(){return!ut("z").propertyIsEnumerable(0)})?function(e){return ju(e)==="String"?Nu(e,""):ut(e)}:ut});var He=u((yd,Mo)=>{"use strict";var xu=xo(),Mu=Qe();Mo.exports=function(e){return xu(Mu(e))}});var De=u(Ao=>{"use strict";var Lu=de(),Au=xe(),Zu=jo(),Fu=ir(),Gu=He(),Bu=nr(),Hu=ce(),Uu=Zr(),Lo=Object.getOwnPropertyDescriptor;Ao.f=Lu?Lo:function(r,t){if(r=Gu(r),t=Bu(t),Uu)try{return Lo(r,t)}catch{}if(Hu(r,t))return Fu(!Au(Zu.f,r,t),r[t])}});var Fo=u((Td,Zo)=>{"use strict";var $u=Math.ceil,Vu=Math.floor;Zo.exports=Math.trunc||function(r){var t=+r;return(t>0?Vu:$u)(t)}});var lt=u((Ed,Go)=>{"use strict";var zu=Fo();Go.exports=function(e){var r=+e;return r!==r||r===0?0:zu(r)}});var Ho=u((gd,Bo)=>{"use strict";var Wu=lt(),Yu=Math.max,Ku=Math.min;Bo.exports=function(e,r){var t=Wu(e);return t<0?Yu(t+r,0):Ku(t,r)}});var $o=u((bd,Uo)=>{"use strict";var Xu=lt(),Ju=Math.min;Uo.exports=function(e){var r=Xu(e);return r>0?Ju(r,9007199254740991):0}});var zo=u((md,Vo)=>{"use strict";var Qu=$o();Vo.exports=function(e){return Qu(e.length)}});var Ko=u((Od,Yo)=>{"use strict";var el=He(),rl=Ho(),tl=zo(),Wo=function(e){return function(r,t,n){var o=el(r),c=tl(o);if(c===0)return!e&&-1;var f=rl(n,c),l;if(e&&t!==t){for(;c>f;)if(l=o[f++],l!==l)return!0}else for(;c>f;f++)if((e||f in o)&&o[f]===t)return e||f||0;return!e&&-1}};Yo.exports={includes:Wo(!0),indexOf:Wo(!1)}});var ht=u((qd,Jo)=>{"use strict";var nl=ie(),ft=ce(),ol=He(),il=Ko().indexOf,sl=ar(),Xo=nl([].push);Jo.exports=function(e,r){var t=ol(e),n=0,o=[],c;for(c in t)!ft(sl,c)&&ft(t,c)&&Xo(o,c);for(;r.length>n;)ft(t,c=r[n++])&&(~il(o,c)||Xo(o,c));return o}});var dr=u((kd,Qo)=>{"use strict";Qo.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var ri=u(ei=>{"use strict";var al=ht(),cl=dr(),ul=cl.concat("length","prototype");ei.f=Object.getOwnPropertyNames||function(r){return al(r,ul)}});var ni=u(ti=>{"use strict";ti.f=Object.getOwnPropertySymbols});var vt=u((Sd,oi)=>{"use strict";var ll=Re(),fl=ie(),hl=ri(),vl=ni(),dl=re(),pl=fl([].concat);oi.exports=ll("Reflect","ownKeys")||function(r){var t=hl.f(dl(r)),n=vl.f;return n?pl(t,n(r)):t}});var ai=u((Rd,si)=>{"use strict";var ii=ce(),yl=vt(),_l=De(),Tl=Se();si.exports=function(e,r,t){for(var n=yl(r),o=Tl.f,c=_l.f,f=0;f<n.length;f++){var l=n[f];!ii(e,l)&&!(t&&ii(t,l))&&o(e,l,c(r,l))}}});var ui=u((Cd,ci)=>{"use strict";var El=J(),gl=se(),bl=/#|\.prototype\./,Ue=function(e,r){var t=Ol[ml(e)];return t===kl?!0:t===ql?!1:gl(r)?El(r):!!r},ml=Ue.normalize=function(e){return String(e).replace(bl,".").toLowerCase()},Ol=Ue.data={},ql=Ue.NATIVE="N",kl=Ue.POLYFILL="P";ci.exports=Ue});var ne=u((Dd,li)=>{"use strict";var pr=oe(),Pl=De().f,wl=rt(),Sl=at(),Rl=Xe(),Cl=ai(),Dl=ui();li.exports=function(e,r){var t=e.target,n=e.global,o=e.stat,c,f,l,_,q,y;if(n?f=pr:o?f=pr[t]||Rl(t,{}):f=pr[t]&&pr[t].prototype,f)for(l in r){if(q=r[l],e.dontCallGetSet?(y=Pl(f,l),_=y&&y.value):_=f[l],c=Dl(n?l:t+(o?".":"#")+l,e.forced),!c&&_!==void 0){if(typeof q==typeof _)continue;Cl(q,_)}(e.sham||_&&_.sham)&&wl(q,"sham",!0),Sl(f,l,q,e)}}});var dt=u((Id,di)=>{"use strict";var Il=Ze(),vi=Function.prototype,fi=vi.apply,hi=vi.call;di.exports=typeof Reflect=="object"&&Reflect.apply||(Il?hi.bind(fi):function(){return hi.apply(fi,arguments)})});var pi=u(()=>{"use strict";var jl=ne(),Nl=dt(),xl=Ge(),Ml=re(),Ll=J(),Al=!Ll(function(){Reflect.apply(function(){})});jl({target:"Reflect",stat:!0,forced:Al},{apply:function(r,t,n){return Nl(xl(r),t,Ml(n))}})});var _i=u((xd,yi)=>{"use strict";var Zl=ie();yi.exports=Zl([].slice)});var mi=u((Md,bi)=>{"use strict";var Ei=ie(),Fl=Ge(),Gl=ae(),Bl=ce(),Ti=_i(),Hl=Ze(),gi=Function,Ul=Ei([].concat),$l=Ei([].join),pt={},Vl=function(e,r,t){if(!Bl(pt,r)){for(var n=[],o=0;o<r;o++)n[o]="a["+o+"]";pt[r]=gi("C,a","return new C("+$l(n,",")+")")}return pt[r](e,t)};bi.exports=Hl?gi.bind:function(r){var t=Fl(this),n=t.prototype,o=Ti(arguments,1),c=function(){var l=Ul(o,Ti(arguments));return this instanceof c?Vl(t,l.length,l):t.apply(r,l)};return Gl(n)&&(c.prototype=n),c}});var Si=u((Ld,wi)=>{"use strict";var zl=ie(),Wl=J(),Oi=se(),Yl=ct(),Kl=Re(),Xl=et(),qi=function(){},ki=Kl("Reflect","construct"),yt=/^\s*(?:class|function)\b/,Jl=zl(yt.exec),Ql=!yt.test(qi),$e=function(r){if(!Oi(r))return!1;try{return ki(qi,[],r),!0}catch{return!1}},Pi=function(r){if(!Oi(r))return!1;switch(Yl(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ql||!!Jl(yt,Xl(r))}catch{return!0}};Pi.sham=!0;wi.exports=!ki||Wl(function(){var e;return $e($e.call)||!$e(Object)||!$e(function(){e=!0})||e})?Pi:$e});var Ci=u((Ad,Ri)=>{"use strict";var ef=Si(),rf=Hr(),tf=TypeError;Ri.exports=function(e){if(ef(e))return e;throw new tf(rf(e)+" is not a constructor")}});var Ii=u((Zd,Di)=>{"use strict";var nf=ht(),of=dr();Di.exports=Object.keys||function(r){return nf(r,of)}});var Ni=u(ji=>{"use strict";var sf=de(),af=Fr(),cf=Se(),uf=re(),lf=He(),ff=Ii();ji.f=sf&&!af?Object.defineProperties:function(r,t){uf(r);for(var n=lf(t),o=ff(t),c=o.length,f=0,l;c>f;)cf.f(r,l=o[f++],n[l]);return r}});var Mi=u((Gd,xi)=>{"use strict";var hf=Re();xi.exports=hf("document","documentElement")});var Ui=u((Bd,Hi)=>{"use strict";var vf=re(),df=Ni(),Li=dr(),pf=ar(),yf=Mi(),_f=Ar(),Tf=sr(),Ai=">",Zi="<",Tt="prototype",Et="script",Gi=Tf("IE_PROTO"),_t=function(){},Bi=function(e){return Zi+Et+Ai+e+Zi+"/"+Et+Ai},Fi=function(e){e.write(Bi("")),e.close();var r=e.parentWindow.Object;return e=null,r},Ef=function(){var e=_f("iframe"),r="java"+Et+":",t;return e.style.display="none",yf.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(Bi("document.F=Object")),t.close(),t.F},yr,_r=function(){try{yr=new ActiveXObject("htmlfile")}catch{}_r=typeof document<"u"?document.domain&&yr?Fi(yr):Ef():Fi(yr);for(var e=Li.length;e--;)delete _r[Tt][Li[e]];return _r()};pf[Gi]=!0;Hi.exports=Object.create||function(r,t){var n;return r!==null?(_t[Tt]=vf(r),n=new _t,_t[Tt]=null,n[Gi]=r):n=_r(),t===void 0?n:df.f(n,t)}});var Xi=u(()=>{"use strict";var gf=ne(),bf=Re(),gt=dt(),mf=mi(),$i=Ci(),Of=re(),Vi=ae(),qf=Ui(),Wi=J(),bt=bf("Reflect","construct"),kf=Object.prototype,Pf=[].push,Yi=Wi(function(){function e(){}return!(bt(function(){},[],e)instanceof e)}),Ki=!Wi(function(){bt(function(){})}),zi=Yi||Ki;gf({target:"Reflect",stat:!0,forced:zi,sham:zi},{construct:function(r,t){$i(r),Of(t);var n=arguments.length<3?r:$i(arguments[2]);if(Ki&&!Yi)return bt(r,t,n);if(r===n){switch(t.length){case 0:return new r;case 1:return new r(t[0]);case 2:return new r(t[0],t[1]);case 3:return new r(t[0],t[1],t[2]);case 4:return new r(t[0],t[1],t[2],t[3])}var o=[null];return gt(Pf,o,t),new(gt(mf,r,o))}var c=n.prototype,f=qf(Vi(c)?c:kf),l=gt(r,f,t);return Vi(l)?l:f}})});var es=u(()=>{"use strict";var wf=ne(),Sf=de(),Ji=re(),Rf=nr(),Qi=Se(),Cf=J(),Df=Cf(function(){Reflect.defineProperty(Qi.f({},1,{value:1}),1,{value:2})});wf({target:"Reflect",stat:!0,forced:Df,sham:!Sf},{defineProperty:function(r,t,n){Ji(r);var o=Rf(t);Ji(n);try{return Qi.f(r,o,n),!0}catch{return!1}}})});var rs=u(()=>{"use strict";var If=ne(),jf=re(),Nf=De().f;If({target:"Reflect",stat:!0},{deleteProperty:function(r,t){var n=Nf(jf(r),t);return n&&!n.configurable?!1:delete r[t]}})});var mt=u((Yd,ns)=>{"use strict";var ts=ce();ns.exports=function(e){return e!==void 0&&(ts(e,"value")||ts(e,"writable"))}});var Ot=u((Kd,os)=>{"use strict";var xf=J();os.exports=!xf(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Tr=u((Xd,ss)=>{"use strict";var Mf=ce(),Lf=se(),Af=Cr(),Zf=sr(),Ff=Ot(),is=Zf("IE_PROTO"),qt=Object,Gf=qt.prototype;ss.exports=Ff?qt.getPrototypeOf:function(e){var r=Af(e);if(Mf(r,is))return r[is];var t=r.constructor;return Lf(t)&&r instanceof t?t.prototype:r instanceof qt?Gf:null}});var cs=u(()=>{"use strict";var Bf=ne(),Hf=xe(),Uf=ae(),$f=re(),Vf=mt(),zf=De(),Wf=Tr();function as(e,r){var t=arguments.length<3?e:arguments[2],n,o;if($f(e)===t)return e[r];if(n=zf.f(e,r),n)return Vf(n)?n.value:n.get===void 0?void 0:Hf(n.get,t);if(Uf(o=Wf(e)))return as(o,r,t)}Bf({target:"Reflect",stat:!0},{get:as})});var us=u(()=>{"use strict";var Yf=ne(),Kf=de(),Xf=re(),Jf=De();Yf({target:"Reflect",stat:!0,sham:!Kf},{getOwnPropertyDescriptor:function(r,t){return Jf.f(Xf(r),t)}})});var ls=u(()=>{"use strict";var Qf=ne(),eh=re(),rh=Tr(),th=Ot();Qf({target:"Reflect",stat:!0,sham:!th},{getPrototypeOf:function(r){return rh(eh(r))}})});var fs=u(()=>{"use strict";var nh=ne();nh({target:"Reflect",stat:!0},{has:function(r,t){return t in r}})});var vs=u((sp,hs)=>{"use strict";var oh=J();hs.exports=oh(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var ys=u((ap,ps)=>{"use strict";var ih=J(),sh=ae(),ah=hr(),ds=vs(),Er=Object.isExtensible,ch=ih(function(){Er(1)});ps.exports=ch||ds?function(r){return!sh(r)||ds&&ah(r)==="ArrayBuffer"?!1:Er?Er(r):!0}:Er});var _s=u(()=>{"use strict";var uh=ne(),lh=re(),fh=ys();uh({target:"Reflect",stat:!0},{isExtensible:function(r){return lh(r),fh(r)}})});var Ts=u(()=>{"use strict";var hh=ne(),vh=vt();hh({target:"Reflect",stat:!0},{ownKeys:vh})});var gs=u((hp,Es)=>{"use strict";var dh=J();Es.exports=!dh(function(){return Object.isExtensible(Object.preventExtensions({}))})});var bs=u(()=>{"use strict";var ph=ne(),yh=Re(),_h=re(),Th=gs();ph({target:"Reflect",stat:!0,sham:!Th},{preventExtensions:function(r){_h(r);try{var t=yh("Object","preventExtensions");return t&&t(r),!0}catch{return!1}}})});var Ps=u(()=>{"use strict";var Eh=ne(),gh=xe(),bh=re(),ms=ae(),mh=mt(),Oh=J(),kt=Se(),Os=De(),qh=Tr(),qs=ir();function ks(e,r,t){var n=arguments.length<4?e:arguments[3],o=Os.f(bh(e),r),c,f,l;if(!o){if(ms(f=qh(e)))return ks(f,r,t,n);o=qs(0)}if(mh(o)){if(o.writable===!1||!ms(n))return!1;if(c=Os.f(n,r)){if(c.get||c.set||c.writable===!1)return!1;c.value=t,kt.f(n,r,c)}else kt.f(n,r,qs(0,t))}else{if(l=o.set,l===void 0)return!1;gh(l,n,t)}return!0}var kh=Oh(function(){var e=function(){},r=kt.f(new e,"a",{configurable:!0});return Reflect.set(e.prototype,"a",1,r)!==!1});Eh({target:"Reflect",stat:!0,forced:kh},{set:ks})});var Ss=u((_p,ws)=>{"use strict";var Ph=ae();ws.exports=function(e){return Ph(e)||e===null}});var Pt=u((Tp,Rs)=>{"use strict";var wh=Ss(),Sh=String,Rh=TypeError;Rs.exports=function(e){if(wh(e))return e;throw new Rh("Can't set "+Sh(e)+" as a prototype")}});var Ds=u((Ep,Cs)=>{"use strict";var Ch=ie(),Dh=Ge();Cs.exports=function(e,r,t){try{return Ch(Dh(Object.getOwnPropertyDescriptor(e,r)[t]))}catch{}}});var js=u((gp,Is)=>{"use strict";var Ih=Ds(),jh=ae(),Nh=Qe(),xh=Pt();Is.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var e=!1,r={},t;try{t=Ih(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch{}return function(o,c){return Nh(o),xh(c),jh(o)&&(e?t(o,c):o.__proto__=c),o}})():void 0)});var xs=u(()=>{"use strict";var Mh=ne(),Lh=re(),Ah=Pt(),Ns=js();Ns&&Mh({target:"Reflect",stat:!0},{setPrototypeOf:function(r,t){Lh(r),Ah(t);try{return Ns(r,t),!0}catch{return!1}}})});var As=u((Op,Ls)=>{"use strict";var Zh=Se().f,Fh=ce(),Gh=Fe(),Ms=Gh("toStringTag");Ls.exports=function(e,r,t){e&&!t&&(e=e.prototype),e&&!Fh(e,Ms)&&Zh(e,Ms,{configurable:!0,value:r})}});var Zs=u(()=>{"use strict";var Bh=ne(),Hh=oe(),Uh=As();Bh({global:!0},{Reflect:{}});Uh(Hh.Reflect,"Reflect",!0)});var Gs=u((Pp,Fs)=>{"use strict";var $h=oe();Fs.exports=$h});var Hs=u((wp,Bs)=>{"use strict";Ro();pi();Xi();es();rs();cs();us();ls();fs();_s();Ts();bs();Ps();xs();Zs();var Vh=Gs();Bs.exports=Vh.Reflect});var Sp=da(Hs());var Ee=globalThis;function ue(e){return(Ee.__Zone_symbol_prefix||"__zone_symbol__")+e}function zh(){let e=Ee.performance;function r(I){e&&e.mark&&e.mark(I)}function t(I,T){e&&e.measure&&e.measure(I,T)}r("Zone");let n=(()=>{class I{static __symbol__=ue;static assertZonePatched(){if(Ee.Promise!==D.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let i=I.current;for(;i.parent;)i=i.parent;return i}static get current(){return k.zone}static get currentTask(){return C}static __load_patch(i,s,b=!1){if(D.hasOwnProperty(i)){let P=Ee[ue("forceDuplicateZoneCheck")]===!0;if(!b&&P)throw Error("Already loaded patch: "+i)}else if(!Ee["__Zone_disable_"+i]){let P="Zone:"+i;r(P),D[i]=s(Ee,I,S),t(P,P)}}get parent(){return this._parent}get name(){return this._name}_parent;_name;_properties;_zoneDelegate;constructor(i,s){this._parent=i,this._name=s?s.name||"unnamed":"<root>",this._properties=s&&s.properties||{},this._zoneDelegate=new c(this,this._parent&&this._parent._zoneDelegate,s)}get(i){let s=this.getZoneWith(i);if(s)return s._properties[i]}getZoneWith(i){let s=this;for(;s;){if(s._properties.hasOwnProperty(i))return s;s=s._parent}return null}fork(i){if(!i)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,i)}wrap(i,s){if(typeof i!="function")throw new Error("Expecting function got: "+i);let b=this._zoneDelegate.intercept(this,i,s),P=this;return function(){return P.runGuarded(b,this,arguments,s)}}run(i,s,b,P){k={parent:k,zone:this};try{return this._zoneDelegate.invoke(this,i,s,b,P)}finally{k=k.parent}}runGuarded(i,s=null,b,P){k={parent:k,zone:this};try{try{return this._zoneDelegate.invoke(this,i,s,b,P)}catch(W){if(this._zoneDelegate.handleError(this,W))throw W}}finally{k=k.parent}}runTask(i,s,b){if(i.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(i.zone||ee).name+"; Execution: "+this.name+")");let P=i,{type:W,data:{isPeriodic:L=!1,isRefreshable:Pe=!1}={}}=i;if(i.state===Y&&(W===V||W===E))return;let ge=i.state!=A;ge&&P._transitionTo(A,p);let be=C;C=P,k={parent:k,zone:this};try{W==E&&i.data&&!L&&!Pe&&(i.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,P,s,b)}catch(fe){if(this._zoneDelegate.handleError(this,fe))throw fe}}finally{let fe=i.state;if(fe!==Y&&fe!==K)if(W==V||L||Pe&&fe===m)ge&&P._transitionTo(p,A,m);else{let d=P._zoneDelegates;this._updateTaskCount(P,-1),ge&&P._transitionTo(Y,A,Y),Pe&&(P._zoneDelegates=d)}k=k.parent,C=be}}scheduleTask(i){if(i.zone&&i.zone!==this){let b=this;for(;b;){if(b===i.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${i.zone.name}`);b=b.parent}}i._transitionTo(m,Y);let s=[];i._zoneDelegates=s,i._zone=this;try{i=this._zoneDelegate.scheduleTask(this,i)}catch(b){throw i._transitionTo(K,m,Y),this._zoneDelegate.handleError(this,b),b}return i._zoneDelegates===s&&this._updateTaskCount(i,1),i.state==m&&i._transitionTo(p,m),i}scheduleMicroTask(i,s,b,P){return this.scheduleTask(new f(B,i,s,b,P,void 0))}scheduleMacroTask(i,s,b,P,W){return this.scheduleTask(new f(E,i,s,b,P,W))}scheduleEventTask(i,s,b,P,W){return this.scheduleTask(new f(V,i,s,b,P,W))}cancelTask(i){if(i.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(i.zone||ee).name+"; Execution: "+this.name+")");if(!(i.state!==p&&i.state!==A)){i._transitionTo(G,p,A);try{this._zoneDelegate.cancelTask(this,i)}catch(s){throw i._transitionTo(K,G),this._zoneDelegate.handleError(this,s),s}return this._updateTaskCount(i,-1),i._transitionTo(Y,G),i.runCount=-1,i}}_updateTaskCount(i,s){let b=i._zoneDelegates;s==-1&&(i._zoneDelegates=null);for(let P=0;P<b.length;P++)b[P]._updateTaskCount(i.type,s)}}return I})(),o={name:"",onHasTask:(I,T,i,s)=>I.hasTask(i,s),onScheduleTask:(I,T,i,s)=>I.scheduleTask(i,s),onInvokeTask:(I,T,i,s,b,P)=>I.invokeTask(i,s,b,P),onCancelTask:(I,T,i,s)=>I.cancelTask(i,s)};class c{get zone(){return this._zone}_zone;_taskCounts={microTask:0,macroTask:0,eventTask:0};_parentDelegate;_forkDlgt;_forkZS;_forkCurrZone;_interceptDlgt;_interceptZS;_interceptCurrZone;_invokeDlgt;_invokeZS;_invokeCurrZone;_handleErrorDlgt;_handleErrorZS;_handleErrorCurrZone;_scheduleTaskDlgt;_scheduleTaskZS;_scheduleTaskCurrZone;_invokeTaskDlgt;_invokeTaskZS;_invokeTaskCurrZone;_cancelTaskDlgt;_cancelTaskZS;_cancelTaskCurrZone;_hasTaskDlgt;_hasTaskDlgtOwner;_hasTaskZS;_hasTaskCurrZone;constructor(T,i,s){this._zone=T,this._parentDelegate=i,this._forkZS=s&&(s&&s.onFork?s:i._forkZS),this._forkDlgt=s&&(s.onFork?i:i._forkDlgt),this._forkCurrZone=s&&(s.onFork?this._zone:i._forkCurrZone),this._interceptZS=s&&(s.onIntercept?s:i._interceptZS),this._interceptDlgt=s&&(s.onIntercept?i:i._interceptDlgt),this._interceptCurrZone=s&&(s.onIntercept?this._zone:i._interceptCurrZone),this._invokeZS=s&&(s.onInvoke?s:i._invokeZS),this._invokeDlgt=s&&(s.onInvoke?i:i._invokeDlgt),this._invokeCurrZone=s&&(s.onInvoke?this._zone:i._invokeCurrZone),this._handleErrorZS=s&&(s.onHandleError?s:i._handleErrorZS),this._handleErrorDlgt=s&&(s.onHandleError?i:i._handleErrorDlgt),this._handleErrorCurrZone=s&&(s.onHandleError?this._zone:i._handleErrorCurrZone),this._scheduleTaskZS=s&&(s.onScheduleTask?s:i._scheduleTaskZS),this._scheduleTaskDlgt=s&&(s.onScheduleTask?i:i._scheduleTaskDlgt),this._scheduleTaskCurrZone=s&&(s.onScheduleTask?this._zone:i._scheduleTaskCurrZone),this._invokeTaskZS=s&&(s.onInvokeTask?s:i._invokeTaskZS),this._invokeTaskDlgt=s&&(s.onInvokeTask?i:i._invokeTaskDlgt),this._invokeTaskCurrZone=s&&(s.onInvokeTask?this._zone:i._invokeTaskCurrZone),this._cancelTaskZS=s&&(s.onCancelTask?s:i._cancelTaskZS),this._cancelTaskDlgt=s&&(s.onCancelTask?i:i._cancelTaskDlgt),this._cancelTaskCurrZone=s&&(s.onCancelTask?this._zone:i._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let b=s&&s.onHasTask,P=i&&i._hasTaskZS;(b||P)&&(this._hasTaskZS=b?s:o,this._hasTaskDlgt=i,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,s.onScheduleTask||(this._scheduleTaskZS=o,this._scheduleTaskDlgt=i,this._scheduleTaskCurrZone=this._zone),s.onInvokeTask||(this._invokeTaskZS=o,this._invokeTaskDlgt=i,this._invokeTaskCurrZone=this._zone),s.onCancelTask||(this._cancelTaskZS=o,this._cancelTaskDlgt=i,this._cancelTaskCurrZone=this._zone))}fork(T,i){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,T,i):new n(T,i)}intercept(T,i,s){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,T,i,s):i}invoke(T,i,s,b,P){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,T,i,s,b,P):i.apply(s,b)}handleError(T,i){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,T,i):!0}scheduleTask(T,i){let s=i;if(this._scheduleTaskZS)this._hasTaskZS&&s._zoneDelegates.push(this._hasTaskDlgtOwner),s=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,T,i),s||(s=i);else if(i.scheduleFn)i.scheduleFn(i);else if(i.type==B)$(i);else throw new Error("Task is missing scheduleFn.");return s}invokeTask(T,i,s,b){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,T,i,s,b):i.callback.apply(s,b)}cancelTask(T,i){let s;if(this._cancelTaskZS)s=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,T,i);else{if(!i.cancelFn)throw Error("Task is not cancelable");s=i.cancelFn(i)}return s}hasTask(T,i){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,T,i)}catch(s){this.handleError(T,s)}}_updateTaskCount(T,i){let s=this._taskCounts,b=s[T],P=s[T]=b+i;if(P<0)throw new Error("More tasks executed then were scheduled.");if(b==0||P==0){let W={microTask:s.microTask>0,macroTask:s.macroTask>0,eventTask:s.eventTask>0,change:T};this.hasTask(this._zone,W)}}}class f{type;source;invoke;callback;data;scheduleFn;cancelFn;_zone=null;runCount=0;_zoneDelegates=null;_state="notScheduled";constructor(T,i,s,b,P,W){if(this.type=T,this.source=i,this.data=b,this.scheduleFn=P,this.cancelFn=W,!s)throw new Error("callback is not defined");this.callback=s;let L=this;T===V&&b&&b.useG?this.invoke=f.invokeTask:this.invoke=function(){return f.invokeTask.call(Ee,L,this,arguments)}}static invokeTask(T,i,s){T||(T=this),te++;try{return T.runCount++,T.zone.runTask(T,i,s)}finally{te==1&&Q(),te--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(Y,m)}_transitionTo(T,i,s){if(this._state===i||this._state===s)this._state=T,T==Y&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${T}', expecting state '${i}'${s?" or '"+s+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let l=ue("setTimeout"),_=ue("Promise"),q=ue("then"),y=[],w=!1,M;function F(I){if(M||Ee[_]&&(M=Ee[_].resolve(0)),M){let T=M[q];T||(T=M.then),T.call(M,I)}else Ee[l](I,0)}function $(I){te===0&&y.length===0&&F(Q),I&&y.push(I)}function Q(){if(!w){for(w=!0;y.length;){let I=y;y=[];for(let T=0;T<I.length;T++){let i=I[T];try{i.zone.runTask(i,null,null)}catch(s){S.onUnhandledError(s)}}}S.microtaskDrainDone(),w=!1}}let ee={name:"NO ZONE"},Y="notScheduled",m="scheduling",p="scheduled",A="running",G="canceling",K="unknown",B="microTask",E="macroTask",V="eventTask",D={},S={symbol:ue,currentZoneFrame:()=>k,onUnhandledError:z,microtaskDrainDone:z,scheduleMicroTask:$,showUncaughtError:()=>!n[ue("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:z,patchMethod:()=>z,bindArguments:()=>[],patchThen:()=>z,patchMacroTask:()=>z,patchEventPrototype:()=>z,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>z,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>z,wrapWithCurrentZone:()=>z,filterProperties:()=>[],attachOriginToPatched:()=>z,_redefineProperty:()=>z,patchCallbacks:()=>z,nativeScheduleMicroTask:F},k={parent:null,zone:new n(null,null)},C=null,te=0;function z(){}return t("Zone","Zone"),n}function Wh(){let e=globalThis,r=e[ue("forceDuplicateZoneCheck")]===!0;if(e.Zone&&(r||typeof e.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return e.Zone??=zh(),e.Zone}var ze=Object.getOwnPropertyDescriptor,Dt=Object.defineProperty,It=Object.getPrototypeOf,Yh=Object.create,Kh=Array.prototype.slice,jt="addEventListener",Nt="removeEventListener",wt=ue(jt),St=ue(Nt),me="true",Oe="false",We=ue("");function xt(e,r){return Zone.current.wrap(e,r)}function Mt(e,r,t,n,o){return Zone.current.scheduleMacroTask(e,r,t,n,o)}var Z=ue,mr=typeof window<"u",Ye=mr?window:void 0,X=mr&&Ye||globalThis,Xh="removeAttribute";function Lt(e,r){for(let t=e.length-1;t>=0;t--)typeof e[t]=="function"&&(e[t]=xt(e[t],r+"_"+t));return e}function Jh(e,r){let t=e.constructor.name;for(let n=0;n<r.length;n++){let o=r[n],c=e[o];if(c){let f=ze(e,o);if(!Ks(f))continue;e[o]=(l=>{let _=function(){return l.apply(this,Lt(arguments,t+"."+o))};return ke(_,l),_})(c)}}}function Ks(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var Xs=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Or=!("nw"in X)&&typeof X.process<"u"&&X.process.toString()==="[object process]",At=!Or&&!Xs&&!!(mr&&Ye.HTMLElement),Js=typeof X.process<"u"&&X.process.toString()==="[object process]"&&!Xs&&!!(mr&&Ye.HTMLElement),br={},Qh=Z("enable_beforeunload"),Us=function(e){if(e=e||X.event,!e)return;let r=br[e.type];r||(r=br[e.type]=Z("ON_PROPERTY"+e.type));let t=this||e.target||X,n=t[r],o;if(At&&t===Ye&&e.type==="error"){let c=e;o=n&&n.call(this,c.message,c.filename,c.lineno,c.colno,c.error),o===!0&&e.preventDefault()}else o=n&&n.apply(this,arguments),e.type==="beforeunload"&&X[Qh]&&typeof o=="string"?e.returnValue=o:o!=null&&!o&&e.preventDefault();return o};function $s(e,r,t){let n=ze(e,r);if(!n&&t&&ze(t,r)&&(n={enumerable:!0,configurable:!0}),!n||!n.configurable)return;let o=Z("on"+r+"patched");if(e.hasOwnProperty(o)&&e[o])return;delete n.writable,delete n.value;let c=n.get,f=n.set,l=r.slice(2),_=br[l];_||(_=br[l]=Z("ON_PROPERTY"+l)),n.set=function(q){let y=this;if(!y&&e===X&&(y=X),!y)return;typeof y[_]=="function"&&y.removeEventListener(l,Us),f?.call(y,null),y[_]=q,typeof q=="function"&&y.addEventListener(l,Us,!1)},n.get=function(){let q=this;if(!q&&e===X&&(q=X),!q)return null;let y=q[_];if(y)return y;if(c){let w=c.call(this);if(w)return n.set.call(this,w),typeof q[Xh]=="function"&&q.removeAttribute(r),w}return null},Dt(e,r,n),e[o]=!0}function Qs(e,r,t){if(r)for(let n=0;n<r.length;n++)$s(e,"on"+r[n],t);else{let n=[];for(let o in e)o.slice(0,2)=="on"&&n.push(o);for(let o=0;o<n.length;o++)$s(e,n[o],t)}}var ye=Z("originalInstance");function Ve(e){let r=X[e];if(!r)return;X[Z(e)]=r,X[e]=function(){let o=Lt(arguments,e);switch(o.length){case 0:this[ye]=new r;break;case 1:this[ye]=new r(o[0]);break;case 2:this[ye]=new r(o[0],o[1]);break;case 3:this[ye]=new r(o[0],o[1],o[2]);break;case 4:this[ye]=new r(o[0],o[1],o[2],o[3]);break;default:throw new Error("Arg list too long.")}},ke(X[e],r);let t=new r(function(){}),n;for(n in t)e==="XMLHttpRequest"&&n==="responseBlob"||(function(o){typeof t[o]=="function"?X[e].prototype[o]=function(){return this[ye][o].apply(this[ye],arguments)}:Dt(X[e].prototype,o,{set:function(c){typeof c=="function"?(this[ye][o]=xt(c,e+"."+o),ke(this[ye][o],c)):this[ye][o]=c},get:function(){return this[ye][o]}})})(n);for(n in r)n!=="prototype"&&r.hasOwnProperty(n)&&(X[e][n]=r[n])}function qe(e,r,t){let n=e;for(;n&&!n.hasOwnProperty(r);)n=It(n);!n&&e[r]&&(n=e);let o=Z(r),c=null;if(n&&(!(c=n[o])||!n.hasOwnProperty(o))){c=n[o]=n[r];let f=n&&ze(n,r);if(Ks(f)){let l=t(c,o,r);n[r]=function(){return l(this,arguments)},ke(n[r],c)}}return c}function ev(e,r,t){let n=null;function o(c){let f=c.data;return f.args[f.cbIdx]=function(){c.invoke.apply(this,arguments)},n.apply(f.target,f.args),c}n=qe(e,r,c=>function(f,l){let _=t(f,l);return _.cbIdx>=0&&typeof l[_.cbIdx]=="function"?Mt(_.name,l[_.cbIdx],_,o):c.apply(f,l)})}function ke(e,r){e[Z("OriginalDelegate")]=r}var Vs=!1,Rt=!1;function rv(){if(Vs)return Rt;Vs=!0;try{let e=Ye.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Rt=!0)}catch{}return Rt}function zs(e){return typeof e=="function"}function Ws(e){return typeof e=="number"}var tv={useG:!0},le={},ea={},ra=new RegExp("^"+We+"(\\w+)(true|false)$"),ta=Z("propagationStopped");function na(e,r){let t=(r?r(e):e)+Oe,n=(r?r(e):e)+me,o=We+t,c=We+n;le[e]={},le[e][Oe]=o,le[e][me]=c}function nv(e,r,t,n){let o=n&&n.add||jt,c=n&&n.rm||Nt,f=n&&n.listeners||"eventListeners",l=n&&n.rmAll||"removeAllListeners",_=Z(o),q="."+o+":",y="prependListener",w="."+y+":",M=function(m,p,A){if(m.isRemoved)return;let G=m.callback;typeof G=="object"&&G.handleEvent&&(m.callback=E=>G.handleEvent(E),m.originalDelegate=G);let K;try{m.invoke(m,p,[A])}catch(E){K=E}let B=m.options;if(B&&typeof B=="object"&&B.once){let E=m.originalDelegate?m.originalDelegate:m.callback;p[c].call(p,A.type,E,B)}return K};function F(m,p,A){if(p=p||e.event,!p)return;let G=m||p.target||e,K=G[le[p.type][A?me:Oe]];if(K){let B=[];if(K.length===1){let E=M(K[0],G,p);E&&B.push(E)}else{let E=K.slice();for(let V=0;V<E.length&&!(p&&p[ta]===!0);V++){let D=M(E[V],G,p);D&&B.push(D)}}if(B.length===1)throw B[0];for(let E=0;E<B.length;E++){let V=B[E];r.nativeScheduleMicroTask(()=>{throw V})}}}let $=function(m){return F(this,m,!1)},Q=function(m){return F(this,m,!0)};function ee(m,p){if(!m)return!1;let A=!0;p&&p.useG!==void 0&&(A=p.useG);let G=p&&p.vh,K=!0;p&&p.chkDup!==void 0&&(K=p.chkDup);let B=!1;p&&p.rt!==void 0&&(B=p.rt);let E=m;for(;E&&!E.hasOwnProperty(o);)E=It(E);if(!E&&m[o]&&(E=m),!E||E[_])return!1;let V=p&&p.eventNameToString,D={},S=E[_]=E[o],k=E[Z(c)]=E[c],C=E[Z(f)]=E[f],te=E[Z(l)]=E[l],z;p&&p.prepend&&(z=E[Z(p.prepend)]=E[p.prepend]);function I(a,v){return v?typeof a=="boolean"?{capture:a,passive:!0}:a?typeof a=="object"&&a.passive!==!1?{...a,passive:!0}:a:{passive:!0}:a}let T=function(a){if(!D.isExisting)return S.call(D.target,D.eventName,D.capture?Q:$,D.options)},i=function(a){if(!a.isRemoved){let v=le[a.eventName],O;v&&(O=v[a.capture?me:Oe]);let R=O&&a.target[O];if(R){for(let g=0;g<R.length;g++)if(R[g]===a){R.splice(g,1),a.isRemoved=!0,a.removeAbortListener&&(a.removeAbortListener(),a.removeAbortListener=null),R.length===0&&(a.allRemoved=!0,a.target[O]=null);break}}}if(a.allRemoved)return k.call(a.target,a.eventName,a.capture?Q:$,a.options)},s=function(a){return S.call(D.target,D.eventName,a.invoke,D.options)},b=function(a){return z.call(D.target,D.eventName,a.invoke,D.options)},P=function(a){return k.call(a.target,a.eventName,a.invoke,a.options)},W=A?T:s,L=A?i:P,Pe=function(a,v){let O=typeof v;return O==="function"&&a.callback===v||O==="object"&&a.originalDelegate===v},ge=p?.diff||Pe,be=Zone[Z("UNPATCHED_EVENTS")],fe=e[Z("PASSIVE_EVENTS")];function d(a){if(typeof a=="object"&&a!==null){let v={...a};return a.signal&&(v.signal=a.signal),v}return a}let h=function(a,v,O,R,g=!1,j=!1){return function(){let N=this||e,x=arguments[0];p&&p.transferEventName&&(x=p.transferEventName(x));let H=arguments[1];if(!H)return a.apply(this,arguments);if(Or&&x==="uncaughtException")return a.apply(this,arguments);let U=!1;if(typeof H!="function"){if(!H.handleEvent)return a.apply(this,arguments);U=!0}if(G&&!G(a,H,N,arguments))return;let we=!!fe&&fe.indexOf(x)!==-1,_e=d(I(arguments[2],we)),Ie=_e?.signal;if(Ie?.aborted)return;if(be){for(let Te=0;Te<be.length;Te++)if(x===be[Te])return we?a.call(N,x,H,_e):a.apply(this,arguments)}let qr=_e?typeof _e=="boolean"?!0:_e.capture:!1,Zt=_e&&typeof _e=="object"?_e.once:!1,aa=Zone.current,kr=le[x];kr||(na(x,V),kr=le[x]);let Ft=kr[qr?me:Oe],je=N[Ft],Gt=!1;if(je){if(Gt=!0,K){for(let Te=0;Te<je.length;Te++)if(ge(je[Te],H))return}}else je=N[Ft]=[];let Ke,Bt=N.constructor.name,Ht=ea[Bt];Ht&&(Ke=Ht[x]),Ke||(Ke=Bt+v+(V?V(x):x)),D.options=_e,Zt&&(D.options.once=!1),D.target=N,D.capture=qr,D.eventName=x,D.isExisting=Gt;let Le=A?tv:void 0;Le&&(Le.taskData=D),Ie&&(D.options.signal=void 0);let he=aa.scheduleEventTask(Ke,H,Le,O,R);if(Ie){D.options.signal=Ie;let Te=()=>he.zone.cancelTask(he);a.call(Ie,"abort",Te,{once:!0}),he.removeAbortListener=()=>Ie.removeEventListener("abort",Te)}if(D.target=null,Le&&(Le.taskData=null),Zt&&(D.options.once=!0),typeof he.options!="boolean"&&(he.options=_e),he.target=N,he.capture=qr,he.eventName=x,U&&(he.originalDelegate=H),j?je.unshift(he):je.push(he),g)return N}};return E[o]=h(S,q,W,L,B),z&&(E[y]=h(z,w,b,L,B,!0)),E[c]=function(){let a=this||e,v=arguments[0];p&&p.transferEventName&&(v=p.transferEventName(v));let O=arguments[2],R=O?typeof O=="boolean"?!0:O.capture:!1,g=arguments[1];if(!g)return k.apply(this,arguments);if(G&&!G(k,g,a,arguments))return;let j=le[v],N;j&&(N=j[R?me:Oe]);let x=N&&a[N];if(x)for(let H=0;H<x.length;H++){let U=x[H];if(ge(U,g)){if(x.splice(H,1),U.isRemoved=!0,x.length===0&&(U.allRemoved=!0,a[N]=null,!R&&typeof v=="string")){let we=We+"ON_PROPERTY"+v;a[we]=null}return U.zone.cancelTask(U),B?a:void 0}}return k.apply(this,arguments)},E[f]=function(){let a=this||e,v=arguments[0];p&&p.transferEventName&&(v=p.transferEventName(v));let O=[],R=oa(a,V?V(v):v);for(let g=0;g<R.length;g++){let j=R[g],N=j.originalDelegate?j.originalDelegate:j.callback;O.push(N)}return O},E[l]=function(){let a=this||e,v=arguments[0];if(v){p&&p.transferEventName&&(v=p.transferEventName(v));let O=le[v];if(O){let R=O[Oe],g=O[me],j=a[R],N=a[g];if(j){let x=j.slice();for(let H=0;H<x.length;H++){let U=x[H],we=U.originalDelegate?U.originalDelegate:U.callback;this[c].call(this,v,we,U.options)}}if(N){let x=N.slice();for(let H=0;H<x.length;H++){let U=x[H],we=U.originalDelegate?U.originalDelegate:U.callback;this[c].call(this,v,we,U.options)}}}}else{let O=Object.keys(a);for(let R=0;R<O.length;R++){let g=O[R],j=ra.exec(g),N=j&&j[1];N&&N!=="removeListener"&&this[l].call(this,N)}this[l].call(this,"removeListener")}if(B)return this},ke(E[o],S),ke(E[c],k),te&&ke(E[l],te),C&&ke(E[f],C),!0}let Y=[];for(let m=0;m<t.length;m++)Y[m]=ee(t[m],n);return Y}function oa(e,r){if(!r){let c=[];for(let f in e){let l=ra.exec(f),_=l&&l[1];if(_&&(!r||_===r)){let q=e[f];if(q)for(let y=0;y<q.length;y++)c.push(q[y])}}return c}let t=le[r];t||(na(r),t=le[r]);let n=e[t[Oe]],o=e[t[me]];return n?o?n.concat(o):n.slice():o?o.slice():[]}function ov(e,r){let t=e.Event;t&&t.prototype&&r.patchMethod(t.prototype,"stopImmediatePropagation",n=>function(o,c){o[ta]=!0,n&&n.apply(o,c)})}function iv(e,r){r.patchMethod(e,"queueMicrotask",t=>function(n,o){Zone.current.scheduleMicroTask("queueMicrotask",o[0])})}var gr=Z("zoneTask");function Me(e,r,t,n){let o=null,c=null;r+=n,t+=n;let f={};function l(q){let y=q.data;y.args[0]=function(){return q.invoke.apply(this,arguments)};let w=o.apply(e,y.args);return Ws(w)?y.handleId=w:(y.handle=w,y.isRefreshable=zs(w.refresh)),q}function _(q){let{handle:y,handleId:w}=q.data;return c.call(e,y??w)}o=qe(e,r,q=>function(y,w){if(zs(w[0])){let M={isRefreshable:!1,isPeriodic:n==="Interval",delay:n==="Timeout"||n==="Interval"?w[1]||0:void 0,args:w},F=w[0];w[0]=function(){try{return F.apply(this,arguments)}finally{let{handle:A,handleId:G,isPeriodic:K,isRefreshable:B}=M;!K&&!B&&(G?delete f[G]:A&&(A[gr]=null))}};let $=Mt(r,w[0],M,l,_);if(!$)return $;let{handleId:Q,handle:ee,isRefreshable:Y,isPeriodic:m}=$.data;if(Q)f[Q]=$;else if(ee&&(ee[gr]=$,Y&&!m)){let p=ee.refresh;ee.refresh=function(){let{zone:A,state:G}=$;return G==="notScheduled"?($._state="scheduled",A._updateTaskCount($,1)):G==="running"&&($._state="scheduling"),p.call(this)}}return ee??Q??$}else return q.apply(e,w)}),c=qe(e,t,q=>function(y,w){let M=w[0],F;Ws(M)?(F=f[M],delete f[M]):(F=M?.[gr],F?M[gr]=null:F=M),F?.type?F.cancelFn&&F.zone.cancelTask(F):q.apply(e,w)})}function sv(e,r){let{isBrowser:t,isMix:n}=r.getGlobalObjects();if(!t&&!n||!e.customElements||!("customElements"in e))return;let o=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];r.patchCallbacks(r,e.customElements,"customElements","define",o)}function av(e,r){if(Zone[r.symbol("patchEventTarget")])return;let{eventNames:t,zoneSymbolEventNames:n,TRUE_STR:o,FALSE_STR:c,ZONE_SYMBOL_PREFIX:f}=r.getGlobalObjects();for(let _=0;_<t.length;_++){let q=t[_],y=q+c,w=q+o,M=f+y,F=f+w;n[q]={},n[q][c]=M,n[q][o]=F}let l=e.EventTarget;if(!(!l||!l.prototype))return r.patchEventTarget(e,r,[l&&l.prototype]),!0}function cv(e,r){r.patchEventPrototype(e,r)}function ia(e,r,t){if(!t||t.length===0)return r;let n=t.filter(c=>c.target===e);if(n.length===0)return r;let o=n[0].ignoreProperties;return r.filter(c=>o.indexOf(c)===-1)}function Ys(e,r,t,n){if(!e)return;let o=ia(e,r,t);Qs(e,o,n)}function Ct(e){return Object.getOwnPropertyNames(e).filter(r=>r.startsWith("on")&&r.length>2).map(r=>r.substring(2))}function uv(e,r){if(Or&&!Js||Zone[e.symbol("patchEvents")])return;let t=r.__Zone_ignore_on_properties,n=[];if(At){let o=window;n=n.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let c=[];Ys(o,Ct(o),t&&t.concat(c),It(o))}n=n.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let o=0;o<n.length;o++){let c=r[n[o]];c?.prototype&&Ys(c.prototype,Ct(c.prototype),t)}}function lv(e){e.__load_patch("legacy",r=>{let t=r[e.__symbol__("legacyPatch")];t&&t()}),e.__load_patch("timers",r=>{let n="clear";Me(r,"set",n,"Timeout"),Me(r,"set",n,"Interval"),Me(r,"set",n,"Immediate")}),e.__load_patch("requestAnimationFrame",r=>{Me(r,"request","cancel","AnimationFrame"),Me(r,"mozRequest","mozCancel","AnimationFrame"),Me(r,"webkitRequest","webkitCancel","AnimationFrame")}),e.__load_patch("blocking",(r,t)=>{let n=["alert","prompt","confirm"];for(let o=0;o<n.length;o++){let c=n[o];qe(r,c,(f,l,_)=>function(q,y){return t.current.run(f,r,y,_)})}}),e.__load_patch("EventTarget",(r,t,n)=>{cv(r,n),av(r,n);let o=r.XMLHttpRequestEventTarget;o&&o.prototype&&n.patchEventTarget(r,n,[o.prototype])}),e.__load_patch("MutationObserver",(r,t,n)=>{Ve("MutationObserver"),Ve("WebKitMutationObserver")}),e.__load_patch("IntersectionObserver",(r,t,n)=>{Ve("IntersectionObserver")}),e.__load_patch("FileReader",(r,t,n)=>{Ve("FileReader")}),e.__load_patch("on_property",(r,t,n)=>{uv(n,r)}),e.__load_patch("customElements",(r,t,n)=>{sv(r,n)}),e.__load_patch("XHR",(r,t)=>{q(r);let n=Z("xhrTask"),o=Z("xhrSync"),c=Z("xhrListener"),f=Z("xhrScheduled"),l=Z("xhrURL"),_=Z("xhrErrorBeforeScheduled");function q(y){let w=y.XMLHttpRequest;if(!w)return;let M=w.prototype;function F(S){return S[n]}let $=M[wt],Q=M[St];if(!$){let S=y.XMLHttpRequestEventTarget;if(S){let k=S.prototype;$=k[wt],Q=k[St]}}let ee="readystatechange",Y="scheduled";function m(S){let k=S.data,C=k.target;C[f]=!1,C[_]=!1;let te=C[c];$||($=C[wt],Q=C[St]),te&&Q.call(C,ee,te);let z=C[c]=()=>{if(C.readyState===C.DONE)if(!k.aborted&&C[f]&&S.state===Y){let T=C[t.__symbol__("loadfalse")];if(C.status!==0&&T&&T.length>0){let i=S.invoke;S.invoke=function(){let s=C[t.__symbol__("loadfalse")];for(let b=0;b<s.length;b++)s[b]===S&&s.splice(b,1);!k.aborted&&S.state===Y&&i.call(S)},T.push(S)}else S.invoke()}else!k.aborted&&C[f]===!1&&(C[_]=!0)};return $.call(C,ee,z),C[n]||(C[n]=S),V.apply(C,k.args),C[f]=!0,S}function p(){}function A(S){let k=S.data;return k.aborted=!0,D.apply(k.target,k.args)}let G=qe(M,"open",()=>function(S,k){return S[o]=k[2]==!1,S[l]=k[1],G.apply(S,k)}),K="XMLHttpRequest.send",B=Z("fetchTaskAborting"),E=Z("fetchTaskScheduling"),V=qe(M,"send",()=>function(S,k){if(t.current[E]===!0||S[o])return V.apply(S,k);{let C={target:S,url:S[l],isPeriodic:!1,args:k,aborted:!1},te=Mt(K,p,C,m,A);S&&S[_]===!0&&!C.aborted&&te.state===Y&&te.invoke()}}),D=qe(M,"abort",()=>function(S,k){let C=F(S);if(C&&typeof C.type=="string"){if(C.cancelFn==null||C.data&&C.data.aborted)return;C.zone.cancelTask(C)}else if(t.current[B]===!0)return D.apply(S,k)})}}),e.__load_patch("geolocation",r=>{r.navigator&&r.navigator.geolocation&&Jh(r.navigator.geolocation,["getCurrentPosition","watchPosition"])}),e.__load_patch("PromiseRejectionEvent",(r,t)=>{function n(o){return function(c){oa(r,o).forEach(l=>{let _=r.PromiseRejectionEvent;if(_){let q=new _(o,{promise:c.promise,reason:c.rejection});l.invoke(q)}})}}r.PromiseRejectionEvent&&(t[Z("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),t[Z("rejectionHandledHandler")]=n("rejectionhandled"))}),e.__load_patch("queueMicrotask",(r,t,n)=>{iv(r,n)})}function fv(e){e.__load_patch("ZoneAwarePromise",(r,t,n)=>{let o=Object.getOwnPropertyDescriptor,c=Object.defineProperty;function f(d){if(d&&d.toString===Object.prototype.toString){let h=d.constructor&&d.constructor.name;return(h||"")+": "+JSON.stringify(d)}return d?d.toString():Object.prototype.toString.call(d)}let l=n.symbol,_=[],q=r[l("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,y=l("Promise"),w=l("then"),M="__creationTrace__";n.onUnhandledError=d=>{if(n.showUncaughtError()){let h=d&&d.rejection;h?console.error("Unhandled Promise rejection:",h instanceof Error?h.message:h,"; Zone:",d.zone.name,"; Task:",d.task&&d.task.source,"; Value:",h,h instanceof Error?h.stack:void 0):console.error(d)}},n.microtaskDrainDone=()=>{for(;_.length;){let d=_.shift();try{d.zone.runGuarded(()=>{throw d.throwOriginal?d.rejection:d})}catch(h){$(h)}}};let F=l("unhandledPromiseRejectionHandler");function $(d){n.onUnhandledError(d);try{let h=t[F];typeof h=="function"&&h.call(this,d)}catch{}}function Q(d){return d&&typeof d.then=="function"}function ee(d){return d}function Y(d){return L.reject(d)}let m=l("state"),p=l("value"),A=l("finally"),G=l("parentPromiseValue"),K=l("parentPromiseState"),B="Promise.then",E=null,V=!0,D=!1,S=0;function k(d,h){return a=>{try{I(d,h,a)}catch(v){I(d,!1,v)}}}let C=function(){let d=!1;return function(a){return function(){d||(d=!0,a.apply(null,arguments))}}},te="Promise resolved with itself",z=l("currentTaskTrace");function I(d,h,a){let v=C();if(d===a)throw new TypeError(te);if(d[m]===E){let O=null;try{(typeof a=="object"||typeof a=="function")&&(O=a&&a.then)}catch(R){return v(()=>{I(d,!1,R)})(),d}if(h!==D&&a instanceof L&&a.hasOwnProperty(m)&&a.hasOwnProperty(p)&&a[m]!==E)i(a),I(d,a[m],a[p]);else if(h!==D&&typeof O=="function")try{O.call(a,v(k(d,h)),v(k(d,!1)))}catch(R){v(()=>{I(d,!1,R)})()}else{d[m]=h;let R=d[p];if(d[p]=a,d[A]===A&&h===V&&(d[m]=d[K],d[p]=d[G]),h===D&&a instanceof Error){let g=t.currentTask&&t.currentTask.data&&t.currentTask.data[M];g&&c(a,z,{configurable:!0,enumerable:!1,writable:!0,value:g})}for(let g=0;g<R.length;)s(d,R[g++],R[g++],R[g++],R[g++]);if(R.length==0&&h==D){d[m]=S;let g=a;try{throw new Error("Uncaught (in promise): "+f(a)+(a&&a.stack?`
|
|
2
|
+
`+a.stack:""))}catch(j){g=j}q&&(g.throwOriginal=!0),g.rejection=a,g.promise=d,g.zone=t.current,g.task=t.currentTask,_.push(g),n.scheduleMicroTask()}}}return d}let T=l("rejectionHandledHandler");function i(d){if(d[m]===S){try{let h=t[T];h&&typeof h=="function"&&h.call(this,{rejection:d[p],promise:d})}catch{}d[m]=D;for(let h=0;h<_.length;h++)d===_[h].promise&&_.splice(h,1)}}function s(d,h,a,v,O){i(d);let R=d[m],g=R?typeof v=="function"?v:ee:typeof O=="function"?O:Y;h.scheduleMicroTask(B,()=>{try{let j=d[p],N=!!a&&A===a[A];N&&(a[G]=j,a[K]=R);let x=h.run(g,void 0,N&&g!==Y&&g!==ee?[]:[j]);I(a,!0,x)}catch(j){I(a,!1,j)}},a)}let b="function ZoneAwarePromise() { [native code] }",P=function(){},W=r.AggregateError;class L{static toString(){return b}static resolve(h){return h instanceof L?h:I(new this(null),V,h)}static reject(h){return I(new this(null),D,h)}static withResolvers(){let h={};return h.promise=new L((a,v)=>{h.resolve=a,h.reject=v}),h}static any(h){if(!h||typeof h[Symbol.iterator]!="function")return Promise.reject(new W([],"All promises were rejected"));let a=[],v=0;try{for(let g of h)v++,a.push(L.resolve(g))}catch{return Promise.reject(new W([],"All promises were rejected"))}if(v===0)return Promise.reject(new W([],"All promises were rejected"));let O=!1,R=[];return new L((g,j)=>{for(let N=0;N<a.length;N++)a[N].then(x=>{O||(O=!0,g(x))},x=>{R.push(x),v--,v===0&&(O=!0,j(new W(R,"All promises were rejected")))})})}static race(h){let a,v,O=new this((j,N)=>{a=j,v=N});function R(j){a(j)}function g(j){v(j)}for(let j of h)Q(j)||(j=this.resolve(j)),j.then(R,g);return O}static all(h){return L.allWithCallback(h)}static allSettled(h){return(this&&this.prototype instanceof L?this:L).allWithCallback(h,{thenCallback:v=>({status:"fulfilled",value:v}),errorCallback:v=>({status:"rejected",reason:v})})}static allWithCallback(h,a){let v,O,R=new this((x,H)=>{v=x,O=H}),g=2,j=0,N=[];for(let x of h){Q(x)||(x=this.resolve(x));let H=j;try{x.then(U=>{N[H]=a?a.thenCallback(U):U,g--,g===0&&v(N)},U=>{a?(N[H]=a.errorCallback(U),g--,g===0&&v(N)):O(U)})}catch(U){O(U)}g++,j++}return g-=2,g===0&&v(N),R}constructor(h){let a=this;if(!(a instanceof L))throw new Error("Must be an instanceof Promise.");a[m]=E,a[p]=[];try{let v=C();h&&h(v(k(a,V)),v(k(a,D)))}catch(v){I(a,!1,v)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return L}then(h,a){let v=this.constructor?.[Symbol.species];(!v||typeof v!="function")&&(v=this.constructor||L);let O=new v(P),R=t.current;return this[m]==E?this[p].push(R,O,h,a):s(this,R,O,h,a),O}catch(h){return this.then(null,h)}finally(h){let a=this.constructor?.[Symbol.species];(!a||typeof a!="function")&&(a=L);let v=new a(P);v[A]=A;let O=t.current;return this[m]==E?this[p].push(O,v,h,h):s(this,O,v,h,h),v}}L.resolve=L.resolve,L.reject=L.reject,L.race=L.race,L.all=L.all;let Pe=r[y]=r.Promise;r.Promise=L;let ge=l("thenPatched");function be(d){let h=d.prototype,a=o(h,"then");if(a&&(a.writable===!1||!a.configurable))return;let v=h.then;h[w]=v,d.prototype.then=function(O,R){return new L((j,N)=>{v.call(this,j,N)}).then(O,R)},d[ge]=!0}n.patchThen=be;function fe(d){return function(h,a){let v=d.apply(h,a);if(v instanceof L)return v;let O=v.constructor;return O[ge]||be(O),v}}return Pe&&(be(Pe),qe(r,"fetch",d=>fe(d))),Promise[t.__symbol__("uncaughtPromiseErrors")]=_,L})}function hv(e){e.__load_patch("toString",r=>{let t=Function.prototype.toString,n=Z("OriginalDelegate"),o=Z("Promise"),c=Z("Error"),f=function(){if(typeof this=="function"){let y=this[n];if(y)return typeof y=="function"?t.call(y):Object.prototype.toString.call(y);if(this===Promise){let w=r[o];if(w)return t.call(w)}if(this===Error){let w=r[c];if(w)return t.call(w)}}return t.call(this)};f[n]=t,Function.prototype.toString=f;let l=Object.prototype.toString,_="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?_:l.call(this)}})}function vv(e,r,t,n,o){let c=Zone.__symbol__(n);if(r[c])return;let f=r[c]=r[n];r[n]=function(l,_,q){return _&&_.prototype&&o.forEach(function(y){let w=`${t}.${n}::`+y,M=_.prototype;try{if(M.hasOwnProperty(y)){let F=e.ObjectGetOwnPropertyDescriptor(M,y);F&&F.value?(F.value=e.wrapWithCurrentZone(F.value,w),e._redefineProperty(_.prototype,y,F)):M[y]&&(M[y]=e.wrapWithCurrentZone(M[y],w))}else M[y]&&(M[y]=e.wrapWithCurrentZone(M[y],w))}catch{}}),f.call(r,l,_,q)},e.attachOriginToPatched(r[n],f)}function dv(e){e.__load_patch("util",(r,t,n)=>{let o=Ct(r);n.patchOnProperties=Qs,n.patchMethod=qe,n.bindArguments=Lt,n.patchMacroTask=ev;let c=t.__symbol__("BLACK_LISTED_EVENTS"),f=t.__symbol__("UNPATCHED_EVENTS");r[f]&&(r[c]=r[f]),r[c]&&(t[c]=t[f]=r[c]),n.patchEventPrototype=ov,n.patchEventTarget=nv,n.isIEOrEdge=rv,n.ObjectDefineProperty=Dt,n.ObjectGetOwnPropertyDescriptor=ze,n.ObjectCreate=Yh,n.ArraySlice=Kh,n.patchClass=Ve,n.wrapWithCurrentZone=xt,n.filterProperties=ia,n.attachOriginToPatched=ke,n._redefineProperty=Object.defineProperty,n.patchCallbacks=vv,n.getGlobalObjects=()=>({globalSources:ea,zoneSymbolEventNames:le,eventNames:o,isBrowser:At,isMix:Js,isNode:Or,TRUE_STR:me,FALSE_STR:Oe,ZONE_SYMBOL_PREFIX:We,ADD_EVENT_LISTENER_STR:jt,REMOVE_EVENT_LISTENER_STR:Nt})})}function pv(e){fv(e),hv(e),dv(e)}var sa=Wh();pv(sa);lv(sa);window.process={env:{DEBUG:void 0}};
|
package/public/chunk-36RQFRQN.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{b as ui,c as pi,f as hi,g as fi,h as gi,k as _i,m as Je}from"./chunk-FHQZULYJ.js";import{A as ci,d as Ut,w as ai,x as li}from"./chunk-FGMEEOZH.js";import{G as oi,O as di,P as mi,m as qt,q as ri,r as ni,w as si}from"./chunk-PJZLX3XW.js";import{a as $t,i as Me,m as ei,o as ti,p as ii,r as Ye,s as Xe,t as Te}from"./chunk-Y5TQMH7M.js";import{$d as We,Aa as kt,Ab as Ve,Ae as Zt,Ce as ke,Da as he,E as vt,Ea as Mt,Ec as Nt,Fb as te,Fd as zt,Ga as Tt,Gb as O,Gd as Ht,Hb as R,Hd as Vt,Ib as It,Id as Ge,J as ue,Ja as St,K as Fe,Lc as ve,Ld as Kt,Ma as Y,Nc as H,Oc as Be,Od as Bt,Pb as ie,Q as bt,Rb as z,Tb as X,Ub as Et,Ud as Gt,Vb as Ke,Vd as Wt,Wb as At,Wd as jt,Xa as P,Xb as ye,Xd as Q,Yb as L,Yd as Yt,Za as Ue,Zb as F,Zc as be,_d as Xt,a as $,ab as Ot,ae as Jt,ba as Ne,bc as Pt,ca as qe,d as cr,da as k,dc as J,e as dr,eb as Dt,fc as Rt,gc as re,ge as se,hc as ne,ib as fe,ie as je,jb as ge,k as B,kb as ze,la as wt,ma as pe,oa as G,ob as xt,qa as f,sc as Lt,tc as Ft,ud as we,va as q,vd as Ce,wa as U,xa as Ct,xb as _e,ye as Qt,z as Le,za as ee,zb as He}from"./chunk-MOEZSWFX.js";var yi=cr((Qe,Ze)=>{(function(c,S){typeof Qe=="object"&&typeof Ze<"u"?Ze.exports=S():typeof define=="function"&&define.amd?define(S):(c=typeof globalThis<"u"?globalThis:c||self,c.Qty=S())})(Qe,function(){"use strict";function c(t){return typeof t=="string"||t instanceof String}var S=Number.isFinite||window.isFinite;function e(t){return S(t)}function i(t){return t}function n(t){var r={};return t.filter(function(s){return r.hasOwnProperty(s)?!1:r[s]=!0})}function a(t,r){if(r.length!==t.length)return!1;for(var s=0;s<t.length;s++)if(r[s].compareArray&&!r[s].compareArray(t[s])||r[s]!==t[s])return!1;return!0}function d(t,r){Object.keys(r).forEach(function(s){t[s]=r[s]})}function g(){for(var t=1,r=0,s=0;s<arguments.length;s++){var o=arguments[s];r=r+it(o),t*=o}return r!==0?oe(t,r):t}function y(t,r){if(r===0)throw new Error("Divide by zero");var s=Math.pow(10,it(r)),o=s/(s*r);return g(t,o)}function oe(t,r){return Math.round(t*Math.pow(10,r))/Math.pow(10,r)}function it(t){if(!isFinite(t))return 0;for(var r=0;t%1!==0;)t*=10,r++;return r}function h(){var t;if(!this)return t=Object.create(h.prototype),h.apply(t,arguments),t;t=Error.apply(this,arguments),this.name="QtyError",this.message=t.message,this.stack=t.stack}h.prototype=Object.create(Error.prototype,{constructor:{value:h}});function Z(t,r){throw new h("Incompatible units: "+t+" and "+r)}var D={"<googol>":[["googol"],1e100,"prefix"],"<kibi>":[["Ki","Kibi","kibi"],Math.pow(2,10),"prefix"],"<mebi>":[["Mi","Mebi","mebi"],Math.pow(2,20),"prefix"],"<gibi>":[["Gi","Gibi","gibi"],Math.pow(2,30),"prefix"],"<tebi>":[["Ti","Tebi","tebi"],Math.pow(2,40),"prefix"],"<pebi>":[["Pi","Pebi","pebi"],Math.pow(2,50),"prefix"],"<exi>":[["Ei","Exi","exi"],Math.pow(2,60),"prefix"],"<zebi>":[["Zi","Zebi","zebi"],Math.pow(2,70),"prefix"],"<yebi>":[["Yi","Yebi","yebi"],Math.pow(2,80),"prefix"],"<yotta>":[["Y","Yotta","yotta"],1e24,"prefix"],"<zetta>":[["Z","Zetta","zetta"],1e21,"prefix"],"<exa>":[["E","Exa","exa"],1e18,"prefix"],"<peta>":[["P","Peta","peta"],1e15,"prefix"],"<tera>":[["T","Tera","tera"],1e12,"prefix"],"<giga>":[["G","Giga","giga"],1e9,"prefix"],"<mega>":[["M","Mega","mega"],1e6,"prefix"],"<kilo>":[["k","kilo"],1e3,"prefix"],"<hecto>":[["h","Hecto","hecto"],100,"prefix"],"<deca>":[["da","Deca","deca","deka"],10,"prefix"],"<deci>":[["d","Deci","deci"],.1,"prefix"],"<centi>":[["c","Centi","centi"],.01,"prefix"],"<milli>":[["m","Milli","milli"],.001,"prefix"],"<micro>":[["u","\u03BC","\xB5","Micro","mc","micro"],1e-6,"prefix"],"<nano>":[["n","Nano","nano"],1e-9,"prefix"],"<pico>":[["p","Pico","pico"],1e-12,"prefix"],"<femto>":[["f","Femto","femto"],1e-15,"prefix"],"<atto>":[["a","Atto","atto"],1e-18,"prefix"],"<zepto>":[["z","Zepto","zepto"],1e-21,"prefix"],"<yocto>":[["y","Yocto","yocto"],1e-24,"prefix"],"<1>":[["1","<1>"],1,""],"<meter>":[["m","meter","meters","metre","metres"],1,"length",["<meter>"]],"<inch>":[["in","inch","inches",'"'],.0254,"length",["<meter>"]],"<foot>":[["ft","foot","feet","'"],.3048,"length",["<meter>"]],"<yard>":[["yd","yard","yards"],.9144,"length",["<meter>"]],"<mile>":[["mi","mile","miles"],1609.344,"length",["<meter>"]],"<naut-mile>":[["nmi","naut-mile"],1852,"length",["<meter>"]],"<league>":[["league","leagues"],4828,"length",["<meter>"]],"<furlong>":[["furlong","furlongs"],201.2,"length",["<meter>"]],"<rod>":[["rd","rod","rods"],5.029,"length",["<meter>"]],"<mil>":[["mil","mils"],254e-7,"length",["<meter>"]],"<angstrom>":[["ang","angstrom","angstroms"],1e-10,"length",["<meter>"]],"<fathom>":[["fathom","fathoms"],1.829,"length",["<meter>"]],"<pica>":[["pica","picas"],.00423333333,"length",["<meter>"]],"<point>":[["pt","point","points"],.000352777778,"length",["<meter>"]],"<redshift>":[["z","red-shift","redshift"],1302773e20,"length",["<meter>"]],"<AU>":[["AU","astronomical-unit"],1495979e5,"length",["<meter>"]],"<light-second>":[["ls","light-second"],299792500,"length",["<meter>"]],"<light-minute>":[["lmin","light-minute"],1798755e4,"length",["<meter>"]],"<light-year>":[["ly","light-year"],9460528e9,"length",["<meter>"]],"<parsec>":[["pc","parsec","parsecs"],3085678e10,"length",["<meter>"]],"<datamile>":[["DM","datamile"],1828.8,"length",["<meter>"]],"<kilogram>":[["kg","kilogram","kilograms"],1,"mass",["<kilogram>"]],"<AMU>":[["u","AMU","amu"],1660538921e-36,"mass",["<kilogram>"]],"<dalton>":[["Da","Dalton","Daltons","dalton","daltons"],1660538921e-36,"mass",["<kilogram>"]],"<slug>":[["slug","slugs"],14.5939029,"mass",["<kilogram>"]],"<short-ton>":[["tn","ton","short-ton"],907.18474,"mass",["<kilogram>"]],"<metric-ton>":[["t","tonne","metric-ton"],1e3,"mass",["<kilogram>"]],"<carat>":[["ct","carat","carats"],2e-4,"mass",["<kilogram>"]],"<pound>":[["lbs","lb","pound","pounds","#"],.45359237,"mass",["<kilogram>"]],"<ounce>":[["oz","ounce","ounces"],.0283495231,"mass",["<kilogram>"]],"<gram>":[["g","gram","grams","gramme","grammes"],.001,"mass",["<kilogram>"]],"<grain>":[["grain","grains","gr"],6479891e-11,"mass",["<kilogram>"]],"<dram>":[["dram","drams","dr"],.0017718452,"mass",["<kilogram>"]],"<stone>":[["stone","stones","st"],6.35029318,"mass",["<kilogram>"]],"<hectare>":[["hectare"],1e4,"area",["<meter>","<meter>"]],"<acre>":[["acre","acres"],4046.85642,"area",["<meter>","<meter>"]],"<sqft>":[["sqft"],1,"area",["<foot>","<foot>"]],"<liter>":[["l","L","liter","liters","litre","litres"],.001,"volume",["<meter>","<meter>","<meter>"]],"<gallon>":[["gal","gallon","gallons"],.0037854118,"volume",["<meter>","<meter>","<meter>"]],"<gallon-imp>":[["galimp","gallon-imp","gallons-imp"],.00454609,"volume",["<meter>","<meter>","<meter>"]],"<quart>":[["qt","quart","quarts"],.00094635295,"volume",["<meter>","<meter>","<meter>"]],"<pint>":[["pt","pint","pints"],.000473176475,"volume",["<meter>","<meter>","<meter>"]],"<pint-imp>":[["ptimp","pint-imp","pints-imp"],.00056826125,"volume",["<meter>","<meter>","<meter>"]],"<cup>":[["cu","cup","cups"],.000236588238,"volume",["<meter>","<meter>","<meter>"]],"<fluid-ounce>":[["floz","fluid-ounce","fluid-ounces"],295735297e-13,"volume",["<meter>","<meter>","<meter>"]],"<fluid-ounce-imp>":[["flozimp","floz-imp","fluid-ounce-imp","fluid-ounces-imp"],284130625e-13,"volume",["<meter>","<meter>","<meter>"]],"<tablespoon>":[["tb","tbsp","tbs","tablespoon","tablespoons"],147867648e-13,"volume",["<meter>","<meter>","<meter>"]],"<teaspoon>":[["tsp","teaspoon","teaspoons"],492892161e-14,"volume",["<meter>","<meter>","<meter>"]],"<bushel>":[["bu","bsh","bushel","bushels"],.035239072,"volume",["<meter>","<meter>","<meter>"]],"<oilbarrel>":[["bbl","oilbarrel","oilbarrels","oil-barrel","oil-barrels"],.158987294928,"volume",["<meter>","<meter>","<meter>"]],"<beerbarrel>":[["bl","bl-us","beerbarrel","beerbarrels","beer-barrel","beer-barrels"],.1173477658,"volume",["<meter>","<meter>","<meter>"]],"<beerbarrel-imp>":[["blimp","bl-imp","beerbarrel-imp","beerbarrels-imp","beer-barrel-imp","beer-barrels-imp"],.16365924,"volume",["<meter>","<meter>","<meter>"]],"<kph>":[["kph"],.277777778,"speed",["<meter>"],["<second>"]],"<mph>":[["mph"],.44704,"speed",["<meter>"],["<second>"]],"<knot>":[["kt","kn","kts","knot","knots"],.514444444,"speed",["<meter>"],["<second>"]],"<fps>":[["fps"],.3048,"speed",["<meter>"],["<second>"]],"<gee>":[["gee"],9.80665,"acceleration",["<meter>"],["<second>","<second>"]],"<Gal>":[["Gal"],.01,"acceleration",["<meter>"],["<second>","<second>"]],"<kelvin>":[["degK","kelvin"],1,"temperature",["<kelvin>"]],"<celsius>":[["degC","celsius","celsius","centigrade"],1,"temperature",["<kelvin>"]],"<fahrenheit>":[["degF","fahrenheit"],5/9,"temperature",["<kelvin>"]],"<rankine>":[["degR","rankine"],5/9,"temperature",["<kelvin>"]],"<temp-K>":[["tempK","temp-K"],1,"temperature",["<temp-K>"]],"<temp-C>":[["tempC","temp-C"],1,"temperature",["<temp-K>"]],"<temp-F>":[["tempF","temp-F"],5/9,"temperature",["<temp-K>"]],"<temp-R>":[["tempR","temp-R"],5/9,"temperature",["<temp-K>"]],"<second>":[["s","sec","secs","second","seconds"],1,"time",["<second>"]],"<minute>":[["min","mins","minute","minutes"],60,"time",["<second>"]],"<hour>":[["h","hr","hrs","hour","hours"],3600,"time",["<second>"]],"<day>":[["d","day","days"],3600*24,"time",["<second>"]],"<week>":[["wk","week","weeks"],7*3600*24,"time",["<second>"]],"<fortnight>":[["fortnight","fortnights"],1209600,"time",["<second>"]],"<year>":[["y","yr","year","years","annum"],31556926,"time",["<second>"]],"<decade>":[["decade","decades"],315569260,"time",["<second>"]],"<century>":[["century","centuries"],3155692600,"time",["<second>"]],"<pascal>":[["Pa","pascal","Pascal"],1,"pressure",["<kilogram>"],["<meter>","<second>","<second>"]],"<bar>":[["bar","bars"],1e5,"pressure",["<kilogram>"],["<meter>","<second>","<second>"]],"<mmHg>":[["mmHg"],133.322368,"pressure",["<kilogram>"],["<meter>","<second>","<second>"]],"<inHg>":[["inHg"],3386.3881472,"pressure",["<kilogram>"],["<meter>","<second>","<second>"]],"<torr>":[["torr"],133.322368,"pressure",["<kilogram>"],["<meter>","<second>","<second>"]],"<atm>":[["atm","ATM","atmosphere","atmospheres"],101325,"pressure",["<kilogram>"],["<meter>","<second>","<second>"]],"<psi>":[["psi"],6894.76,"pressure",["<kilogram>"],["<meter>","<second>","<second>"]],"<cmh2o>":[["cmH2O","cmh2o"],98.0638,"pressure",["<kilogram>"],["<meter>","<second>","<second>"]],"<inh2o>":[["inH2O","inh2o"],249.082052,"pressure",["<kilogram>"],["<meter>","<second>","<second>"]],"<poise>":[["P","poise"],.1,"viscosity",["<kilogram>"],["<meter>","<second>"]],"<stokes>":[["St","stokes"],1e-4,"viscosity",["<meter>","<meter>"],["<second>"]],"<mole>":[["mol","mole"],1,"substance",["<mole>"]],"<molar>":[["M","molar"],1e3,"molar_concentration",["<mole>"],["<meter>","<meter>","<meter>"]],"<wtpercent>":[["wt%","wtpercent"],10,"molar_concentration",["<kilogram>"],["<meter>","<meter>","<meter>"]],"<katal>":[["kat","katal","Katal"],1,"activity",["<mole>"],["<second>"]],"<unit>":[["U","enzUnit","unit"],16667e-19,"activity",["<mole>"],["<second>"]],"<farad>":[["F","farad","Farad"],1,"capacitance",["<second>","<second>","<second>","<second>","<ampere>","<ampere>"],["<meter>","<meter>","<kilogram>"]],"<coulomb>":[["C","coulomb","Coulomb"],1,"charge",["<ampere>","<second>"]],"<Ah>":[["Ah"],3600,"charge",["<ampere>","<second>"]],"<ampere>":[["A","Ampere","ampere","amp","amps"],1,"current",["<ampere>"]],"<siemens>":[["S","Siemens","siemens"],1,"conductance",["<second>","<second>","<second>","<ampere>","<ampere>"],["<kilogram>","<meter>","<meter>"]],"<henry>":[["H","Henry","henry"],1,"inductance",["<meter>","<meter>","<kilogram>"],["<second>","<second>","<ampere>","<ampere>"]],"<volt>":[["V","Volt","volt","volts"],1,"potential",["<meter>","<meter>","<kilogram>"],["<second>","<second>","<second>","<ampere>"]],"<ohm>":[["Ohm","ohm","\u03A9","\u2126"],1,"resistance",["<meter>","<meter>","<kilogram>"],["<second>","<second>","<second>","<ampere>","<ampere>"]],"<weber>":[["Wb","weber","webers"],1,"magnetism",["<meter>","<meter>","<kilogram>"],["<second>","<second>","<ampere>"]],"<tesla>":[["T","tesla","teslas"],1,"magnetism",["<kilogram>"],["<second>","<second>","<ampere>"]],"<gauss>":[["G","gauss"],1e-4,"magnetism",["<kilogram>"],["<second>","<second>","<ampere>"]],"<maxwell>":[["Mx","maxwell","maxwells"],1e-8,"magnetism",["<meter>","<meter>","<kilogram>"],["<second>","<second>","<ampere>"]],"<oersted>":[["Oe","oersted","oersteds"],250/Math.PI,"magnetism",["<ampere>"],["<meter>"]],"<joule>":[["J","joule","Joule","joules","Joules"],1,"energy",["<meter>","<meter>","<kilogram>"],["<second>","<second>"]],"<erg>":[["erg","ergs"],1e-7,"energy",["<meter>","<meter>","<kilogram>"],["<second>","<second>"]],"<btu>":[["BTU","btu","BTUs"],1055.056,"energy",["<meter>","<meter>","<kilogram>"],["<second>","<second>"]],"<calorie>":[["cal","calorie","calories"],4.184,"energy",["<meter>","<meter>","<kilogram>"],["<second>","<second>"]],"<Calorie>":[["Cal","Calorie","Calories"],4184,"energy",["<meter>","<meter>","<kilogram>"],["<second>","<second>"]],"<therm-US>":[["th","therm","therms","Therm","therm-US"],105480400,"energy",["<meter>","<meter>","<kilogram>"],["<second>","<second>"]],"<Wh>":[["Wh"],3600,"energy",["<meter>","<meter>","<kilogram>"],["<second>","<second>"]],"<electronvolt>":[["eV","electronvolt","electronvolts"],1602176634e-28,"energy",["<meter>","<meter>","<kilogram>"],["<second>","<second>"]],"<newton>":[["N","Newton","newton"],1,"force",["<kilogram>","<meter>"],["<second>","<second>"]],"<dyne>":[["dyn","dyne"],1e-5,"force",["<kilogram>","<meter>"],["<second>","<second>"]],"<pound-force>":[["lbf","pound-force"],4.448222,"force",["<kilogram>","<meter>"],["<second>","<second>"]],"<hertz>":[["Hz","hertz","Hertz"],1,"frequency",["<1>"],["<second>"]],"<radian>":[["rad","radian","radians"],1,"angle",["<radian>"]],"<degree>":[["deg","degree","degrees"],Math.PI/180,"angle",["<radian>"]],"<arcminute>":[["arcmin","arcminute","arcminutes"],Math.PI/10800,"angle",["<radian>"]],"<arcsecond>":[["arcsec","arcsecond","arcseconds"],Math.PI/648e3,"angle",["<radian>"]],"<gradian>":[["gon","grad","gradian","grads"],Math.PI/200,"angle",["<radian>"]],"<steradian>":[["sr","steradian","steradians"],1,"solid_angle",["<steradian>"]],"<rotation>":[["rotation"],2*Math.PI,"angle",["<radian>"]],"<rpm>":[["rpm"],2*Math.PI/60,"angular_velocity",["<radian>"],["<second>"]],"<byte>":[["B","byte","bytes"],1,"information",["<byte>"]],"<bit>":[["b","bit","bits"],.125,"information",["<byte>"]],"<Bps>":[["Bps"],1,"information_rate",["<byte>"],["<second>"]],"<bps>":[["bps"],.125,"information_rate",["<byte>"],["<second>"]],"<dollar>":[["USD","dollar"],1,"currency",["<dollar>"]],"<cents>":[["cents"],.01,"currency",["<dollar>"]],"<candela>":[["cd","candela"],1,"luminosity",["<candela>"]],"<lumen>":[["lm","lumen"],1,"luminous_power",["<candela>","<steradian>"]],"<lux>":[["lux"],1,"illuminance",["<candela>","<steradian>"],["<meter>","<meter>"]],"<watt>":[["W","watt","watts"],1,"power",["<kilogram>","<meter>","<meter>"],["<second>","<second>","<second>"]],"<volt-ampere>":[["VA","volt-ampere"],1,"power",["<kilogram>","<meter>","<meter>"],["<second>","<second>","<second>"]],"<volt-ampere-reactive>":[["var","Var","VAr","VAR","volt-ampere-reactive"],1,"power",["<kilogram>","<meter>","<meter>"],["<second>","<second>","<second>"]],"<horsepower>":[["hp","horsepower"],745.699872,"power",["<kilogram>","<meter>","<meter>"],["<second>","<second>","<second>"]],"<gray>":[["Gy","gray","grays"],1,"radiation",["<meter>","<meter>"],["<second>","<second>"]],"<roentgen>":[["R","roentgen"],.00933,"radiation",["<meter>","<meter>"],["<second>","<second>"]],"<sievert>":[["Sv","sievert","sieverts"],1,"radiation",["<meter>","<meter>"],["<second>","<second>"]],"<becquerel>":[["Bq","becquerel","becquerels"],1,"radiation",["<1>"],["<second>"]],"<curie>":[["Ci","curie","curies"],37e9,"radiation",["<1>"],["<second>"]],"<cpm>":[["cpm"],1/60,"rate",["<count>"],["<second>"]],"<dpm>":[["dpm"],1/60,"rate",["<count>"],["<second>"]],"<bpm>":[["bpm"],1/60,"rate",["<count>"],["<second>"]],"<dot>":[["dot","dots"],1,"resolution",["<each>"]],"<pixel>":[["pixel","px"],1,"resolution",["<each>"]],"<ppi>":[["ppi"],1,"resolution",["<pixel>"],["<inch>"]],"<dpi>":[["dpi"],1,"typography",["<dot>"],["<inch>"]],"<cell>":[["cells","cell"],1,"counting",["<each>"]],"<each>":[["each"],1,"counting",["<each>"]],"<count>":[["count"],1,"counting",["<each>"]],"<base-pair>":[["bp","base-pair"],1,"counting",["<each>"]],"<nucleotide>":[["nt","nucleotide"],1,"counting",["<each>"]],"<molecule>":[["molecule","molecules"],1,"counting",["<1>"]],"<dozen>":[["doz","dz","dozen"],12,"prefix_only",["<each>"]],"<percent>":[["%","percent"],.01,"prefix_only",["<1>"]],"<ppm>":[["ppm"],1e-6,"prefix_only",["<1>"]],"<ppb>":[["ppb"],1e-9,"prefix_only",["<1>"]],"<ppt>":[["ppt"],1e-12,"prefix_only",["<1>"]],"<ppq>":[["ppq"],1e-15,"prefix_only",["<1>"]],"<gross>":[["gr","gross"],144,"prefix_only",["<dozen>","<dozen>"]],"<decibel>":[["dB","decibel","decibels"],1,"logarithmic",["<decibel>"]]},xi=["<meter>","<kilogram>","<second>","<mole>","<ampere>","<radian>","<kelvin>","<temp-K>","<byte>","<dollar>","<candela>","<each>","<steradian>","<decibel>"],ae="<1>",w=[ae];function Ii(t,r){var s=r[1],o=r[3]||[],l=r[4]||[];if(!e(s))throw new h(t+": Invalid unit definition. 'scalar' must be a number");o.forEach(function(m){if(D[m]===void 0)throw new h(t+": Invalid unit definition. Unit "+m+" in 'numerator' is not recognized")}),l.forEach(function(m){if(D[m]===void 0)throw new h(t+": Invalid unit definition. Unit "+m+" in 'denominator' is not recognized")})}var A={},le={},M={},W={},ce={};for(var N in D)if(D.hasOwnProperty(N)){var x=D[N];if(x[2]==="prefix"){A[N]=x[1];for(var Se=0;Se<x[0].length;Se++)le[x[0][Se]]=N}else{Ii(N,x),M[N]={scalar:x[1],numerator:x[3],denominator:x[4]};for(var Oe=0;Oe<x[0].length;Oe++)W[x[0][Oe]]=N}ce[N]=x[0][0]}function Ei(t){var r,s=[],o=Object.keys(D);if(typeof t>"u")for(r=0;r<o.length;r++)["","prefix"].indexOf(D[o[r]][2])===-1&&s.push(o[r].substr(1,o[r].length-2));else{if(this.getKinds().indexOf(t)===-1)throw new h("Kind not recognized");for(r=0;r<o.length;r++)D[o[r]][2]===t&&s.push(o[r].substr(1,o[r].length-2))}return s.sort(function(l,m){return l.toLowerCase()<m.toLowerCase()?-1:l.toLowerCase()>m.toLowerCase()?1:0})}function Ai(t){if(!W[t])throw new h("Unit not recognized");return D[W[t]][0]}var De=["length","time","temperature","mass","current","substance","luminosity","currency","information","angle"];function Pi(){if(this.signature)return this.signature;for(var t=rt.call(this),r=0;r<t.length;r++)t[r]*=Math.pow(20,r);return t.reduce(function(s,o){return s+o},0)}function rt(){if(!this.isBase())return rt.call(this.toBase());for(var t=new Array(De.length),r=0;r<t.length;r++)t[r]=0;for(var s,o,l=0;l<this.numerator.length;l++)(s=D[this.numerator[l]])&&(o=De.indexOf(s[2]),o>=0&&(t[o]=t[o]+1));for(var m=0;m<this.denominator.length;m++)(s=D[this.denominator[m]])&&(o=De.indexOf(s[2]),o>=0&&(t[o]=t[o]-1));return t}var nt="[+-]",xe="\\d+",Ri=nt+"?"+xe,st="\\."+xe,Li="(?:"+xe+"(?:"+st+")?)|(?:"+st+")",Fi="[Ee]"+Ri,Ni="(?:"+Li+")(?:"+Fi+")?",qi=nt+"?\\s*"+Ni,Ui="("+qi+")?\\s*([^/]*)(?:/(.+))?",zi=new RegExp("^"+Ui+"$"),ot="\\^|\\*{2}",at="[01234]",Hi=new RegExp("([^ \\*\\d]+?)(?:"+ot+")?(-?"+at+"(?![a-zA-Z]))"),Vi=new RegExp("([^ \\*\\d]+?)(?:"+ot+")?("+at+"(?![a-zA-Z]))");function lt(t){c(t)||(t=t.toString()),t=t.trim();var r=zi.exec(t);if(!r)throw new h(t+": Quantity not recognized");var s=r[1];s?(s=s.replace(/\s/g,""),this.scalar=parseFloat(s)):this.scalar=1;for(var o=r[2],l=r[3],m,v,_;r=Hi.exec(o);){if(m=parseFloat(r[2]),isNaN(m))throw new h("Unit exponent is not a number");if(m===0&&!Ie.test(r[1]))throw new h("Unit not recognized");v=r[1]+" ",_="";for(var b=0;b<Math.abs(m);b++)_+=v;m>=0?o=o.replace(r[0],_):(l=l?l+_:_,o=o.replace(r[0],""))}for(;r=Vi.exec(l);){if(m=parseFloat(r[2]),isNaN(m))throw new h("Unit exponent is not a number");if(m===0&&!Ie.test(r[1]))throw new h("Unit not recognized");v=r[1]+" ",_="";for(var T=0;T<m;T++)_+=v;l=l.replace(r[0],_)}o&&(this.numerator=mt(o.trim())),l&&(this.denominator=mt(l.trim()))}var Ki=Object.keys(le).sort(function(t,r){return r.length-t.length}).join("|"),Bi=Object.keys(W).sort(function(t,r){return r.length-t.length}).join("|"),Gi="\\b|$",ct="("+Ki+")??("+Bi+")(?:"+Gi+")",Ie=new RegExp("^\\s*("+ct+"[\\s\\*]*)+$"),Wi=new RegExp(ct,"g"),dt={};function mt(t){var r=dt[t];if(r)return r;var s,o=[];if(!Ie.test(t))throw new h("Unit not recognized");for(;s=Wi.exec(t);)o.push(s.slice(1));return o=o.map(function(l){return le[l[0]]?[le[l[0]],W[l[1]]]:[W[l[1]]]}),o=o.reduce(function(l,m){return l.concat(m)},[]),o=o.filter(function(l){return l}),dt[t]=o,o}function ji(t){if(!c(t))throw new h("Argument should be a string");try{return this(t)}catch{return null}}function de(t){return t instanceof u}function u(t,r){if(Yi.apply(null,arguments),!de(this))return new u(t,r);if(this.scalar=null,this.baseScalar=null,this.signature=null,this._conversionCache={},this.numerator=w,this.denominator=w,ut(t)?(this.scalar=t.scalar,this.numerator=t.numerator&&t.numerator.length!==0?t.numerator:w,this.denominator=t.denominator&&t.denominator.length!==0?t.denominator:w):r?(lt.call(this,r),this.scalar=t):lt.call(this,t),this.denominator.join("*").indexOf("temp")>=0)throw new h("Cannot divide with temperatures");if(this.numerator.join("*").indexOf("temp")>=0){if(this.numerator.length>1)throw new h("Cannot multiply by temperatures");if(!a(this.denominator,w))throw new h("Cannot divide with temperatures")}if(this.initValue=t,Xi.call(this),this.isTemperature()&&this.baseScalar<0)throw new h("Temperatures must not be less than absolute zero")}u.prototype={constructor:u};function Yi(t,r){if(r){if(!(e(t)&&c(r)))throw new h("Only number accepted as initialization value when units are explicitly provided")}else if(!(c(t)||e(t)||de(t)||ut(t)))throw new h("Only string, number or quantity accepted as single initialization value")}function ut(t){return t&&typeof t=="object"&&t.hasOwnProperty("scalar")}function Xi(){if(this.baseScalar)return this.baseScalar;if(this.isBase())this.baseScalar=this.scalar,this.signature=Pi.call(this);else{var t=this.toBase();this.baseScalar=t.scalar,this.signature=t.signature}}var Ee={"-312078":"elastance","-312058":"resistance","-312038":"inductance","-152058":"potential","-152040":"magnetism","-152038":"magnetism","-7997":"specific_volume","-79":"snap","-59":"jolt","-39":"acceleration","-38":"radiation","-20":"frequency","-19":"speed","-18":"viscosity","-17":"volumetric_flow","-1":"wavenumber",0:"unitless",1:"length",2:"area",3:"volume",20:"time",400:"temperature",7941:"yank",7942:"power",7959:"pressure",7961:"force",7962:"energy",7979:"viscosity",7981:"momentum",7982:"angular_momentum",7997:"density",7998:"area_density",8e3:"mass",152020:"radiation_exposure",159999:"magnetism",16e4:"current",160020:"charge",312058:"conductance",312078:"capacitance",3199980:"activity",3199997:"molar_concentration",32e5:"substance",63999998:"illuminance",64e6:"luminous_power",128e7:"currency","25599999980":"information_rate","25600000000":"information","511999999980":"angular_velocity","512000000000":"angle"};function Ji(){return n(Object.keys(Ee).map(function(t){return Ee[t]}))}u.prototype.kind=function(){return Ee[this.signature.toString()]},d(u.prototype,{isDegrees:function(){return(this.signature===null||this.signature===400)&&this.numerator.length===1&&a(this.denominator,w)&&(this.numerator[0].match(/<temp-[CFRK]>/)||this.numerator[0].match(/<(kelvin|celsius|rankine|fahrenheit)>/))},isTemperature:function(){return this.isDegrees()&&this.numerator[0].match(/<temp-[CFRK]>/)}});function Qi(t,r){var s=t.units(),o=r.to(s),l=u(Ae(s));return u({scalar:t.scalar-o.scalar,numerator:l.numerator,denominator:l.denominator})}function Zi(t,r){var s=r.to(Ae(t.units()));return u({scalar:t.scalar-s.scalar,numerator:t.numerator,denominator:t.denominator})}function pt(t,r){var s=r.to(Ae(t.units()));return u({scalar:t.scalar+s.scalar,numerator:t.numerator,denominator:t.denominator})}function Ae(t){if(t==="tempK")return"degK";if(t==="tempC")return"degC";if(t==="tempF")return"degF";if(t==="tempR")return"degR";throw new h("Unknown type for temp conversion from: "+t)}function $i(t,r){var s=er(t),o=r.units(),l;if(o==="degK")l=s.scalar;else if(o==="degC")l=s.scalar;else if(o==="degF")l=s.scalar*9/5;else if(o==="degR")l=s.scalar*9/5;else throw new h("Unknown type for degree conversion to: "+o);return u({scalar:l,numerator:r.numerator,denominator:r.denominator})}function er(t){var r=t.units(),s;if(r.match(/(deg)[CFRK]/))s=t.baseScalar;else if(r==="tempK")s=t.scalar;else if(r==="tempC")s=t.scalar;else if(r==="tempF")s=t.scalar*5/9;else if(r==="tempR")s=t.scalar*5/9;else throw new h("Unknown type for temp conversion from: "+r);return u({scalar:s,numerator:["<kelvin>"],denominator:w})}function tr(t,r){var s=r.units(),o;if(s==="tempK")o=t.baseScalar;else if(s==="tempC")o=t.baseScalar-273.15;else if(s==="tempF")o=t.baseScalar*9/5-459.67;else if(s==="tempR")o=t.baseScalar*9/5;else throw new h("Unknown type for temp conversion to: "+s);return u({scalar:o,numerator:r.numerator,denominator:r.denominator})}function ir(t){var r=t.units(),s;if(r.match(/(deg)[CFRK]/))s=t.baseScalar;else if(r==="tempK")s=t.scalar;else if(r==="tempC")s=t.scalar+273.15;else if(r==="tempF")s=(t.scalar+459.67)*5/9;else if(r==="tempR")s=t.scalar*5/9;else throw new h("Unknown type for temp conversion from: "+r);return u({scalar:s,numerator:["<temp-K>"],denominator:w})}d(u.prototype,{to:function(t){var r,s;if(t==null)return this;if(!c(t))return this.to(t.units());if(r=this._conversionCache[t],r)return r;if(s=u(t),s.units()===this.units())return this;if(!this.isCompatible(s))this.isInverse(s)?s=this.inverse().to(t):Z(this.units(),s.units());else if(s.isTemperature())s=tr(this,s);else if(s.isDegrees())s=$i(this,s);else{var o=y(this.baseScalar,s.baseScalar);s=u({scalar:o,numerator:s.numerator,denominator:s.denominator})}return this._conversionCache[t]=s,s},toBase:function(){if(this.isBase())return this;if(this.isTemperature())return ir(this);var t=ht[this.units()];return t||(t=nr(this.numerator,this.denominator),ht[this.units()]=t),t.mul(this.scalar)},toFloat:function(){if(this.isUnitless())return this.scalar;throw new h("Can't convert to Float unless unitless. Use Unit#scalar")},toPrec:function(t){if(c(t)&&(t=u(t)),e(t)&&(t=u(t+" "+this.units())),this.isUnitless()?t.isUnitless()||Z(this.units(),t.units()):t=t.to(this.units()),t.scalar===0)throw new h("Divide by zero");var r=g(Math.round(this.scalar/t.scalar),t.scalar);return u(r+this.units())}});function rr(t,r){var s=u(t),o=u(r);if(s.eq(o))return i;var l;return s.isTemperature()?l=function(m){return s.mul(m).to(o).scalar}:l=function(m){return m*s.baseScalar/o.baseScalar},function(v){var _,b,T;if(Array.isArray(v)){for(b=v.length,T=[],_=0;_<b;_++)T.push(l(v[_]));return T}else return l(v)}}var ht={};function nr(t,r){for(var s=[],o=[],l=1,m,v=0;v<t.length;v++)m=t[v],A[m]?l=g(l,A[m]):M[m]&&(l*=M[m].scalar,M[m].numerator&&s.push(M[m].numerator),M[m].denominator&&o.push(M[m].denominator));for(var _=0;_<r.length;_++)m=r[_],A[m]?l/=A[m]:M[m]&&(l/=M[m].scalar,M[m].numerator&&o.push(M[m].numerator),M[m].denominator&&s.push(M[m].denominator));return s=s.reduce(function(b,T){return b.concat(T)},[]),o=o.reduce(function(b,T){return b.concat(T)},[]),u({scalar:l,numerator:s,denominator:o})}u.parse=ji,u.getUnits=Ei,u.getAliases=Ai,u.mulSafe=g,u.divSafe=y,u.getKinds=Ji,u.swiftConverter=rr,u.Error=h,d(u.prototype,{add:function(t){if(c(t)&&(t=u(t)),this.isCompatible(t)||Z(this.units(),t.units()),this.isTemperature()&&t.isTemperature())throw new h("Cannot add two temperatures");return this.isTemperature()?pt(this,t):t.isTemperature()?pt(t,this):u({scalar:this.scalar+t.to(this).scalar,numerator:this.numerator,denominator:this.denominator})},sub:function(t){if(c(t)&&(t=u(t)),this.isCompatible(t)||Z(this.units(),t.units()),this.isTemperature()&&t.isTemperature())return Qi(this,t);if(this.isTemperature())return Zi(this,t);if(t.isTemperature())throw new h("Cannot subtract a temperature from a differential degree unit");return u({scalar:this.scalar-t.to(this).scalar,numerator:this.numerator,denominator:this.denominator})},mul:function(t){if(e(t))return u({scalar:g(this.scalar,t),numerator:this.numerator,denominator:this.denominator});if(c(t)&&(t=u(t)),(this.isTemperature()||t.isTemperature())&&!(this.isUnitless()||t.isUnitless()))throw new h("Cannot multiply by temperatures");var r=this,s=t;r.isCompatible(s)&&r.signature!==400&&(s=s.to(r));var o=ft(r.numerator,r.denominator,s.numerator,s.denominator);return u({scalar:g(r.scalar,s.scalar,o[2]),numerator:o[0],denominator:o[1]})},div:function(t){if(e(t)){if(t===0)throw new h("Divide by zero");return u({scalar:this.scalar/t,numerator:this.numerator,denominator:this.denominator})}else c(t)&&(t=u(t));if(t.scalar===0)throw new h("Divide by zero");if(t.isTemperature())throw new h("Cannot divide with temperatures");if(this.isTemperature()&&!t.isUnitless())throw new h("Cannot divide with temperatures");var r=this,s=t;r.isCompatible(s)&&r.signature!==400&&(s=s.to(r));var o=ft(r.numerator,r.denominator,s.denominator,s.numerator);return u({scalar:g(r.scalar,o[2])/s.scalar,numerator:o[0],denominator:o[1]})},inverse:function(){if(this.isTemperature())throw new h("Cannot divide with temperatures");if(this.scalar===0)throw new h("Divide by zero");return u({scalar:1/this.scalar,numerator:this.denominator,denominator:this.numerator})}});function ft(t,r,s,o){function l(I){return I!==ae}t=t.filter(l),s=s.filter(l),r=r.filter(l),o=o.filter(l);var m={};function v(I,V){for(var E,me,Re,K=0;K<I.length;K++)if(A[I[K]]?(E=I[K+1],me=I[K],Re=A[me],K++):(E=I[K],me=null,Re=1),E&&E!==ae)if(m[E]){m[E][0]+=V;var lr=m[E][2]?A[m[E][2]]:1;m[E][V===1?3:4]*=y(Re,lr)}else m[E]=[V,E,me,1,1]}v(t,1),v(r,-1),v(s,1),v(o,-1);var _=[],b=[],T=1;for(var yt in m)if(m.hasOwnProperty(yt)){var C=m[yt],j;if(C[0]>0)for(j=0;j<C[0];j++)_.push(C[2]===null?C[1]:[C[2],C[1]]);else if(C[0]<0)for(j=0;j<-C[0];j++)b.push(C[2]===null?C[1]:[C[2],C[1]]);T*=y(C[3],C[4])}return _.length===0&&(_=w),b.length===0&&(b=w),_=_.reduce(function(I,V){return I.concat(V)},[]),b=b.reduce(function(I,V){return I.concat(V)},[]),[_,b,T]}d(u.prototype,{eq:function(t){return this.compareTo(t)===0},lt:function(t){return this.compareTo(t)===-1},lte:function(t){return this.eq(t)||this.lt(t)},gt:function(t){return this.compareTo(t)===1},gte:function(t){return this.eq(t)||this.gt(t)},compareTo:function(t){if(c(t))return this.compareTo(u(t));if(this.isCompatible(t)||Z(this.units(),t.units()),this.baseScalar<t.baseScalar)return-1;if(this.baseScalar===t.baseScalar)return 0;if(this.baseScalar>t.baseScalar)return 1},same:function(t){return this.scalar===t.scalar&&this.units()===t.units()}}),d(u.prototype,{isUnitless:function(){return[this.numerator,this.denominator].every(function(t){return a(t,w)})},isCompatible:function(t){return c(t)?this.isCompatible(u(t)):de(t)&&t.signature!==void 0?this.signature===t.signature:!1},isInverse:function(t){return this.inverse().isCompatible(t)},isBase:function(){return this._isBase!==void 0?this._isBase:this.isDegrees()&&this.numerator[0].match(/<(kelvin|temp-K)>/)?(this._isBase=!0,this._isBase):(this.numerator.concat(this.denominator).forEach(function(t){t!==ae&&xi.indexOf(t)===-1&&(this._isBase=!1)},this),this._isBase===!1?this._isBase:(this._isBase=!0,this._isBase))}});function Pe(){}Pe.prototype.get=function(t){return arguments.length>1&&(t=Array.apply(null,arguments)),t.reduce(function(r,s,o){if(r){var l=r[s];return o===t.length-1?l?l.data:void 0:l}},this)},Pe.prototype.set=function(t,r){return arguments.length>2&&(t=Array.prototype.slice.call(arguments,0,-1),r=arguments[arguments.length-1]),t.reduce(function(s,o,l){var m=s[o];return m===void 0&&(m=s[o]={}),l===t.length-1?(m.data=r,r):m},this)};function sr(t,r){return(t+" "+r).trim()}u.formatter=sr,d(u.prototype,{units:function(){if(this._units!==void 0)return this._units;var t=a(this.numerator,w),r=a(this.denominator,w);if(t&&r)return this._units="",this._units;var s=_t(this.numerator),o=_t(this.denominator);return this._units=s+(r?"":"/"+o),this._units},toString:function(t,r){var s;if(e(t))s=this.units(),r=t;else if(c(t))s=t;else if(de(t))return this.toPrec(t).toString(r);var o=this.to(s),l=r!==void 0?oe(o.scalar,r):o.scalar;return o=(l+" "+o.units()).trim(),o},format:function(t,r){arguments.length===1&&typeof t=="function"&&(r=t,t=void 0),r=r||u.formatter;var s=this.to(t);return r.call(this,s.scalar,s.units())}});var gt=new Pe;function _t(t){var r=gt.get(t);if(r)return r;var s=a(t,w);return s?r="1":r=ar(or(t)).join("*"),gt.set(t,r),r}function or(t){for(var r=[],s,o,l=0;l<t.length;l++)s=t[l],o=t[l+1],A[s]?(r.push(ce[s]+ce[o]),l++):r.push(ce[s]);return r}function ar(t){var r=t.reduce(function(s,o){var l=s[o];return l||s.push(l=s[o]=[o,0]),l[1]++,s},[]);return r.map(function(s){return s[0]+(s[1]>1?s[1]:"")})}return u.version="1.8.0",u})});var p=dr(yi());var Fr=(()=>{class c{AppSettingsService=f(qt);data=f(Ut);_defaultUnitsSub;_conversionList=[{group:"Unitless",units:[{measure:"unitless",description:"As-Is numeric value"},{measure:" ",description:"No unit label - As-Is numeric value"}]},{group:"Speed",units:[{measure:"knots",description:"Knots - Nautical miles per hour"},{measure:"kph",description:"kph - Kilometers per hour"},{measure:"mph",description:"mph - Miles per hour"},{measure:"m/s",description:"m/s - Meters per second (base)"}]},{group:"Flow",units:[{measure:"m3/s",description:"Cubic meters per second (base)"},{measure:"l/min",description:"Liters per minute"},{measure:"l/h",description:"Liters per hour"},{measure:"g/min",description:"Gallons per minute"},{measure:"g/h",description:"Gallons per hour"}]},{group:"Fuel Distance",units:[{measure:"m/m3",description:"Meters per cubic meter (base)"},{measure:"nm/l",description:"Nautical Miles per liter"},{measure:"nm/g",description:"Nautical Miles per gallon"},{measure:"km/l",description:"Kilometers per liter"},{measure:"mpg",description:"Miles per Gallon"}]},{group:"Energy Distance",units:[{measure:"m/J",description:"Meters per Joule (base)"},{measure:"nm/J",description:"Nautical Miles per Joule"},{measure:"km/J",description:"Kilometers per Joule"},{measure:"nm/kWh",description:"Nautical Miles per Kilowatt-hour"},{measure:"km/kWh",description:"Kilometers per Kilowatt-hour"}]},{group:"Temperature",units:[{measure:"K",description:"Kelvin (base)"},{measure:"celsius",description:"Celsius"},{measure:"fahrenheit",description:"Fahrenheit"}]},{group:"Length",units:[{measure:"m",description:"Meters (base)"},{measure:"mm",description:"Millimeters"},{measure:"fathom",description:"Fathoms"},{measure:"nm",description:"Nautical Miles"},{measure:"km",description:"Kilometers"},{measure:"mi",description:"Miles"},{measure:"feet",description:"Feet"},{measure:"inch",description:"Inches"}]},{group:"Volume",units:[{measure:"liter",description:"Liters (base)"},{measure:"m3",description:"Cubic Meters"},{measure:"gallon",description:"Gallons"}]},{group:"Current",units:[{measure:"A",description:"Amperes (base)"},{measure:"mA",description:"Milliamperes"}]},{group:"Potential",units:[{measure:"V",description:"Volts (base)"},{measure:"mV",description:"Millivolts"}]},{group:"Charge",units:[{measure:"C",description:"Coulomb (base)"},{measure:"Ah",description:"Ampere*Hours"}]},{group:"Power",units:[{measure:"W",description:"Watts (base)"},{measure:"mW",description:"Milliwatts"}]},{group:"Energy",units:[{measure:"J",description:"Joules (base)"},{measure:"kWh",description:"Kilowatt*Hours"}]},{group:"Resistance",units:[{measure:"ohm",description:"\u2126 (base)"},{measure:"kiloohm",description:"k\u2126"}]},{group:"Pressure",units:[{measure:"Pa",description:"Pa (base)"},{measure:"kPa",description:"kPa"},{measure:"hPa",description:"hPa"},{measure:"mbar",description:"mbar"},{measure:"bar",description:"Bars"},{measure:"psi",description:"psi"},{measure:"mmHg",description:"mmHg"},{measure:"inHg",description:"inHg"}]},{group:"Density",units:[{measure:"kg/m3",description:"Air density - kg/cubic meter (base)"}]},{group:"Time",units:[{measure:"s",description:"Seconds (base)"},{measure:"Minutes",description:"Minutes"},{measure:"Hours",description:"Hours"},{measure:"Days",description:"Days"},{measure:"D HH:MM:SS",description:"Day Hour:Minute:sec"}]},{group:"Angular Velocity",units:[{measure:"rad/s",description:"Radians per second (base)"},{measure:"deg/s",description:"Degrees per second"},{measure:"deg/min",description:"Degrees per minute"}]},{group:"Angle",units:[{measure:"rad",description:"Radians (base)"},{measure:"deg",description:"Degrees"},{measure:"grad",description:"Gradians"}]},{group:"Frequency",units:[{measure:"rpm",description:"RPM - Rotations per minute"},{measure:"Hz",description:"Hz - Hertz (base)"},{measure:"KHz",description:"KHz - Kilohertz"},{measure:"MHz",description:"MHz - Megahertz"},{measure:"GHz",description:"GHz - Gigahertz"}]},{group:"Ratio",units:[{measure:"percent",description:"As percentage value"},{measure:"percentraw",description:"As ratio 0-1 with % sign"},{measure:"ratio",description:"Ratio 0-1 (base)"}]},{group:"Position",units:[{measure:"pdeg",description:"Position Degrees"},{measure:"latitudeMin",description:"Latitude in minutes"},{measure:"latitudeSec",description:"Latitude in seconds"},{measure:"longitudeMin",description:"Longitude in minutes"},{measure:"longitudeSec",description:"Longitude in seconds"}]}];skBaseUnits=[{unit:"s",properties:{display:"s",quantity:"Time",quantityDisplay:"t",description:"Elapsed time (interval) in seconds"}},{unit:"Hz",properties:{display:"Hz",quantity:"Frequency",quantityDisplay:"f",description:"Frequency in Hertz"}},{unit:"m3",properties:{display:"m\xB3",quantity:"Volume",quantityDisplay:"V",description:"Volume in cubic meters"}},{unit:"m3/s",properties:{display:"m\xB3/s",quantity:"Flow",quantityDisplay:"Q",description:"Liquid or gas flow in cubic meters per second"}},{unit:"kg/s",properties:{display:"kg/s",quantity:"Mass flow rate",quantityDisplay:"\u1E41",description:"Liquid or gas flow in kilograms per second"}},{unit:"kg/m3",properties:{display:"kg/m\xB3",quantity:"Density",quantityDisplay:"\u03C1",description:"Density in kg per cubic meter"}},{unit:"deg",properties:{display:"Position",quantity:"Angle",quantityDisplay:"\u2220",description:"Latitude or longitude in decimal degrees"}},{unit:"rad",properties:{display:"\xB0",quantity:"Angle",quantityDisplay:"\u2220",description:"Angular arc in radians"}},{unit:"rad/s",properties:{display:"\u33AD/s",quantity:"Rotation",quantityDisplay:"\u03C9",description:"Angular rate in radians per second"}},{unit:"A",properties:{display:"A",quantity:"Current",quantityDisplay:"I",description:"Electrical current in ampere"}},{unit:"C",properties:{display:"C",quantity:"Charge",quantityDisplay:"Q",description:"Electrical charge in Coulomb"}},{unit:"V",properties:{display:"V",quantity:"Voltage",quantityDisplay:"V",description:"Electrical potential in volt"}},{unit:"W",properties:{display:"W",quantity:"Power",quantityDisplay:"P",description:"Power in watt"}},{unit:"Nm",properties:{display:"Nm",quantity:"Torque",quantityDisplay:"\u03C4",description:"Torque in Newton meter"}},{unit:"J",properties:{display:"J",quantity:"Energy",quantityDisplay:"E",description:"Electrical energy in joule"}},{unit:"ohm",properties:{display:"\u2126",quantity:"Resistance",quantityDisplay:"R",description:"Electrical resistance in ohm"}},{unit:"m",properties:{display:"m",quantity:"Distance",quantityDisplay:"d",description:"Distance in meters"}},{unit:"m/s",properties:{display:"m/s",quantity:"Speed",quantityDisplay:"v",description:"Speed in meters per second"}},{unit:"m2",properties:{display:"\u33A1",quantity:"Area",quantityDisplay:"A",description:"(Surface) area in square meters"}},{unit:"K",properties:{display:"K",quantity:"Temperature",quantityDisplay:"T",description:"Temperature in kelvin"}},{unit:"Pa",properties:{display:"Pa",quantity:"Pressure",quantityDisplay:"P",description:"Pressure in pascal"}},{unit:"kg",properties:{display:"kg",quantity:"Mass",quantityDisplay:"m",description:"Mass in kilogram"}},{unit:"ratio",properties:{display:"",quantity:"Ratio",quantityDisplay:"\u03C6",description:"Relative value compared to reference or normal value. 0 = 0%, 1 = 100%, 1e-3 = 1 ppt"}},{unit:"m/s2",properties:{display:"m/s\xB2",quantity:"Acceleration",quantityDisplay:"a",description:"Acceleration in meters per second squared"}},{unit:"rad/s2",properties:{display:"rad/s\xB2",quantity:"Angular acceleration",quantityDisplay:"a",description:"Angular acceleration in radians per second squared"}},{unit:"N",properties:{display:"N",quantity:"Force",quantityDisplay:"F",description:"Force in newton"}},{unit:"T",properties:{display:"T",quantity:"Magnetic field",quantityDisplay:"B",description:"Magnetic field strength in tesla"}},{unit:"Lux",properties:{display:"lx",quantity:"Light Intensity",quantityDisplay:"Ev",description:"Light Intensity in lux"}},{unit:"Pa/s",properties:{display:"Pa/s",quantity:"Pressure rate",quantityDisplay:"R",description:"Pressure change rate in pascal per second"}},{unit:"Pa.s",properties:{display:"Pa s",quantity:"Viscosity",quantityDisplay:"\u03BC",description:"Viscosity in pascal seconds"}}];_defaultUnits=null;constructor(){this._defaultUnitsSub=this.AppSettingsService.getDefaultUnitsAsO().subscribe(e=>{this._defaultUnits=e})}unitConversionFunctions={unitless:function(e){return e}," ":function(e){return e},knots:p.default.swiftConverter("m/s","kn"),kph:p.default.swiftConverter("m/s","kph"),"m/s":function(e){return e},mph:p.default.swiftConverter("m/s","mph"),liter:p.default.swiftConverter("m^3","liter"),gallon:p.default.swiftConverter("m^3","gallon"),m3:function(e){return e},"m3/s":function(e){return e},"l/min":p.default.swiftConverter("m^3/s","liter/minute"),"l/h":p.default.swiftConverter("m^3/s","liter/hour"),"g/min":p.default.swiftConverter("m^3/s","gallon/minute"),"g/h":p.default.swiftConverter("m^3/s","gallon/hour"),"m/m3":function(e){return e},"nm/l":p.default.swiftConverter("m/m^3","naut-mile/liter"),"nm/g":p.default.swiftConverter("m/m^3","naut-mile/gallon"),"km/l":p.default.swiftConverter("m/m^3","km/liter"),mpg:p.default.swiftConverter("m/m^3","mile/gallon"),"m/J":function(e){return e},"nm/J":p.default.swiftConverter("m/J","naut-mile/J"),"km/J":p.default.swiftConverter("km/J","km/J"),"nm/kWh":p.default.swiftConverter("m/J","naut-mile/kWh"),"km/kWh":p.default.swiftConverter("m/J","km/kWh"),K:function(e){return e},celsius:p.default.swiftConverter("tempK","tempC"),fahrenheit:p.default.swiftConverter("tempK","tempF"),m:function(e){return e},mm:function(e){return e*1e3},fathom:p.default.swiftConverter("m","fathom"),feet:p.default.swiftConverter("m","foot"),inch:p.default.swiftConverter("m","in"),km:p.default.swiftConverter("m","km"),nm:p.default.swiftConverter("m","nmi"),mi:p.default.swiftConverter("m","mi"),V:function(e){return e},mV:function(e){return e*1e3},A:function(e){return e},mA:function(e){return e*1e3},C:function(e){return e},Ah:p.default.swiftConverter("C","Ah"),W:function(e){return e},mW:function(e){return e*1e3},J:function(e){return e},kWh:p.default.swiftConverter("J","kWh"),ohm:function(e){return e},kiloohm:function(e){return e/1e3},Pa:function(e){return e},bar:p.default.swiftConverter("Pa","bar"),psi:p.default.swiftConverter("Pa","psi"),mmHg:p.default.swiftConverter("Pa","mmHg"),inHg:p.default.swiftConverter("Pa","inHg"),hPa:p.default.swiftConverter("Pa","hPa"),kPa:p.default.swiftConverter("Pa","kPa"),mbar:p.default.swiftConverter("Pa","millibar"),"kg/m3":function(e){return e},s:function(e){return e},Minutes:p.default.swiftConverter("s","minutes"),Hours:p.default.swiftConverter("s","hours"),Days:p.default.swiftConverter("s","days"),"D HH:MM:SS":function(e){e=parseInt(e,10);let i=e<0;e=Math.abs(e);let n=Math.floor(e/86400),a=Math.floor(e%86400/3600),d=Math.floor(e%3600/60),g=Math.floor(e%60),y=i?"-":"";return n>0?y+=n+"d "+a.toString()+":"+d.toString().padStart(2,"0")+":"+g.toString().padStart(2,"0"):y+=a.toString()+":"+d.toString().padStart(2,"0")+":"+g.toString().padStart(2,"0"),y},"rad/s":function(e){return e},"deg/s":p.default.swiftConverter("rad/s","deg/s"),"deg/min":p.default.swiftConverter("rad/s","deg/min"),rpm:function(e){return e*60},Hz:function(e){return e},KHz:function(e){return e/1e3},MHz:function(e){return e/1e6},GHz:function(e){return e/1e9},rad:function(e){return e},deg:p.default.swiftConverter("rad","deg"),grad:p.default.swiftConverter("rad","grad"),percent:function(e){return e*100},percentraw:function(e){return e},ratio:function(e){return e},pdeg:function(e){return e},latitudeMin:function(e){let i=Math.trunc(e),n="N";e<0&&(n="S",i=i*-1);let a=e%1*60;return n=="S"&&(a=a*-1),i+"\xB0 "+a.toFixed(2).padStart(5,"0")+"' "+n},latitudeSec:function(e){let i=Math.trunc(e),n="N";e<0&&(n="S",i=i*-1);let a=e%1*60;n=="S"&&(a=a*-1);let d=Math.trunc(a),g=a%1*60;return i+"\xB0 "+d+"' "+g.toFixed(2).padStart(5,"0")+'" '+n},longitudeMin:function(e){let i=Math.trunc(e),n="E";e<0&&(n="W",i=i*-1);let a=e%1*60;return n=="W"&&(a=a*-1),i+"\xB0 "+a.toFixed(2).padStart(5,"0")+"' "+n},longitudeSec:function(e){let i=Math.trunc(e),n="E";e<0&&(n="W",i=i*-1);let a=e%1*60;n=="W"&&(a=a*-1);let d=Math.trunc(a),g=a%1*60;return i+"\xB0 "+d+"' "+g.toFixed(2).padStart(5,"0")+'" '+n}};convertToUnit(e,i){if(!(e in this.unitConversionFunctions)||i===null)return null;let n=+i;return this.unitConversionFunctions[e](n)}getDefaults(){return this._defaultUnits}getConversions(){return this._conversionList}getConversionsForPath(e){let i=this.data.getPathUnitType(e),n="unitless",a="unitless";if(i===null||i==="RFC 3339 (UTC)")return{base:n,conversions:this._conversionList};{let d=this._conversionList.filter(g=>g.group=="Position"&&(e.includes("position.latitude")||e.includes("position.longitude"))?!0:g.units.find(oe=>oe.measure==i)?(a=this._defaultUnits[g.group],!0):!1);return d.length>0?{base:a,conversions:d}:(console.log("[Units Service] Unit type: "+i+", found for path: "+e+`
|
|
2
|
-
but Kip does not support it.`),{base:n,conversions:this._conversionList})}}ngOnDestroy(){this._defaultUnitsSub?.unsubscribe()}static \u0275fac=function(i){return new(i||c)};static \u0275prov=wt({token:c,factory:c.\u0275fac})}return c})();var mr=["tooltip"],wi=20;var Ci=new G("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let c=f(ee);return()=>Me(c,{scrollThrottle:wi})}}),ki=new G("mat-tooltip-default-options",{providedIn:"root",factory:()=>({showDelay:0,hideDelay:0,touchendHideDelay:1500})});var vi="tooltip-panel",bi=Vt({passive:!0}),ur=8,pr=8,hr=24,fr=200,gr=(()=>{class c{_elementRef=f(Y);_ngZone=f(Mt);_platform=f(Ht);_ariaDescriber=f(Jt);_focusMonitor=f(Kt);_dir=f(we);_injector=f(ee);_viewContainerRef=f(Dt);_mediaMatcher=f(Bt);_animationsDisabled=se();_defaultOptions=f(ki,{optional:!0});_overlayRef=null;_tooltipInstance=null;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=Mi;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending=!1;_dirSubscribed=!1;get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=je(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){let i=je(e);this._disabled!==i&&(this._disabled=i,i?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Ge(e)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Ge(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(e){let i=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(i)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_passiveListeners=[];_touchstartTimeout=null;_destroyed=new B;_isDestroyed=!1;constructor(){let e=this._defaultOptions;e&&(this._showDelay=e.showDelay,this._hideDelay=e.hideDelay,e.position&&(this.position=e.position),e.positionAtOrigin&&(this.positionAtOrigin=e.positionAtOrigin),e.touchGestures&&(this.touchGestures=e.touchGestures),e.tooltipClass&&(this.tooltipClass=e.tooltipClass)),this._viewportMargin=ur}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(k(this._destroyed)).subscribe(e=>{e?e==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let e=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,n])=>{e.removeEventListener(i,n,bi)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay,i){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let n=this._createOverlay(i);this._detach(),this._portal=this._portal||new $t(this._tooltipComponent,this._viewContainerRef);let a=this._tooltipInstance=n.attach(this._portal).instance;a._triggerElement=this._elementRef.nativeElement,a._mouseLeaveHideDelay=this._hideDelay,a.afterHidden().pipe(k(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),a.show(e)}hide(e=this.hideDelay){let i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){let d=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&d._origin instanceof Y)return this._overlayRef;this._detach()}let i=this._injector.get(Qt).getAncestorScrollContainers(this._elementRef),n=`${this._cssClassPrefix}-${vi}`,a=ei(this._injector,this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i).withPopoverLocation("global");return a.positionChanges.pipe(k(this._destroyed)).subscribe(d=>{this._updateCurrentPositionClass(d.connectionPair),this._tooltipInstance&&d.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=ii(this._injector,{direction:this._dir,positionStrategy:a,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,n]:n,scrollStrategy:this._injector.get(Ci)(),disableAnimations:this._animationsDisabled}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(k(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(k(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(k(this._destroyed)).subscribe(d=>{this._isTooltipVisible()&&d.keyCode===27&&!Q(d)&&(d.preventDefault(),d.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe(k(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){let i=e.getConfig().positionStrategy,n=this._getOrigin(),a=this._getOverlayPosition();i.withPositions([this._addOffset($($({},n.main),a.main)),this._addOffset($($({},n.fallback),a.fallback))])}_addOffset(e){let i=pr,n=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-i:e.originY==="bottom"?e.offsetY=i:e.originX==="start"?e.offsetX=n?-i:i:e.originX==="end"&&(e.offsetX=n?i:-i),e}_getOrigin(){let e=!this._dir||this._dir.value=="ltr",i=this.position,n;i=="above"||i=="below"?n={originX:"center",originY:i=="above"?"top":"bottom"}:i=="before"||i=="left"&&e||i=="right"&&!e?n={originX:"start",originY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(n={originX:"end",originY:"center"});let{x:a,y:d}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:a,originY:d}}}_getOverlayPosition(){let e=!this._dir||this._dir.value=="ltr",i=this.position,n;i=="above"?n={overlayX:"center",overlayY:"bottom"}:i=="below"?n={overlayX:"center",overlayY:"top"}:i=="before"||i=="left"&&e||i=="right"&&!e?n={overlayX:"end",overlayY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(n={overlayX:"start",overlayY:"center"});let{x:a,y:d}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:a,overlayY:d}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),Ue(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return this.position==="above"||this.position==="below"?i==="top"?i="bottom":i==="bottom"&&(i="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){let{overlayY:i,originX:n,originY:a}=e,d;if(i==="center"?this._dir&&this._dir.value==="rtl"?d=n==="end"?"left":"right":d=n==="start"?"left":"right":d=i==="bottom"&&a==="top"?"above":"below",d!==this._currentPosition){let g=this._overlayRef;if(g){let y=`${this._cssClassPrefix}-${vi}-`;g.removePanelClass(y+this._currentPosition),g.addPanelClass(y+d)}this._currentPosition=d}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._isTouchPlatform()?this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{let i=e.targetTouches?.[0],n=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let a=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,n)},this._defaultOptions?.touchLongPressShowDelay??a)}])):this._passiveListeners.push(["mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let i;e.x!==void 0&&e.y!==void 0&&(i=e),this.show(void 0,i)}]),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let e=[];if(!this._isTouchPlatform())e.push(["mouseleave",i=>{let n=i.relatedTarget;(!n||!this._overlayRef?.overlayElement.contains(n))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let i=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,n])=>{this._elementRef.nativeElement.addEventListener(i,n,bi)})}_isTouchPlatform(){return this._platform.IOS||this._platform.ANDROID?!0:this._platform.isBrowser?!!this._defaultOptions?.detectHoverCapability&&this._mediaMatcher.matchMedia("(any-hover: none)").matches:!1}_wheelListener(e){if(this._isTooltipVisible()){let i=this._injector.get(kt).elementFromPoint(e.clientX,e.clientY),n=this._elementRef.nativeElement;i!==n&&!n.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let i=this._elementRef.nativeElement,n=i.style;(e==="on"||i.nodeName!=="INPUT"&&i.nodeName!=="TEXTAREA")&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),(e==="on"||!i.draggable)&&(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._isDestroyed||Ue({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}static \u0275fac=function(i){return new(i||c)};static \u0275dir=ze({type:c,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,n){i&2&&J("mat-mdc-tooltip-disabled",n.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return c})(),Mi=(()=>{class c{_changeDetectorRef=f(ve);_elementRef=f(Y);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=se();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new B;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){}show(e){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>hr&&e.width>=fr}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){let i=this._tooltip.nativeElement,n=this._showAnimation,a=this._hideAnimation;if(i.classList.remove(e?a:n),i.classList.add(e?n:a),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let d=getComputedStyle(i);(d.getPropertyValue("animation-duration")==="0s"||d.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static \u0275fac=function(i){return new(i||c)};static \u0275cmp=fe({type:c,selectors:[["mat-tooltip-component"]],viewQuery:function(i,n){if(i&1&&ye(mr,7),i&2){let a;L(a=F())&&(n._tooltip=a.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(i,n){i&1&&z("mouseleave",function(d){return n._handleMouseLeave(d)})},decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(i,n){if(i&1){let a=ie();O(0,"div",1,0),z("animationend",function(g){return q(a),U(n._handleAnimationEnd(g))}),O(2,"div",2),re(3),R()()}i&2&&(J("mdc-tooltip--multiline",n._isMultiline),te("ngClass",n.tooltipClass),P(3),ne(n.message))},dependencies:[be],styles:[`.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mat-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mat-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mat-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mat-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mat-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mat-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel{line-height:normal}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}
|
|
3
|
-
`],encapsulation:2,changeDetection:0})}return c})();var pn=(()=>{class c{static \u0275fac=function(i){return new(i||c)};static \u0275mod=ge({type:c});static \u0275inj=pe({imports:[Wt,Te,Ce,ke]})}return c})();var br=["trigger"],wr=["panel"],Cr=[[["mat-select-trigger"]],"*"],kr=["mat-select-trigger","*"];function Mr(c,S){if(c&1&&(O(0,"span",4),re(1),R()),c&2){let e=X();P(),ne(e.placeholder)}}function Tr(c,S){c&1&&Ke(0)}function Sr(c,S){if(c&1&&(O(0,"span",11),re(1),R()),c&2){let e=X(2);P(),ne(e.triggerValue)}}function Or(c,S){if(c&1&&(O(0,"span",5),He(1,Tr,1,0)(2,Sr,2,1,"span",11),R()),c&2){let e=X();P(),Ve(e.customTrigger?1:2)}}function Dr(c,S){if(c&1){let e=ie();O(0,"div",12,1),z("keydown",function(n){q(e);let a=X();return U(a._handleKeydown(n))}),Ke(2,1),R()}if(c&2){let e=X();Rt(Lt("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme())),J("mat-select-panel-animations-enabled",!e._animationsDisabled),te("ngClass",e.panelClass),_e("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var xr=new G("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let c=f(ee);return()=>Me(c)}}),Ir=new G("MAT_SELECT_CONFIG"),Er=new G("MatSelectTrigger"),tt=class{source;value;constructor(S,e){this.source=S,this.value=e}},Wn=(()=>{class c{_viewportRuler=f(Zt);_changeDetectorRef=f(ve);_elementRef=f(Y);_dir=f(we,{optional:!0});_idGenerator=f(jt);_renderer=f(Ot);_parentFormField=f(li,{optional:!0});ngControl=f(ni,{self:!0,optional:!0});_liveAnnouncer=f(Gt);_defaultOptions=f(Ir,{optional:!0});_animationsDisabled=se();_popoverLocation;_initialized=new B;_cleanupDetach;options;optionGroups;customTrigger;_positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}];_scrollOptionIntoView(e){let i=this.options.toArray()[e];if(i){let n=this.panel.nativeElement,a=fi(e,this.options,this.optionGroups),d=i._getHostElement();e===0&&a===1?n.scrollTop=0:n.scrollTop=gi(d.offsetTop,d.offsetHeight,n.scrollTop,n.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new tt(this,e)}_scrollStrategyFactory=f(xr);_panelOpen=!1;_compareWith=(e,i)=>e===i;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new B;_errorStateTracker;stateChanges=new B;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;get disableRipple(){return this._disableRipple()}set disableRipple(e){this._disableRipple.set(e)}_disableRipple=Tt(!1);tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(ri.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??!1;optionSelectionChanges=vt(()=>{let e=this.options;return e?e.changes.pipe(Ne(e),qe(()=>ue(...e.map(i=>i.onSelectionChange)))):this._initialized.pipe(qe(()=>this.optionSelectionChanges))});openedChange=new he;_openedStream=this.openedChange.pipe(Fe(e=>e),Le(()=>{}));_closedStream=this.openedChange.pipe(Fe(e=>!e),Le(()=>{}));selectionChange=new he;valueChange=new he;constructor(){let e=f(di),i=f(si,{optional:!0}),n=f(oi,{optional:!0}),a=f(new Nt("tabindex"),{optional:!0}),d=f(ti,{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new mi(e,this.ngControl,n,i,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=a==null?0:parseInt(a)||0,this._popoverLocation=d?.usePopover===!1?null:"inline",this.id=this.id}ngOnInit(){this._selectionModel=new _i(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(k(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(k(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(Ne(null),k(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){let n=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?n.setAttribute("aria-labelledby",e):n.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(this._previousControl!==void 0&&i.disabled!==null&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._cleanupDetach?.(),this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._cleanupDetach?.(),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._overlayDir.positionChange.pipe(bt(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()}),this._overlayDir.attachOverlay(),this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!0)))}_trackedModal=null;_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let i=`${this.id}-panel`;this._trackedModal&&We(this._trackedModal,"aria-owns",i),Xt(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;We(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!1)))}_exitAndDetach(){if(this._animationsDisabled||!this.panel){this._detachOverlay();return}this._cleanupDetach?.(),this._cleanupDetach=()=>{i(),clearTimeout(n),this._cleanupDetach=void 0};let e=this.panel.nativeElement,i=this._renderer.listen(e,"animationend",a=>{a.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay())}),n=setTimeout(()=>{this._cleanupDetach?.(),this._detachOverlay()},200);e.classList.add("mat-select-panel-exit")}_detachOverlay(){this._overlayDir.detachOverlay(),this._changeDetectorRef.markForCheck()}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let e=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let i=e.keyCode,n=i===40||i===38||i===37||i===39,a=i===13||i===32,d=this._keyManager;if(!d.isTyping()&&a&&!Q(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){let g=this.selected;d.onKeydown(e);let y=this.selected;y&&g!==y&&this._liveAnnouncer.announce(y.viewValue,1e4)}}_handleOpenKeydown(e){let i=this._keyManager,n=e.keyCode,a=n===40||n===38,d=i.isTyping();if(a&&e.altKey)e.preventDefault(),this.close();else if(!d&&(n===13||n===32)&&i.activeItem&&!Q(e))e.preventDefault(),i.activeItem._selectViaInteraction();else if(!d&&this._multiple&&n===65&&e.ctrlKey){e.preventDefault();let g=this.options.some(y=>!y.disabled&&!y.selected);this.options.forEach(y=>{y.disabled||(g?y.select():y.deselect())})}else{let g=i.activeItemIndex;i.onKeydown(e),this._multiple&&a&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==g&&i.activeItem._selectViaInteraction()}}_handleOverlayKeydown(e){e.keyCode===27&&!Q(e)&&(e.preventDefault(),this.close())}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{let i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let i=this.options.find(n=>{if(this._selectionModel.isSelected(n))return!1;try{return(n.value!=null||this.canSelectNullableOptions)&&this._compareWith(n.value,e)}catch{return!1}});return i&&this._selectionModel.select(i),i}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_skipPredicate=e=>this.panelOpen?!1:e.disabled;_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof Ye?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new Yt(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let e=ue(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(k(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),ue(...this.options.map(i=>i._stateChanges)).pipe(k(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,i){let n=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((i,n)=>this.sortComparator?this.sortComparator(i,n,e):e.indexOf(i)-e.indexOf(n)),this.stateChanges.next()}}_propagateChanges(e){let i;this.multiple?i=this.selected.map(n=>n.value):i=this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let i=0;i<this.options.length;i++)if(!this.options.get(i).disabled){e=i;break}this._keyManager.setActiveItem(e)}else this._keyManager.setActiveItem(this._selectionModel.selected[0])}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,i=e?e+" ":"";return this.ariaLabelledby?i+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||"";return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e||(e=this._valueId),e}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let i=this._elementRef.nativeElement;e.length?i.setAttribute("aria-describedby",e.join(" ")):i.removeAttribute("aria-describedby")}onContainerClick(e){let i=zt(e);i&&(i.tagName==="MAT-OPTION"||i.classList.contains("cdk-overlay-backdrop")||i.closest(".mat-mdc-select-panel"))||(this.focus(),this.open())}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(i){return new(i||c)};static \u0275cmp=fe({type:c,selectors:[["mat-select"]],contentQueries:function(i,n,a){if(i&1&&At(a,Er,5)(a,hi,5)(a,pi,5),i&2){let d;L(d=F())&&(n.customTrigger=d.first),L(d=F())&&(n.options=d),L(d=F())&&(n.optionGroups=d)}},viewQuery:function(i,n){if(i&1&&ye(br,5)(wr,5)(Xe,5),i&2){let a;L(a=F())&&(n.trigger=a.first),L(a=F())&&(n.panel=a.first),L(a=F())&&(n._overlayDir=a.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(i,n){i&1&&z("keydown",function(d){return n._handleKeydown(d)})("focus",function(){return n._onFocus()})("blur",function(){return n._onBlur()}),i&2&&(_e("id",n.id)("tabindex",n.disabled?-1:n.tabIndex)("aria-controls",n.panelOpen?n.id+"-panel":null)("aria-expanded",n.panelOpen)("aria-label",n.ariaLabel||null)("aria-required",n.required.toString())("aria-disabled",n.disabled.toString())("aria-invalid",n.errorState)("aria-activedescendant",n._getAriaActiveDescendant()),J("mat-mdc-select-disabled",n.disabled)("mat-mdc-select-invalid",n.errorState)("mat-mdc-select-required",n.required)("mat-mdc-select-empty",n.empty)("mat-mdc-select-multiple",n.multiple)("mat-select-open",n.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",H],disableRipple:[2,"disableRipple","disableRipple",H],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:Be(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",H],placeholder:"placeholder",required:[2,"required","required",H],multiple:[2,"multiple","multiple",H],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",H],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",Be],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",H]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Ft([{provide:ai,useExisting:c},{provide:ui,useExisting:c}]),St],ngContentSelectors:kr,decls:11,vars:10,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions","cdkConnectedOverlayUsePopover"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(i,n){if(i&1){let a=ie();Et(Cr),O(0,"div",2,0),z("click",function(){return q(a),U(n.open())}),O(3,"div",3),He(4,Mr,2,1,"span",4)(5,Or,3,1,"span",5),R(),O(6,"div",6)(7,"div",7),Ct(),O(8,"svg",8),It(9,"path",9),R()()()(),xt(10,Dr,3,10,"ng-template",10),z("detach",function(){return q(a),U(n.close())})("backdropClick",function(){return q(a),U(n.close())})("overlayKeydown",function(g){return q(a),U(n._handleOverlayKeydown(g))})}if(i&2){let a=Pt(1);P(3),_e("id",n._valueId),P(),Ve(n.empty?4:5),P(6),te("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",n._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",n._scrollStrategy)("cdkConnectedOverlayOrigin",n._preferredOverlayOrigin||a)("cdkConnectedOverlayPositions",n._positions)("cdkConnectedOverlayWidth",n._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)("cdkConnectedOverlayUsePopover",n._popoverLocation)}},dependencies:[Ye,Xe,be],styles:[`@keyframes _mat-select-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-select-exit{from{opacity:1}to{opacity:0}}.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-select-open .mat-mdc-select-arrow{transform:rotate(180deg)}.mat-form-field-animations-enabled .mat-mdc-select-arrow{transition:transform 80ms linear}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:relative;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-select-panel-animations-enabled{animation:_mat-select-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-select-panel-animations-enabled.mat-select-panel-exit{animation:_mat-select-exit 100ms linear}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field:not(.mat-form-field-animations-enabled) .mat-mdc-select-placeholder,._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))}
|
|
4
|
-
`],encapsulation:2,changeDetection:0})}return c})();var jn=(()=>{class c{static \u0275fac=function(i){return new(i||c)};static \u0275mod=ge({type:c});static \u0275inj=pe({imports:[Te,Je,Ce,ke,ci,Je]})}return c})();export{Wn as a,jn as b,Fr as c,ki as d,gr as e,pn as f};
|