@openmrs/esm-billing-app 1.1.1 → 1.1.2-pre.1
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/.turbo/cache/53e233a916ffe7d2-meta.json +1 -0
- package/.turbo/cache/53e233a916ffe7d2.tar.zst +0 -0
- package/.turbo/turbo-build.log +44 -0
- package/__mocks__/bills.mock.ts +6 -5
- package/dist/1119.js +1 -1
- package/dist/1197.js +1 -1
- package/dist/1435.js +1 -0
- package/dist/1435.js.map +1 -0
- package/dist/1807.js +1 -0
- package/dist/1807.js.map +1 -0
- package/dist/2146.js +1 -1
- package/dist/2177.js +1 -1
- package/dist/2177.js.map +1 -1
- package/dist/2690.js +1 -1
- package/dist/2704.js +1 -0
- package/dist/2704.js.map +1 -0
- package/dist/3002.js +1 -0
- package/dist/3002.js.map +1 -0
- package/dist/3041.js +1 -1
- package/dist/3041.js.map +1 -1
- package/dist/3099.js +1 -1
- package/dist/3184.js +1 -1
- package/dist/3184.js.map +1 -1
- package/dist/3584.js +1 -1
- package/dist/4055.js +1 -1
- package/dist/4132.js +1 -1
- package/dist/4225.js +1 -1
- package/dist/4225.js.map +1 -1
- package/dist/4300.js +1 -1
- package/dist/4335.js +1 -1
- package/dist/439.js +1 -1
- package/dist/4618.js +1 -1
- package/dist/4652.js +1 -1
- package/dist/4944.js +1 -1
- package/dist/5173.js +1 -1
- package/dist/5241.js +1 -1
- package/dist/5422.js +1 -1
- package/dist/5422.js.map +1 -1
- package/dist/5442.js +1 -1
- package/dist/5661.js +1 -1
- package/dist/6022.js +1 -1
- package/dist/6404.js +1 -0
- package/dist/6404.js.map +1 -0
- package/dist/6468.js +1 -1
- package/dist/6540.js +1 -1
- package/dist/6540.js.map +1 -1
- package/dist/6589.js +1 -1
- package/dist/6606.js +1 -1
- package/dist/6606.js.map +1 -1
- package/dist/6679.js +1 -1
- package/dist/6792.js +1 -0
- package/dist/6792.js.map +1 -0
- package/dist/6840.js +1 -1
- package/dist/6859.js +1 -1
- package/dist/7097.js +1 -1
- package/dist/7159.js +1 -1
- package/dist/723.js +1 -1
- package/dist/7255.js +1 -1
- package/dist/7255.js.map +1 -1
- package/dist/7617.js +1 -1
- package/dist/795.js +1 -1
- package/dist/8163.js +1 -1
- package/dist/8341.js +2 -0
- package/dist/{1907.js.LICENSE.txt → 8341.js.LICENSE.txt} +0 -15
- package/dist/8341.js.map +1 -0
- package/dist/8349.js +1 -1
- package/dist/8371.js +1 -1
- package/dist/8421.js +1 -0
- package/dist/8421.js.map +1 -0
- package/dist/8618.js +1 -1
- package/dist/890.js +1 -1
- package/dist/9214.js +1 -1
- package/dist/9538.js +1 -1
- package/dist/9569.js +1 -1
- package/dist/961.js +1 -1
- package/dist/961.js.map +1 -1
- package/dist/986.js +1 -1
- package/dist/9879.js +1 -1
- package/dist/9895.js +1 -1
- package/dist/9900.js +1 -1
- package/dist/9913.js +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.LICENSE.txt +0 -15
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-billing-app.js +1 -1
- package/dist/openmrs-esm-billing-app.js.buildmanifest.json +284 -259
- package/dist/openmrs-esm-billing-app.js.map +1 -1
- package/dist/routes.json +1 -1
- package/e2e/commands/patient-operations.ts +1 -1
- package/e2e/pages/billing-dashboard-page.ts +3 -1
- package/e2e/pages/billing-form-page.ts +5 -0
- package/e2e/pages/invoice-page.ts +10 -0
- package/e2e/specs/billing-dashboard.spec.ts +126 -3
- package/e2e/specs/billing-patient-chart.spec.ts +95 -9
- package/package.json +3 -6
- package/src/bill-history/bill-action-menu.component.tsx +41 -0
- package/src/bill-history/bill-action-menu.scss +3 -0
- package/src/bill-history/bill-history.component.tsx +15 -5
- package/src/bill-history/bill-history.scss +0 -1
- package/src/bill-history/bill-history.test.tsx +78 -1
- package/src/bill-item-actions/edit-bill-item.modal.tsx +1 -1
- package/src/bill-item-actions/edit-bill-item.test.tsx +40 -0
- package/src/billable-services/bill-waiver/bill-waiver.component.tsx +3 -1
- package/src/billing-dashboard/billing-dashboard.component.tsx +3 -16
- package/src/billing-form/billing-checkin-form.component.tsx +116 -57
- package/src/billing-form/billing-checkin-form.scss +26 -2
- package/src/billing-form/billing-checkin-form.test.tsx +51 -1
- package/src/billing-form/billing-form.resource.test.ts +87 -0
- package/src/billing-form/billing-form.resource.ts +33 -0
- package/src/billing-form/billing-form.scss +54 -7
- package/src/billing-form/billing-form.test.tsx +547 -0
- package/src/billing-form/billing-form.workspace.tsx +150 -45
- package/src/billing-form/visit-attributes/visit-attributes-form.component.tsx +25 -2
- package/src/billing-form/visit-attributes/visit-attributes-form.scss +29 -0
- package/src/billing-header/billing-header.component.tsx +1 -34
- package/src/billing-header/billing-header.scss +0 -50
- package/src/billing.resource.test.ts +11 -11
- package/src/billing.resource.ts +42 -12
- package/src/bills-table/bills-table.component.tsx +16 -12
- package/src/bills-table/bills-table.test.tsx +84 -7
- package/src/index.ts +5 -0
- package/src/invoice/invoice.component.tsx +46 -16
- package/src/invoice/invoice.scss +9 -8
- package/src/invoice/invoice.test.tsx +128 -7
- package/src/invoice/line-item-action-menu.component.tsx +2 -2
- package/src/invoice/payments/payments.component.tsx +2 -2
- package/src/invoice/payments/payments.test.tsx +31 -2
- package/src/metrics-cards/metrics.resource.ts +3 -4
- package/src/modal/finalize-bill-confirmation.modal.test.tsx +209 -0
- package/src/modal/finalize-bill-confirmation.modal.tsx +86 -0
- package/src/modal/require-payment.modal.tsx +2 -1
- package/src/routes.json +4 -0
- package/src/types/index.ts +10 -1
- package/tools/setup-tests.ts +7 -6
- package/translations/am.json +28 -0
- package/translations/ar.json +28 -0
- package/translations/ar_SY.json +28 -0
- package/translations/bn.json +28 -0
- package/translations/cs.json +28 -0
- package/translations/de.json +266 -238
- package/translations/en.json +29 -0
- package/translations/en_US.json +28 -0
- package/translations/es.json +28 -0
- package/translations/es_MX.json +28 -0
- package/translations/fr.json +28 -0
- package/translations/he.json +28 -0
- package/translations/hi.json +28 -0
- package/translations/hi_IN.json +28 -0
- package/translations/id.json +28 -0
- package/translations/it.json +28 -0
- package/translations/ka.json +28 -0
- package/translations/km.json +28 -0
- package/translations/ku.json +28 -0
- package/translations/ky.json +28 -0
- package/translations/lg.json +28 -0
- package/translations/ne.json +28 -0
- package/translations/pl.json +28 -0
- package/translations/pt.json +28 -0
- package/translations/pt_BR.json +28 -0
- package/translations/qu.json +28 -0
- package/translations/ro_RO.json +28 -0
- package/translations/ru_RU.json +28 -0
- package/translations/si.json +28 -0
- package/translations/sq.json +28 -0
- package/translations/sw.json +28 -0
- package/translations/sw_KE.json +28 -0
- package/translations/tr.json +28 -0
- package/translations/tr_TR.json +28 -0
- package/translations/uk.json +28 -0
- package/translations/uz.json +28 -0
- package/translations/uz@Latn.json +28 -0
- package/translations/uz_UZ.json +28 -0
- package/translations/vi.json +28 -0
- package/translations/zh.json +268 -240
- package/translations/zh_CN.json +30 -2
- package/translations/zh_TW.json +28 -0
- package/turbo.json +29 -0
- package/dist/1537.js +0 -1
- package/dist/1537.js.map +0 -1
- package/dist/1907.js +0 -2
- package/dist/1907.js.map +0 -1
- package/dist/1981.js +0 -1
- package/dist/1981.js.map +0 -1
- package/dist/2820.js +0 -1
- package/dist/2820.js.map +0 -1
- package/dist/8025.js +0 -1
- package/dist/8025.js.map +0 -1
- package/dist/9727.js +0 -2
- package/dist/9727.js.LICENSE.txt +0 -14
- package/dist/9727.js.map +0 -1
- package/dist/9756.js +0 -1
- package/dist/9756.js.map +0 -1
- package/src/hooks/selectedDateContext.ts +0 -10
package/dist/3041.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_openmrs_esm_billing_app=globalThis.webpackChunk_openmrs_esm_billing_app||[]).push([[3041,5422],{23041
|
|
1
|
+
"use strict";(globalThis.webpackChunk_openmrs_esm_billing_app=globalThis.webpackChunk_openmrs_esm_billing_app||[]).push([[3041,5422],{23041(e,t,r){r.r(t),r.d(t,{default:()=>z,infinite:()=>k,unstable_serialize:()=>m});var a=r(16072),n=r(92177),l=r(14993),i=r(27804),s=r(35430),o=r(19888);const c=()=>{},u=c(),f=Object,p=e=>e===u,g=new WeakMap,_=(e,t)=>f.prototype.toString.call(e)===`[object ${t}]`;let d=0;const b=e=>{const t=typeof e,r=_(e,"Date"),a=_(e,"RegExp"),n=_(e,"Object");let l,i;if(f(e)!==e||r||a)l=r?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(l=g.get(e),l)return l;if(l=++d+"~",g.set(e,l),Array.isArray(e)){for(l="@",i=0;i<e.length;i++)l+=b(e[i])+",";g.set(e,l)}if(n){l="#";const t=f.keys(e).sort();for(;!p(i=t.pop());)p(e[i])||(l+=i+":"+b(e[i])+",");g.set(e,l)}}return l},y=e=>(e=>{if("function"==typeof e)try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?b(e):"",t]})(e?e(0,null):null)[0],m=e=>s.q+y(e),h=Promise.resolve(),k=e=>(t,r,n)=>{const l=(0,a.useRef)(!1),{cache:c,initialSize:u=1,revalidateAll:f=!1,persistSize:p=!1,revalidateFirstPage:g=!0,revalidateOnMount:_=!1,parallel:d=!1}=n,[,,,b]=i.b.get(i.c);let m;try{m=y(t),m&&(m=s.q+m)}catch(e){}const[k,z,v]=(0,i.z)(c,m),S=(0,a.useCallback)((()=>(0,i.e)(k()._l)?u:k()._l),[c,m,u]);(0,o.useSyncExternalStore)((0,a.useCallback)((e=>m?v(m,(()=>{e()})):()=>{}),[c,m]),S,S);const w=(0,a.useCallback)((()=>{const e=k()._l;return(0,i.e)(e)?u:e}),[m,u]),C=(0,a.useRef)(w());(0,i.u)((()=>{l.current?m&&z({_l:p?C.current:w()}):l.current=!0}),[m,c]);const A=_&&!l.current,O=e(m,(async e=>{const a=k()._i,l=k()._r;z({_r:i.U});const s=[],o=w(),[u]=(0,i.z)(c,e),p=u().data,_=[];let y=null;for(let e=0;e<o;++e){const[o,u]=(0,i.s)(t(e,d?null:y));if(!o)break;const[m,h]=(0,i.z)(c,o);let k=m().data;const z=f||a||(0,i.e)(k)||g&&!e&&!(0,i.e)(p)||A||p&&!(0,i.e)(p[e])&&!n.compare(p[e],k);if(r&&("function"==typeof l?l(k,u):z)){const t=async()=>{if(o in b){const e=b[o];delete b[o],k=await e}else k=await r(u);h({data:k,_k:u}),s[e]=k};d?_.push(t):await t()}else s[e]=k;d||(y=k)}return d&&await Promise.all(_.map((e=>e()))),z({_i:i.U}),s}),n),j=(0,a.useCallback)((function(e,t){const r="boolean"==typeof t?{revalidate:t}:t||{},a=!1!==r.revalidate;return m?(a&&((0,i.e)(e)?z({_i:!0,_r:r.revalidate}):z({_i:!1,_r:r.revalidate})),arguments.length?O.mutate(e,{...r,revalidate:a}):O.mutate()):h}),[m,c]),P=(0,a.useCallback)((e=>{if(!m)return h;const[,r]=(0,i.z)(c,m);let a;if((0,i.a)(e)?a=e(w()):"number"==typeof e&&(a=e),"number"!=typeof a)return h;r({_l:a}),C.current=a;const n=[],[l]=(0,i.z)(c,m);let s=null;for(let e=0;e<a;++e){const[r]=(0,i.s)(t(e,s)),[a]=(0,i.z)(c,r),o=r?a().data:i.U;if((0,i.e)(o))return j(l().data);n.push(o),s=o}return j(n)}),[m,c,j,w]);return{size:w(),setSize:P,mutate:j,get data(){return O.data},get error(){return O.error},get isValidating(){return O.isValidating},get isLoading(){return O.isLoading}}},z=(0,l.Ht)(n.Ay,k)}}]);
|
package/dist/3041.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"3041.js","mappings":"
|
|
1
|
+
{"version":3,"file":"3041.js","mappings":"+RAOA,MAAMA,EAAO,OAKPC,EAA8BD,IAC9BE,EAASC,OACTC,EAAeC,GAAIA,IAAMJ,EAOzBK,EAAQ,IAAIC,QACZC,EAAe,CAACC,EAAOC,IAAOR,EAAOS,UAAUC,SAASC,KAAKJ,KAAW,WAAWC,KAEzF,IAAII,EAAU,EASd,MAAMC,EAAcC,IAChB,MAAMN,SAAcM,EACdC,EAAST,EAAaQ,EAAK,QAC3BE,EAAUV,EAAaQ,EAAK,UAC5BG,EAAgBX,EAAaQ,EAAK,UACxC,IAAII,EACAC,EACJ,GAAInB,EAAOc,KAASA,GAAQC,GAAWC,EA8BnCE,EAASH,EAASD,EAAIM,SAAmB,UAARZ,EAAmBM,EAAIJ,WAAqB,UAARF,EAAmBa,KAAKC,UAAUR,GAAO,GAAKA,MA9BvE,CAI5C,GADAI,EAASd,EAAMmB,IAAIT,GACfI,EAAQ,OAAOA,EAMnB,GAFAA,IAAWN,EAAU,IACrBR,EAAMoB,IAAIV,EAAKI,GACXO,MAAMC,QAAQZ,GAAM,CAGpB,IADAI,EAAS,IACLC,EAAQ,EAAGA,EAAQL,EAAIa,OAAQR,IAC/BD,GAAUL,EAAWC,EAAIK,IAAU,IAEvCf,EAAMoB,IAAIV,EAAKI,EACnB,CACA,GAAID,EAAe,CAEfC,EAAS,IACT,MAAMU,EAAO5B,EAAO4B,KAAKd,GAAKe,OAC9B,MAAO3B,EAAYiB,EAAQS,EAAKE,QACvB5B,EAAYY,EAAIK,MACjBD,GAAUC,EAAQ,IAAMN,EAAWC,EAAIK,IAAU,KAGzDf,EAAMoB,IAAIV,EAAKI,EACnB,CACJ,CAGA,OAAOA,GAuBLa,EAAmBC,GApBP,CAACC,IACf,GA7DgC,mBA6DjBA,EACX,IACIA,EAAMA,GACV,CAAE,MAAOC,GAELD,EAAM,EACV,CAIJ,MAAME,EAAOF,EAGb,MAAO,CADPA,EAAoB,iBAAPA,EAAkBA,GAAOR,MAAMC,QAAQO,GAAOA,EAAIN,OAASM,GAAOpB,EAAWoB,GAAO,GAG7FE,IAKGC,CAAUJ,EAASA,EAAO,EAAG,MAAQ,MAAM,GAEhDK,EAAsBL,GACjB,IAAkBD,EAAgBC,GAKvCM,EAAgBC,QAAQC,UACxBC,EAAYC,GAAa,CAACV,EAAQW,EAAIC,KACpC,MAAMC,GAAc,IAAAC,SAAO,IACnBC,MAAOC,EAAO,YAAEC,EAAc,EAAC,cAAEC,GAAgB,EAAK,YAAEC,GAAc,EAAK,oBAAEC,GAAsB,EAAI,kBAAEC,GAAoB,EAAK,SAAEC,GAAW,GAAUV,GAC1J,CAAE,CAAE,CAAEW,GAAW,IAAehC,IAAI,EAAAiC,GAG3C,IAAIC,EACJ,IACIA,EAAc1B,EAAgBC,GAC1ByB,IAAaA,EAAc,IAAoBA,EACvD,CAAE,MAAOvB,GAET,CACA,MAAOX,EAAKC,EAAKkC,IAAkB,OAAkBV,EAASS,GACxDE,GAAc,IAAAC,cAAY,KACf,OAAcrC,IAAMsC,IAAMZ,EAAc1B,IAAMsC,IAG5D,CACCb,EACAS,EACAR,KAEJ,IAAAa,uBAAqB,IAAAF,cAAaG,GAC1BN,EAAoBC,EAAeD,GAAa,KAChDM,OAEG,QAEX,CACIf,EACAS,IACAE,EAAaA,GACjB,MAAMK,GAAkB,IAAAJ,cAAY,KAChC,MAAMK,EAAiB1C,IAAMsC,GAC7B,OAAO,OAAcI,GAAkBhB,EAAcgB,IAGtD,CACCR,EACAR,IAGEiB,GAAkB,IAAApB,QAAOkB,MAE/B,IAAAG,IAA0B,KACjBtB,EAAYuB,QAIbX,GAGAjC,EAAI,CACAqC,GAAIV,EAAce,EAAgBE,QAAUJ,MAPhDnB,EAAYuB,SAAU,IAY3B,CACCX,EACAT,IAGJ,MAAMqB,EAA0BhB,IAAsBR,EAAYuB,QAE5DE,EAAM5B,EAAWe,GAAac,MAAOtC,IAEvC,MAAMuC,EAAqBjD,IAAMkD,GAC3BC,EAAuBnD,IAAMoD,GACnCnD,EAAI,CACAmD,GAAI,EAAAC,IAGR,MAAMC,EAAO,GACPC,EAAWd,KACVe,IAAY,OAAkB/B,EAASf,GACxC+C,EAAYD,IAAWF,KACvBI,EAAe,GACrB,IAAIC,EAAmB,KACvB,IAAI,IAAIC,EAAI,EAAGA,EAAIL,IAAYK,EAAE,CAC7B,MAAOC,EAASC,IAAW,IAAAC,GAAYtD,EAAOmD,EAAG7B,EAAW,KAAO4B,IACnE,IAAKE,EACD,MAEJ,MAAOG,EAAaC,IAAe,OAAkBxC,EAASoC,GAE9D,IAAIK,EAAWF,IAAcV,KAQ7B,MAAMa,EAAkBxC,GAAiBsB,IAAsB,OAAciB,IAAarC,IAAwB+B,KAAM,OAAcH,IAAcX,GAA2BW,KAAc,OAAcA,EAAUG,MAAQvC,EAAO+C,QAAQX,EAAUG,GAAIM,GAC1P,GAAI9C,IAAuC,mBAAzB+B,EAAsCA,EAAqBe,EAAUJ,GAAWK,GAAkB,CAChH,MAAME,EAAarB,UAEf,GAD4Ba,KAAW7B,EAGhC,CACH,MAAMsC,EAAMtC,EAAQ6B,UAGb7B,EAAQ6B,GAEfK,QAAiBI,CACrB,MARIJ,QAAiB9C,EAAG0C,GASxBG,EAAY,CACRX,KAAMY,EACNK,GAAIT,IAERR,EAAKM,GAAKM,GAEVnC,EACA2B,EAAac,KAAKH,SAEZA,GAEd,MACIf,EAAKM,GAAKM,EAETnC,IACD4B,EAAmBO,EAE3B,CAUA,OARInC,SACMf,QAAQyD,IAAIf,EAAagB,KAAKC,GAAIA,OAG5C1E,EAAI,CACAiD,GAAI,EAAAG,IAGDC,IACRjC,GACGuD,GAAS,IAAAvC,cACf,SAASiB,EAAMuB,GAGX,MAAMC,EAA0B,kBAATD,EAAqB,CACxCR,WAAYQ,GACZA,GAAQ,CAAC,EAEPE,GAA0C,IAAvBD,EAAQT,WAEjC,OAAKnC,GACD6C,KACK,OAAczB,GAQfrD,EAAI,CACAiD,IAAI,EACJE,GAAI0B,EAAQT,aARhBpE,EAAI,CACAiD,IAAI,EACJE,GAAI0B,EAAQT,cAUjBW,UAAU5E,OAAS2C,EAAI6B,OAAOtB,EAAM,IACpCwB,EACHT,WAAYU,IACXhC,EAAI6B,UAnBgB7D,CAoB7B,GAEA,CACImB,EACAT,IAGEwD,GAAU,IAAA5C,cAAa9C,IAEzB,IAAK2C,EAAa,OAAOnB,EACzB,MAAO,CAAEmE,IAAc,OAAkBzD,EAASS,GAClD,IAAIiD,EAMJ,IALI,OAAa5F,GACb4F,EAAO5F,EAAIkD,KACU,iBAAPlD,IACd4F,EAAO5F,GAEQ,iBAAR4F,EAAkB,OAAOpE,EACpCmE,EAAW,CACP5C,GAAI6C,IAERxC,EAAgBE,QAAUsC,EAE1B,MAAM7B,EAAO,IACN8B,IAAoB,OAAkB3D,EAASS,GACtD,IAAIyB,EAAmB,KACvB,IAAI,IAAIC,EAAI,EAAGA,EAAIuB,IAAQvB,EAAE,CACzB,MAAOC,IAAW,IAAAE,GAAYtD,EAAOmD,EAAGD,KACjCH,IAAY,OAAkB/B,EAASoC,GAExCK,EAAWL,EAAUL,IAAWF,KAAO,EAAAD,EAE7C,IAAI,OAAca,GACd,OAAOU,EAAOQ,IAAmB9B,MAErCA,EAAKkB,KAAKN,GACVP,EAAmBO,CACvB,CACA,OAAOU,EAAOtB,KAGlB,CACIpB,EACAT,EACAmD,EACAnC,IAIJ,MAAO,CACH0C,KAAM1C,IACNwC,UACAL,SACA,QAAItB,GACA,OAAOP,EAAIO,IACf,EACA,SAAI+B,GACA,OAAOtC,EAAIsC,KACf,EACA,gBAAIC,GACA,OAAOvC,EAAIuC,YACf,EACA,aAAIC,GACA,OAAOxC,EAAIwC,SACf,IAGNC,GAAiB,QAAe,KAAQtE,E","sources":["webpack://@openmrs/esm-billing-app/./node_modules/swr/dist/infinite/index.mjs"],"names":["noop","UNDEFINED","OBJECT","Object","isUndefined","v","table","WeakMap","isObjectType","value","type","prototype","toString","call","counter","stableHash","arg","isDate","isRegex","isPlainObject","result","index","toJSON","JSON","stringify","get","set","Array","isArray","length","keys","sort","pop","getFirstPageKey","getKey","key","err","args","serialize","unstable_serialize","EMPTY_PROMISE","Promise","resolve","infinite","useSWRNext","fn","config","didMountRef","useRef","cache","cache$1","initialSize","revalidateAll","persistSize","revalidateFirstPage","revalidateOnMount","parallel","PRELOAD","c","infiniteKey","subscribeCache","getSnapshot","useCallback","_l","useSyncExternalStore","callback","resolvePageSize","cachedPageSize","lastPageSizeRef","u","current","shouldRevalidateOnMount","swr","async","forceRevalidateAll","_i","shouldRevalidatePage","_r","U","data","pageSize","getCache","cacheData","revalidators","previousPageData","i","pageKey","pageArg","s","getSWRCache","setSWRCache","pageData","shouldFetchPage","compare","revalidate","req","_k","push","all","map","r","mutate","opts","options","shouldRevalidate","arguments","setSize","changeSize","size","getInfiniteCache","error","isValidating","isLoading","useSWRInfinite"],"sourceRoot":""}
|
package/dist/3099.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_openmrs_esm_billing_app=globalThis.webpackChunk_openmrs_esm_billing_app||[]).push([[3099],{93099:e=>{e.exports=JSON.parse('{"add":"Agregar","addBillableService":"Add billable service","addBillItems":"Add bill items","addCashPoint":"Add cash point","addNewBillableService":"Add new billable service","addNewCashPoint":"Add new cash point","addNewPaymentMode":"Add new payment mode","addNewService":"Agregar nuevo servicio","addPaymentMode":"Add payment mode","addPaymentOption":"Add payment option","address":"Dirección","allBills":"All bills","amount":"Cantidad","amountBalance":"Amount balance","amountDue":"Amount due","amountMustBePositive":"Amount must be greater than 0","amountPaid":"Amount paid","amountRequired":"Amount is required","amountTendered":"Amount tendered","amountToWaiveAriaLabel":"Enter amount to waive","amountToWaiveHelper":"Specify the amount to be deducted from the bill","amountToWaiveLabel":"Amount to waive","associatedConcept":"Associated concept","balance":"Balance","billableService":"Billable service","billableServiceCreated":"Billable service created","billableServiceCreatedSuccessfully":"Billable service created successfully","billableServiceForm":"Billable service form","billableServices":"Billable services","billableServices__lower":"billable services","billableServicesManagement":"Billable services management","billableServiceUpdated":"Billable service updated","billableServiceUpdatedSuccessfully":"Billable service updated successfully","billAmount":"Bill amount","billCreatedSuccessfully":"Bill created successfully","billCreationError":"Bill creation error","billDate":"Bill date","billedItems":"Billed items","billErrorService":"Billing service error","billing":"Facturación","billingHistory":"Billing history","billingSettings":"Billing settings","billItem":"Bill item","billItems":"Bill items","billLineItemEmpty":"This bill has no line items","billList":"Bill list","billMetrics":"Bill metrics","billName":"{{billName}}","billPayment":"Bill payment","billPaymentError":"Bill payment error","billPaymentRequiredMessage":"The current patient has a pending bill. Advise the patient to settle the bill before receiving services","billProcessed":"Bill processed","billProcessedSuccessfully":"Bill processed successfully","billProcessingError":"Bill processing error","billsTable":"Bills table","billTotal":"Bill total","billWaiver":"Bill waiver","billWaiverError":"Bill waiver failed {{error}}","billWaiverSuccess":"Bill waiver successful","birthDate":"Date of birth","cashPointConfig":"Cash point configuration","cashPointHistory":"Cash point history","cashPointLocation":"Cash point location","cashPointName":"Cash point name","cashPointNamePlaceholder":"For example, Pharmacy Cash Point","cashPointNameRequired":"Cash point name is required","cashPointSaved":"Cash point was successfully saved.","cashPointUuid":"Cash point UUID","cashPointUuidPlaceholder":"Enter UUID","checkFilters":"Check the filters above","childUnder5":"Child under 5","clearSearch":"Limpiar","confirmDeleteMessage":"Are you sure you want to delete this payment mode? Proceed cautiously.","cumulativeBills":"Cumulative bills","currentPrice":"Current price","date":"Fecha","dateAndTime":"Fecha y hora","dateOfPayment":"Date of payment","deleteConfirmation":"Are you sure you want to delete \\"{{itemName}}\\" from this bill?","deleteFailedTryAgain":"Unable to delete line item. Please try again.","deleteLineItem":"Delete line item","deletePaymentMode":"Delete payment mode","deleteReason":"Reason for deletion","deleteReasonPlaceholder":"Enter the reason for removing this line item from the bill","deleting":"Deleting","description":"Descripción","descriptionPlaceholder":"For example, Used for all cash transactions","discard":"Descartar","discount":"Descuento","editBillableService":"Editar servicios facturables","editBillLineItem":"Edit bill line item","editPaymentMode":"Edit payment mode","enterAmount":"Enter amount","enterReferenceNumber":"Enter reference number","enterSellingPrice":"Enter selling price","enterServiceName":"Enter service name","enterServiceShortName":"Enter service short name","errorCreatingBill":"An error occurred while creating the bill","errorDeletingPaymentMode":"An error occurred while deleting the payment mode.","errorFetchingCashPoints":"An error occurred while fetching cash points.","errorFetchingLocations":"An error occurred while fetching locations.","errorLoadingBillableServices":"Error loading billable services","errorLoadingBillServices":"Error loading bill services","errorLoadingPaymentModes":"Error loading payment modes","errorPrintingInvoice":"Error printing invoice","errorProcessingPayment":"Error processing payment","errorSavingCashPoint":"An error occurred while saving the cash point.","errorSavingPaymentMode":"An error occurred while saving the payment mode.","filterBillsByPatient":"Filter bills by patient name or identifier","filterBy":"Filter by:","filterTable":"Filter table","gender":"Gender","grandTotal":"Grand total","home":"Home","insuranceScheme":"Insurance scheme","invalidUuidFormat":"Invalid UUID format","invalidWaiverAmount":"Invalid waiver amount","inventoryItem":"Inventory item","invoice":"Invoice","invoiceDate":"Invoice date","invoiceError":"Invoice error","invoiceLineItems":"Invoice line items","invoiceNumber":"Invoice #","invoiceStatus":"Invoice status","invoiceSummary":"Invoice summary","item":"Item","itemsToBeBilled":"Items to be billed","lineItemDeleted":"Line item deleted","lineItemDeleteFailed":"Failed to delete line item","lineItemDeleteSuccess":"Bill line item deleted successfully","lineItems":"Line items","lineItemUpdated":"Line item updated","lineItemUpdateErrorDefault":"Unable to update the bill line item. Please try again.","lineItemUpdateFailed":"Failed to update line item","lineItemUpdateSuccess":"The bill line item has been updated successfully","loading":"Loading data","loadingBillInfo":"Loading bill information","loadingBillingServices":"Loading billing services","loadingBillItems":"Loading bill items","loadingBillMetrics":"Loading bill metrics","loadingDescription":"Loading","location":"Location","locationRequired":"Location is required","manageBillableServices":"Manage billable services","name":"Name","nextPage":"Next page","no":"No","noBillsToDisplay":"There are no bills to display.","noBillToDisplay":"There are no bills to display for this patient","noMatchingBillsToDisplay":"No matching bills to display","noMatchingItemsToDisplay":"No matching items to display","noMatchingServicesToDisplay":"No matching services to display","nonPaying":"Non paying","noResultsFor":"No results for {{searchTerm}}","number":"Number","ok":"OK","paidBills":"Paid bills","patientBill":"Patient bill","patientBillingAlert":"Patient billing alert","patientBills":"Patient bills","patientBillsDescription":"List of patient bills","patientCategory":"Patient category","patientIdentifier":"Patient identifier","patientInformation":"Patient information","patientName":"Patient name","paying":"Paying","paymentAmountCannotExceedAmountDue":"Payment amount cannot exceed amount due","paymentDetails":"Payment details","paymentHistory":"Payment History","paymentMethod":"Payment method","paymentMethodRequired":"Payment method is required for all items","paymentMode":"Payment mode","paymentModeDeleted":"Payment mode was successfully deleted.","paymentModeHistory":"Payment mode history","paymentModeNameLabel":"Payment mode name","paymentModeNamePlaceholder":"For example, Cash, Credit Card","paymentModeNameRequired":"Payment mode name is required","paymentModeNameToDelete":"Payment mode name: {{paymentModeName}}","paymentModeRequired":"Payment mode is required","paymentModeSaved":"Payment mode was successfully saved.","paymentModesConfig":"Payment modes configuration","paymentOptionRequired":"At least one payment option is required","paymentProcessedSuccessfully":"Payment processed successfully","payments":"Payments","pendingBills":"Pending bills","policyNumber":"Policy number","postWaiver":"Post waiver","previousPage":"Previous page","price":"Price","priceIsRequired":"Price is required","priceMustBeNumber":"Price must be a valid number","priceMustBePositive":"Price must be greater than 0","prices":"Prices","printBill":"Print bill","printReceipt":"Print receipt","processPayment":"Process payment","quantity":"Quantity","quantityCannotExceed100":"Quantity cannot exceed 100","quantityMustBeAtLeastOne":"Quantity must be at least 1","quantityMustBeInteger":"Quantity must be a whole number","quantityMustBeNumber":"Quantity must be a valid number","quantityRequired":"Quantity is required","referenceNumber":"Reference number","remove":"Remove","saveAndClose":"Save and close","saving":"Saving","searchConcepts":"Search associated concept","searchForPatient":"Search for a patient by name","searching":"Searching","searchItems":"Search items and services","searchThisTable":"Search this table","selectBillableService":"Select a billable service","selectedItems":"Selected items","selectLocation":"Select location","selectPatientCategory":"Select patient category","selectPaymentMethod":"Select payment method","selectPaymentMode":"Select payment mode","selectServiceType":"Select service type","sellingPrice":"Selling price","serviceList":"Service list","serviceName":"Service name","serviceNameExceedsLimit":"Service name cannot exceed {{MAX_NAME_LENGTH}} characters","serviceNameRequired":"Service name is required","servicesList":"Services list","serviceStatus":"Service status","serviceType":"Service type","serviceTypeRequired":"Service type is required","shortName":"Nombre corto","shortNameExceedsLimit":"Short name cannot exceed {{MAX_NAME_LENGTH}} characters","status":"Service status","student":"Student","submitting":"Submitting","success":"Éxito","total":"Total","totalAmount":"Total amount","totalPaid":"Total paid","totalTendered":"Total tendered","unitPrice":"Unit price","unitPriceHelperText":"This is the unit price for this item","uuid":"UUID","uuidRequired":"UUID is required","validationError":"Validation error","waiverForm":"Waiver form"}')}}]);
|
|
1
|
+
"use strict";(globalThis.webpackChunk_openmrs_esm_billing_app=globalThis.webpackChunk_openmrs_esm_billing_app||[]).push([[3099],{93099(e){e.exports=JSON.parse('{"add":"Agregar","addBillableService":"Add billable service","addBillItems":"Add bill items","addCashPoint":"Add cash point","addItemsToBill":"Add items to bill","addNewBillableService":"Add new billable service","addNewCashPoint":"Add new cash point","addNewPaymentMode":"Add new payment mode","addNewService":"Agregar nuevo servicio","addPaymentMode":"Add payment mode","addPaymentOption":"Add payment option","address":"Dirección","allBills":"All bills","amount":"Cantidad","amountBalance":"Amount balance","amountDue":"Amount due","amountMustBePositive":"Amount must be greater than 0","amountPaid":"Amount paid","amountRequired":"Amount is required","amountTendered":"Amount tendered","amountToWaiveAriaLabel":"Enter amount to waive","amountToWaiveHelper":"Specify the amount to be deducted from the bill","amountToWaiveLabel":"Amount to waive","associatedConcept":"Associated concept","balance":"Balance","billableService":"Billable service","billableServiceCreated":"Billable service created","billableServiceCreatedSuccessfully":"Billable service created successfully","billableServiceForm":"Billable service form","billableServices":"Billable services","billableServices__lower":"billable services","billableServicesManagement":"Billable services management","billableServiceUpdated":"Billable service updated","billableServiceUpdatedSuccessfully":"Billable service updated successfully","billAmount":"Bill amount","billCreatedSuccessfully":"Bill created successfully","billCreationError":"Bill creation error","billDate":"Bill date","billedItems":"Billed items","billErrorService":"Billing service error","billFinalized":"Bill finalized","billFinalizedSuccess":"Bill has been finalized successfully","billFinalizeFailed":"Failed to finalize bill","billing":"Facturación","billingHistory":"Billing history","billingSettings":"Billing settings","billItem":"Bill item","billItems":"Bill items","billLineItemEmpty":"This bill has no line items","billList":"Bill list","billMetrics":"Bill metrics","billName":"{{billName}}","billPayment":"Bill payment","billPaymentError":"Bill payment error","billPaymentRequiredMessage":"The current patient has a pending bill. Advise the patient to settle the bill before receiving services","billProcessed":"Bill processed","billProcessedSuccessfully":"Bill processed successfully","billProcessingError":"Bill processing error","billsTable":"Bills table","billTotal":"Bill total","billWaiver":"Bill waiver","billWaiverError":"Bill waiver failed {{error}}","billWaiverSuccess":"Bill waiver successful","birthDate":"Date of birth","cashPointConfig":"Cash point configuration","cashPointHistory":"Cash point history","cashPointLocation":"Cash point location","cashPointName":"Cash point name","cashPointNamePlaceholder":"For example, Pharmacy Cash Point","cashPointNameRequired":"Cash point name is required","cashPointSaved":"Cash point was successfully saved.","cashPointUuid":"Cash point UUID","cashPointUuidPlaceholder":"Enter UUID","checkFilters":"Check the filters above","childUnder5":"Child under 5","clearSearch":"Limpiar","confirmDeleteMessage":"Are you sure you want to delete this payment mode? Proceed cautiously.","createBill":"Create bill","cumulativeBills":"Cumulative bills","currentPrice":"Current price","date":"Fecha","dateAndTime":"Fecha y hora","dateOfPayment":"Date of payment","deleteConfirmation":"Are you sure you want to delete \\"{{itemName}}\\" from this bill?","deleteFailedTryAgain":"Unable to delete line item. Please try again.","deleteLineItem":"Delete line item","deletePaymentMode":"Delete payment mode","deleteReason":"Reason for deletion","deleteReasonPlaceholder":"Enter the reason for removing this line item from the bill","deleting":"Deleting","description":"Descripción","descriptionPlaceholder":"For example, Used for all cash transactions","discard":"Descartar","discount":"Descuento","editBillableService":"Editar servicios facturables","editBillLineItem":"Edit bill line item","editPaymentMode":"Edit payment mode","enterAmount":"Enter amount","enterReferenceNumber":"Enter reference number","enterSellingPrice":"Enter selling price","enterServiceName":"Enter service name","enterServiceShortName":"Enter service short name","errorCreatingBill":"An error occurred while creating the bill","errorDeletingPaymentMode":"An error occurred while deleting the payment mode.","errorFetchingCashPoints":"An error occurred while fetching cash points.","errorFetchingLocations":"An error occurred while fetching locations.","errorLoadingBill":"Error loading bill","errorLoadingBillableServices":"Error loading billable services","errorLoadingBillServices":"Error loading bill services","errorLoadingLastVisit":"An error occurred while loading the last visit","errorLoadingPaymentModes":"Error loading payment modes","errorPrintingInvoice":"Error printing invoice","errorProcessingPayment":"Error processing payment","errorSavingCashPoint":"An error occurred while saving the cash point.","errorSavingPaymentMode":"An error occurred while saving the payment mode.","existingItems":"Existing items","filterBillsByPatient":"Filter bills by patient name or identifier","filterBy":"Filter by:","filterTable":"Filter table","finalize":"Finalize","finalizeBill":"Finalize bill","finalizeBillConfirmation":"Are you sure you want to finalize this bill? Once finalized, no further modifications to the bill will be allowed.","finalizeFailedTryAgain":"Unable to finalize bill. Please try again.","finalizing":"Finalizing","gender":"Gender","grandTotal":"Grand total","home":"Home","insuranceScheme":"Insurance scheme","invalidUuidFormat":"Invalid UUID format","invalidWaiverAmount":"Invalid waiver amount","inventoryItem":"Inventory item","invoice":"Invoice","invoiceDate":"Invoice date","invoiceError":"Invoice error","invoiceLineItems":"Invoice line items","invoiceNumber":"Invoice #","invoiceStatus":"Invoice status","invoiceSummary":"Invoice summary","item":"Item","itemsAddedToBill":"Items added to bill","itemsAddedToBillSuccessfully":"Items have been added to the bill successfully","itemsToBeBilled":"Items to be billed","lastVisitError":"Last visit error","lastVisitInfo":"Last Visit Information","lastVisitMsg_one":"The last visit was a {{type}} {{count}} day ago at {{location}}","lastVisitMsg_other":"The last visit was a {{type}} {{count}} days ago at {{location}}","lineItemDeleted":"Line item deleted","lineItemDeleteFailed":"Failed to delete line item","lineItemDeleteSuccess":"Bill line item deleted successfully","lineItems":"Line items","lineItemUpdated":"Line item updated","lineItemUpdateErrorDefault":"Unable to update the bill line item. Please try again.","lineItemUpdateFailed":"Failed to update line item","lineItemUpdateSuccess":"The bill line item has been updated successfully","loading":"Loading data","loadingBillInfo":"Loading bill information","loadingBillingServices":"Loading billing services","loadingBillItems":"Loading bill items","loadingBillMetrics":"Loading bill metrics","loadingDescription":"Loading","location":"Location","locationRequired":"Location is required","manageBillableServices":"Manage billable services","name":"Name","newItems":"New items","nextPage":"Next page","no":"No","noBillsToDisplay":"There are no bills to display.","noBillToDisplay":"There are no bills to display for this patient","noMatchingBillsToDisplay":"No matching bills to display","noMatchingItemsToDisplay":"No matching items to display","noMatchingServicesToDisplay":"No matching services to display","nonPaying":"Non paying","nonPayingInfo":"Any services rendered to non-paying patients will not be billed","noResultsFor":"No results for {{searchTerm}}","number":"Number","ok":"OK","paidBills":"Paid bills","patientBill":"Patient bill","patientBillingAlert":"Patient billing alert","patientBills":"Patient bills","patientBillsDescription":"List of patient bills","patientCategory":"Patient category","patientIdentifier":"Patient identifier","patientInformation":"Patient information","patientName":"Patient name","paying":"Paying","paymentAmountCannotExceedAmountDue":"Payment amount cannot exceed amount due","paymentDetails":"Payment details","paymentHistory":"Payment History","paymentMethod":"Payment method","paymentMethodRequired":"Payment method is required for all items","paymentMode":"Payment mode","paymentModeDeleted":"Payment mode was successfully deleted.","paymentModeHistory":"Payment mode history","paymentModeNameLabel":"Payment mode name","paymentModeNamePlaceholder":"For example, Cash, Credit Card","paymentModeNameRequired":"Payment mode name is required","paymentModeNameToDelete":"Payment mode name: {{paymentModeName}}","paymentModeRequired":"Payment mode is required","paymentModeSaved":"Payment mode was successfully saved.","paymentModesConfig":"Payment modes configuration","paymentOptionRequired":"At least one payment option is required","paymentProcessedSuccessfully":"Payment processed successfully","payments":"Payments","pendingBills":"Pending bills","pendingConfirmationBills":"Pending confirmation","pendingPaymentBills":"Pending payment","policyNumber":"Policy number","postWaiver":"Post waiver","previousPage":"Previous page","price":"Price","priceIsRequired":"Price is required","priceMustBeNonNegative":"Price must be 0 or greater","priceMustBeNumber":"Price must be a valid number","priceMustBePositive":"Price must be greater than 0","prices":"Prices","printBill":"Print bill","printReceipt":"Print receipt","processPayment":"Process payment","quantity":"Quantity","quantityCannotExceed100":"Quantity cannot exceed 100","quantityMustBeAtLeastOne":"Quantity must be at least 1","quantityMustBeInteger":"Quantity must be a whole number","quantityMustBeNumber":"Quantity must be a valid number","quantityRequired":"Quantity is required","referenceNumber":"Reference number","remove":"Remove","saveAndClose":"Save and close","saving":"Saving","searchConcepts":"Search associated concept","searchForPatient":"Search for a patient by name","searching":"Searching","searchItems":"Search items and services","searchThisTable":"Search this table","selectBillableService":"Select a billable service","selectedItems":"Selected items","selectLocation":"Select location","selectPatientCategory":"Select patient category","selectPaymentMethod":"Select payment method","selectPaymentMode":"Select payment mode","selectServiceType":"Select service type","sellingPrice":"Selling price","serviceList":"Service list","serviceName":"Service name","serviceNameExceedsLimit":"Service name cannot exceed {{MAX_NAME_LENGTH}} characters","serviceNameRequired":"Service name is required","serviceResolutionError":"Could not resolve service \\"{{service}}\\"","servicesList":"Services list","serviceStatus":"Service status","serviceType":"Service type","serviceTypeRequired":"Service type is required","shortName":"Nombre corto","shortNameExceedsLimit":"Short name cannot exceed {{MAX_NAME_LENGTH}} characters","showInformation":"Show information","status":"Service status","student":"Student","submitting":"Submitting","subtotal":"Subtotal","success":"Éxito","total":"Total","totalAmount":"Total amount","totalPaid":"Total paid","totalTendered":"Total tendered","unitPrice":"Unit price","unitPriceHelperText":"This is the unit price for this item","unknownBillError":"An unexpected error occurred","uuid":"UUID","uuidRequired":"UUID is required","validationError":"Validation error","waiverForm":"Waiver form"}')}}]);
|
package/dist/3184.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see 3184.js.LICENSE.txt */
|
|
2
|
-
"use strict";(globalThis.webpackChunk_openmrs_esm_billing_app=globalThis.webpackChunk_openmrs_esm_billing_app||[]).push([[3184],{63184:(t,e,r)=>{r.r(e),r.d(e,{ArgumentOutOfRangeError:()=>xt,AsyncSubject:()=>it,BehaviorSubject:()=>Y,ConnectableObservable:()=>C,EMPTY:()=>L,EmptyError:()=>gt,GroupedObservable:()=>V,NEVER:()=>be,Notification:()=>$,NotificationKind:()=>B,ObjectUnsubscribedError:()=>I,Observable:()=>E,ReplaySubject:()=>rt,Scheduler:()=>q,Subject:()=>N,Subscriber:()=>v,Subscription:()=>p,TimeoutError:()=>Et,UnsubscriptionError:()=>f,VirtualAction:()=>mt,VirtualTimeScheduler:()=>yt,animationFrame:()=>vt,animationFrameScheduler:()=>bt,asap:()=>lt,asapScheduler:()=>at,async:()=>pt,asyncScheduler:()=>ft,bindCallback:()=>jt,bindNodeCallback:()=>kt,combineLatest:()=>Lt,concat:()=>ee,config:()=>u,defer:()=>re,empty:()=>W,forkJoin:()=>ne,from:()=>Gt,fromEvent:()=>oe,fromEventPattern:()=>ue,generate:()=>ce,identity:()=>_,iif:()=>ae,interval:()=>fe,isObservable:()=>_t,merge:()=>de,never:()=>ve,noop:()=>wt,observable:()=>w,of:()=>Q,onErrorResumeNext:()=>ye,pairs:()=>me,partition:()=>Se,pipe:()=>x,queue:()=>H,queueScheduler:()=>U,race:()=>Ie,range:()=>Ne,scheduled:()=>Bt,throwError:()=>X,timer:()=>ke,using:()=>Ce,zip:()=>Pe});var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},n(t,e)};function i(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function o(t){return"function"==typeof t}var s=!1,u={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack,s=t},get useDeprecatedSynchronousErrorHandling(){return s}};function c(t){setTimeout((function(){throw t}),0)}var h={closed:!0,next:function(t){},error:function(t){if(u.useDeprecatedSynchronousErrorHandling)throw t;c(t)},complete:function(){}},a=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}();function l(t){return null!==t&&"object"==typeof t}var f=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),p=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var e;if(!this.closed){var r=this,n=r._parentOrParents,i=r._ctorUnsubscribe,s=r._unsubscribe,u=r._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var c=0;c<n.length;++c)n[c].remove(this);if(o(s)){i&&(this._unsubscribe=void 0);try{s.call(this)}catch(t){e=t instanceof f?d(t.errors):[t]}}if(a(u)){c=-1;for(var h=u.length;++c<h;){var p=u[c];if(l(p))try{p.unsubscribe()}catch(t){e=e||[],t instanceof f?e=e.concat(d(t.errors)):e.push(t)}}}if(e)throw new f(e)}},t.prototype.add=function(e){var r=e;if(!e)return t.EMPTY;switch(typeof e){case"function":r=new t(e);case"object":if(r===this||r.closed||"function"!=typeof r.unsubscribe)return r;if(this.closed)return r.unsubscribe(),r;if(!(r instanceof t)){var n=r;(r=new t)._subscriptions=[n]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var i=r._parentOrParents;if(null===i)r._parentOrParents=this;else if(i instanceof t){if(i===this)return r;r._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return r;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[r]:o.push(r),r},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var r=e.indexOf(t);-1!==r&&e.splice(r,1)}},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();function d(t){return t.reduce((function(t,e){return t.concat(e instanceof f?e.errors:e)}),[])}var b=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),v=function(t){function e(r,n,i){var o=t.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=h;break;case 1:if(!r){o.destination=h;break}if("object"==typeof r){r instanceof e?(o.syncErrorThrowable=r.syncErrorThrowable,o.destination=r,r.add(o)):(o.syncErrorThrowable=!0,o.destination=new y(o,r));break}default:o.syncErrorThrowable=!0,o.destination=new y(o,r,n,i)}return o}return i(e,t),e.prototype[b]=function(){return this},e.create=function(t,r,n){var i=new e(t,r,n);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(p),y=function(t){function e(e,r,n,i){var s,u=t.call(this)||this;u._parentSubscriber=e;var c=u;return o(r)?s=r:r&&(s=r.next,n=r.error,i=r.complete,r!==h&&(o((c=Object.create(r)).unsubscribe)&&u.add(c.unsubscribe.bind(c)),c.unsubscribe=u.unsubscribe.bind(u))),u._context=c,u._next=s,u._error=n,u._complete=i,u}return i(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;u.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,r=u.useDeprecatedSynchronousErrorHandling;if(this._error)r&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)r?(e.syncErrorValue=t,e.syncErrorThrown=!0):c(t),this.unsubscribe();else{if(this.unsubscribe(),r)throw t;c(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var r=function(){return t._complete.call(t._context)};u.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,r),this.unsubscribe()):(this.__tryOrUnsub(r),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),u.useDeprecatedSynchronousErrorHandling)throw t;c(t)}},e.prototype.__tryOrSetError=function(t,e,r){if(!u.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,r)}catch(e){return u.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(c(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(v);function m(t){for(;t;){var e=t,r=e.closed,n=e.destination,i=e.isStopped;if(r||i)return!1;t=n&&n instanceof v?n:null}return!0}var w=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function _(t){return t}function x(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return g(t)}function g(t){return 0===t.length?_:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var E=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n=this.operator,i=function(t,e,r){if(t){if(t instanceof v)return t;if(t[b])return t[b]()}return t||e||r?new v(t,e,r):new v(h)}(t,e,r);if(n?i.add(n.call(i,this.source)):i.add(this.source||u.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),u.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){u.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),m(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=S(e))((function(e,n){var i;i=r.subscribe((function(e){try{t(e)}catch(t){n(t),i&&i.unsubscribe()}}),n,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[w]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:g(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=S(t))((function(t,r){var n;e.subscribe((function(t){return n=t}),(function(t){return r(t)}),(function(){return t(n)}))}))},t.create=function(e){return new t(e)},t}();function S(t){if(t||(t=u.Promise||Promise),!t)throw new Error("no Promise impl found");return t}var I=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}(),T=function(t){function e(e,r){var n=t.call(this)||this;return n.subject=e,n.subscriber=r,n.closed=!1,n}return i(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var r=e.indexOf(this.subscriber);-1!==r&&e.splice(r,1)}}},e}(p),j=function(t){function e(e){var r=t.call(this,e)||this;return r.destination=e,r}return i(e,t),e}(v),N=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return i(e,t),e.prototype[b]=function(){return new j(this)},e.prototype.lift=function(t){var e=new O(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new I;if(!this.isStopped)for(var e=this.observers,r=e.length,n=e.slice(),i=0;i<r;i++)n[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new I;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,r=e.length,n=e.slice(),i=0;i<r;i++)n[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new I;this.isStopped=!0;for(var t=this.observers,e=t.length,r=t.slice(),n=0;n<e;n++)r[n].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new I;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new I;return this.hasError?(t.error(this.thrownError),p.EMPTY):this.isStopped?(t.complete(),p.EMPTY):(this.observers.push(t),new T(this,t))},e.prototype.asObservable=function(){var t=new E;return t.source=this,t},e.create=function(t,e){return new O(t,e)},e}(E),O=function(t){function e(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return i(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):p.EMPTY},e}(N),k=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var r=this.connectable;r._refCount++;var n=new A(t,r),i=e.subscribe(n);return n.closed||(n.connection=r.connect()),i},t}(),A=function(t){function e(e,r){var n=t.call(this,e)||this;return n.connectable=r,n}return i(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var r=this.connection,n=t._connection;this.connection=null,!n||r&&n!==r||n.unsubscribe()}}else this.connection=null},e}(v),C=function(t){function e(e,r){var n=t.call(this)||this;return n.source=e,n.subjectFactory=r,n._refCount=0,n._isComplete=!1,n}return i(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new p).add(this.source.subscribe(new P(this.getSubject(),this))),t.closed&&(this._connection=null,t=p.EMPTY)),t},e.prototype.refCount=function(){return(t=this).lift(new k(t));var t},e}(E),P=function(t){function e(e,r){var n=t.call(this,e)||this;return n.connectable=r,n}return i(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(j),V=function(t){function e(e,r,n){var i=t.call(this)||this;return i.key=e,i.groupSubject=r,i.refCountSubscription=n,i}return i(e,t),e.prototype._subscribe=function(t){var e=new p,r=this.refCountSubscription,n=this.groupSubject;return r&&!r.closed&&e.add(new F(r)),e.add(n.subscribe(t)),e},e}(E),F=function(t){function e(e){var r=t.call(this)||this;return r.parent=e,e.count++,r}return i(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(p),Y=function(t){function e(e){var r=t.call(this)||this;return r._value=e,r}return i(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var r=t.prototype._subscribe.call(this,e);return r&&!r.closed&&e.next(this._value),r},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new I;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(N),M=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n.pending=!1,n}return i(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var r=this.id,n=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(n,r,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this},e.prototype.requestAsyncId=function(t,e,r){return void 0===r&&(r=0),setInterval(t.flush.bind(t,this),r)},e.prototype.recycleAsyncId=function(t,e,r){if(void 0===r&&(r=0),null!==r&&this.delay===r&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(t,e);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var r=!1,n=void 0;try{this.work(t)}catch(t){r=!0,n=!!t&&t||new Error(t)}if(r)return this.unsubscribe(),n},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,r=e.actions,n=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&r.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,r){return t.call(this)||this}return i(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(p)),R=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n}return i(e,t),e.prototype.schedule=function(e,r){return void 0===r&&(r=0),r>0?t.prototype.schedule.call(this,e,r):(this.delay=r,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,r){return r>0||this.closed?t.prototype.execute.call(this,e,r):this._execute(e,r)},e.prototype.requestAsyncId=function(e,r,n){return void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0?t.prototype.requestAsyncId.call(this,e,r,n):e.flush(this)},e}(M),q=function(){function t(e,r){void 0===r&&(r=t.now),this.SchedulerAction=e,this.now=r}return t.prototype.schedule=function(t,e,r){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(r,e)},t.now=function(){return Date.now()},t}(),D=function(t){function e(r,n){void 0===n&&(n=q.now);var i=t.call(this,r,(function(){return e.delegate&&e.delegate!==i?e.delegate.now():n()}))||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return i(e,t),e.prototype.schedule=function(r,n,i){return void 0===n&&(n=0),e.delegate&&e.delegate!==this?e.delegate.schedule(r,n,i):t.prototype.schedule.call(this,r,n,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var r;this.active=!0;do{if(r=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,r){for(;t=e.shift();)t.unsubscribe();throw r}}},e}(q),U=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(D))(R),H=U,L=new E((function(t){return t.complete()}));function W(t){return t?function(t){return new E((function(e){return t.schedule((function(){return e.complete()}))}))}(t):L}function z(t){return t&&"function"==typeof t.schedule}var B,G=function(t){return function(e){for(var r=0,n=t.length;r<n&&!e.closed;r++)e.next(t[r]);e.complete()}};function J(t,e){return new E((function(r){var n=new p,i=0;return n.add(e.schedule((function(){i!==t.length?(r.next(t[i++]),r.closed||n.add(this.schedule())):r.complete()}))),n}))}function K(t,e){return e?J(t,e):new E(G(t))}function Q(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t[t.length-1];return z(r)?(t.pop(),J(t,r)):K(t)}function X(t,e){return new E(e?function(r){return e.schedule(Z,0,{error:t,subscriber:r})}:function(e){return e.error(t)})}function Z(t){var e=t.error;t.subscriber.error(e)}B||(B={});var $=function(){function t(t,e,r){this.kind=t,this.value=e,this.error=r,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,r){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return r&&r()}},t.prototype.accept=function(t,e,r){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,r)},t.prototype.toObservable=function(){switch(this.kind){case"N":return Q(this.value);case"E":return X(this.error);case"C":return W()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}(),tt=function(t){function e(e,r,n){void 0===n&&(n=0);var i=t.call(this,e)||this;return i.scheduler=r,i.delay=n,i}return i(e,t),e.dispatch=function(t){var e=t.notification,r=t.destination;e.observe(r),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new et(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage($.createNext(t))},e.prototype._error=function(t){this.scheduleMessage($.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage($.createComplete()),this.unsubscribe()},e}(v),et=function(){return function(t,e){this.notification=t,this.destination=e}}(),rt=function(t){function e(e,r,n){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this)||this;return i.scheduler=n,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=e<1?1:e,i._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return i(e,t),e.prototype.nextInfiniteTimeWindow=function(e){if(!this.isStopped){var r=this._events;r.push(e),r.length>this._bufferSize&&r.shift()}t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this.isStopped||(this._events.push(new nt(this._getNow(),e)),this._trimBufferThenGetEvents()),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,r=this._infiniteTimeWindow,n=r?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=n.length;if(this.closed)throw new I;if(this.isStopped||this.hasError?e=p.EMPTY:(this.observers.push(t),e=new T(this,t)),i&&t.add(t=new tt(t,i)),r)for(var s=0;s<o&&!t.closed;s++)t.next(n[s]);else for(s=0;s<o&&!t.closed;s++)t.next(n[s].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||H).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,r=this._windowTime,n=this._events,i=n.length,o=0;o<i&&!(t-n[o].time<r);)o++;return i>e&&(o=Math.max(o,i-e)),o>0&&n.splice(0,o),n},e}(N),nt=function(){return function(t,e){this.time=t,this.value=e}}(),it=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=null,e.hasNext=!1,e.hasCompleted=!1,e}return i(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),p.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),p.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)},e}(N),ot=1,st=function(){return Promise.resolve()}(),ut={};function ct(t){return t in ut&&(delete ut[t],!0)}var ht=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n}return i(e,t),e.prototype.requestAsyncId=function(e,r,n){return void 0===n&&(n=0),null!==n&&n>0?t.prototype.requestAsyncId.call(this,e,r,n):(e.actions.push(this),e.scheduled||(e.scheduled=(i=e.flush.bind(e,null),o=ot++,ut[o]=!0,st.then((function(){return ct(o)&&i()})),o)));var i,o},e.prototype.recycleAsyncId=function(e,r,n){if(void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,r,n);0===e.actions.length&&(ct(r),e.scheduled=void 0)},e}(M),at=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,r=this.actions,n=-1,i=r.length;t=t||r.shift();do{if(e=t.execute(t.state,t.delay))break}while(++n<i&&(t=r.shift()));if(this.active=!1,e){for(;++n<i&&(t=r.shift());)t.unsubscribe();throw e}},e}(D))(ht),lt=at,ft=new D(M),pt=ft,dt=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n}return i(e,t),e.prototype.requestAsyncId=function(e,r,n){return void 0===n&&(n=0),null!==n&&n>0?t.prototype.requestAsyncId.call(this,e,r,n):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame((function(){return e.flush(null)}))))},e.prototype.recycleAsyncId=function(e,r,n){if(void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,r,n);0===e.actions.length&&(cancelAnimationFrame(r),e.scheduled=void 0)},e}(M),bt=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,r=this.actions,n=-1,i=r.length;t=t||r.shift();do{if(e=t.execute(t.state,t.delay))break}while(++n<i&&(t=r.shift()));if(this.active=!1,e){for(;++n<i&&(t=r.shift());)t.unsubscribe();throw e}},e}(D))(dt),vt=bt,yt=function(t){function e(e,r){void 0===e&&(e=mt),void 0===r&&(r=Number.POSITIVE_INFINITY);var n=t.call(this,e,(function(){return n.frame}))||this;return n.maxFrames=r,n.frame=0,n.index=-1,n}return i(e,t),e.prototype.flush=function(){for(var t,e,r=this.actions,n=this.maxFrames;(e=r[0])&&e.delay<=n&&(r.shift(),this.frame=e.delay,!(t=e.execute(e.state,e.delay))););if(t){for(;e=r.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10,e}(D),mt=function(t){function e(e,r,n){void 0===n&&(n=e.index+=1);var i=t.call(this,e,r)||this;return i.scheduler=e,i.work=r,i.index=n,i.active=!0,i.index=e.index=n,i}return i(e,t),e.prototype.schedule=function(r,n){if(void 0===n&&(n=0),!this.id)return t.prototype.schedule.call(this,r,n);this.active=!1;var i=new e(this.scheduler,this.work);return this.add(i),i.schedule(r,n)},e.prototype.requestAsyncId=function(t,r,n){void 0===n&&(n=0),this.delay=t.frame+n;var i=t.actions;return i.push(this),i.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,e,r){void 0===r&&(r=0)},e.prototype._execute=function(e,r){if(!0===this.active)return t.prototype._execute.call(this,e,r)},e.sortActions=function(t,e){return t.delay===e.delay?t.index===e.index?0:t.index>e.index?1:-1:t.delay>e.delay?1:-1},e}(M);function wt(){}function _t(t){return!!t&&(t instanceof E||"function"==typeof t.lift&&"function"==typeof t.subscribe)}var xt=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}(),gt=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}(),Et=function(){function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t}();function St(t,e){return function(r){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new It(t,e))}}var It=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new Tt(t,this.project,this.thisArg))},t}(),Tt=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.project=r,i.count=0,i.thisArg=n||i,i}return i(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(v);function jt(t,e,r){if(e){if(!z(e))return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return jt(t,r).apply(void 0,n).pipe(St((function(t){return a(t)?e.apply(void 0,t):e(t)})))};r=e}return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i,o=this,s={context:o,subject:i,callbackFunc:t,scheduler:r};return new E((function(n){if(r){var u={args:e,subscriber:n,params:s};return r.schedule(Nt,0,u)}if(!i){i=new it;try{t.apply(o,e.concat([function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];i.next(t.length<=1?t[0]:t),i.complete()}]))}catch(t){m(i)?i.error(t):console.warn(t)}}return i.subscribe(n)}))}}function Nt(t){var e=this,r=t.args,n=t.subscriber,i=t.params,o=i.callbackFunc,s=i.context,u=i.scheduler,c=i.subject;if(!c){c=i.subject=new it;try{o.apply(s,r.concat([function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=t.length<=1?t[0]:t;e.add(u.schedule(Ot,0,{value:n,subject:c}))}]))}catch(t){c.error(t)}}this.add(c.subscribe(n))}function Ot(t){var e=t.value,r=t.subject;r.next(e),r.complete()}function kt(t,e,r){if(e){if(!z(e))return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return kt(t,r).apply(void 0,n).pipe(St((function(t){return a(t)?e.apply(void 0,t):e(t)})))};r=e}return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i={subject:void 0,args:e,callbackFunc:t,scheduler:r,context:this};return new E((function(n){var o=i.context,s=i.subject;if(r)return r.schedule(At,0,{params:i,subscriber:n,context:o});if(!s){s=i.subject=new it;try{t.apply(o,e.concat([function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t.shift();r?s.error(r):(s.next(t.length<=1?t[0]:t),s.complete())}]))}catch(t){m(s)?s.error(t):console.warn(t)}}return s.subscribe(n)}))}}function At(t){var e=this,r=t.params,n=t.subscriber,i=t.context,o=r.callbackFunc,s=r.args,u=r.scheduler,c=r.subject;if(!c){c=r.subject=new it;try{o.apply(i,s.concat([function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=t.shift();if(n)e.add(u.schedule(Pt,0,{err:n,subject:c}));else{var i=t.length<=1?t[0]:t;e.add(u.schedule(Ct,0,{value:i,subject:c}))}}]))}catch(t){this.add(u.schedule(Pt,0,{err:t,subject:c}))}}this.add(c.subscribe(n))}function Ct(t){var e=t.value,r=t.subject;r.next(e),r.complete()}function Pt(t){var e=t.err;t.subject.error(e)}var Vt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.notifyNext=function(t,e,r,n,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(v),Ft=function(t){function e(e,r,n){var i=t.call(this)||this;return i.parent=e,i.outerValue=r,i.outerIndex=n,i.index=0,i}return i(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(v);function Yt(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var Mt=Yt(),Rt=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function qt(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var Dt=function(t){if(t&&"function"==typeof t[w])return n=t,function(t){var e=n[w]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Rt(t))return G(t);if(qt(t))return r=t,function(t){return r.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,c),t};if(t&&"function"==typeof t[Mt])return e=t,function(t){for(var r=e[Mt]();;){var n=void 0;try{n=r.next()}catch(e){return t.error(e),t}if(n.done){t.complete();break}if(t.next(n.value),t.closed)break}return"function"==typeof r.return&&t.add((function(){r.return&&r.return()})),t};var e,r,n,i=l(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+i+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function Ut(t,e,r,n,i){if(void 0===i&&(i=new Ft(t,r,n)),!i.closed)return e instanceof E?e.subscribe(i):Dt(e)(i)}var Ht={};function Lt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=void 0,n=void 0;return z(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&a(t[0])&&(t=t[0]),K(t,n).lift(new Wt(r))}var Wt=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new zt(t,this.resultSelector))},t}(),zt=function(t){function e(e,r){var n=t.call(this,e)||this;return n.resultSelector=r,n.active=0,n.values=[],n.observables=[],n}return i(e,t),e.prototype._next=function(t){this.values.push(Ht),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var r=0;r<e;r++){var n=t[r];this.add(Ut(this,n,void 0,r))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,r){var n=this.values,i=n[r],o=this.toRespond?i===Ht?--this.toRespond:this.toRespond:0;n[r]=e,0===o&&(this.resultSelector?this._tryResultSelector(n):this.destination.next(n.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(Vt);function Bt(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[w]}(t))return function(t,e){return new E((function(r){var n=new p;return n.add(e.schedule((function(){var i=t[w]();n.add(i.subscribe({next:function(t){n.add(e.schedule((function(){return r.next(t)})))},error:function(t){n.add(e.schedule((function(){return r.error(t)})))},complete:function(){n.add(e.schedule((function(){return r.complete()})))}}))}))),n}))}(t,e);if(qt(t))return function(t,e){return new E((function(r){var n=new p;return n.add(e.schedule((function(){return t.then((function(t){n.add(e.schedule((function(){r.next(t),n.add(e.schedule((function(){return r.complete()})))})))}),(function(t){n.add(e.schedule((function(){return r.error(t)})))}))}))),n}))}(t,e);if(Rt(t))return J(t,e);if(function(t){return t&&"function"==typeof t[Mt]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new E((function(r){var n,i=new p;return i.add((function(){n&&"function"==typeof n.return&&n.return()})),i.add(e.schedule((function(){n=t[Mt](),i.add(e.schedule((function(){if(!r.closed){var t,e;try{var i=n.next();t=i.value,e=i.done}catch(t){return void r.error(t)}e?r.complete():(r.next(t),this.schedule())}})))}))),i}))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function Gt(t,e){return e?Bt(t,e):t instanceof E?t:new E(Dt(t))}var Jt=function(t){function e(e){var r=t.call(this)||this;return r.parent=e,r}return i(e,t),e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(v),Kt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(v);function Qt(t,e){if(!e.closed){if(t instanceof E)return t.subscribe(e);var r;try{r=Dt(t)(e)}catch(t){e.error(t)}return r}}function Xt(t,e,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"function"==typeof e?function(n){return n.pipe(Xt((function(r,n){return Gt(t(r,n)).pipe(St((function(t,i){return e(r,t,n,i)})))}),r))}:("number"==typeof e&&(r=e),function(e){return e.lift(new Zt(t,r))})}var Zt=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new $t(t,this.project,this.concurrent))},t}(),$t=function(t){function e(e,r,n){void 0===n&&(n=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=r,i.concurrent=n,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return i(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,r=this.index++;try{e=this.project(t,r)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e)},e.prototype._innerSub=function(t){var e=new Jt(this),r=this.destination;r.add(e);var n=Qt(t,e);n!==e&&r.add(n)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(Kt);function te(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Xt(_,t)}function ee(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return te(1)(Q.apply(void 0,t))}function re(t){return new E((function(e){var r;try{r=t()}catch(t){return void e.error(t)}return(r?Gt(r):W()).subscribe(e)}))}function ne(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){var r=t[0];if(a(r))return ie(r,null);if(l(r)&&Object.getPrototypeOf(r)===Object.prototype){var n=Object.keys(r);return ie(n.map((function(t){return r[t]})),n)}}if("function"==typeof t[t.length-1]){var i=t.pop();return ie(t=1===t.length&&a(t[0])?t[0]:t,null).pipe(St((function(t){return i.apply(void 0,t)})))}return ie(t,null)}function ie(t,e){return new E((function(r){var n=t.length;if(0!==n)for(var i=new Array(n),o=0,s=0,u=function(u){var c=Gt(t[u]),h=!1;r.add(c.subscribe({next:function(t){h||(h=!0,s++),i[u]=t},error:function(t){return r.error(t)},complete:function(){++o!==n&&h||(s===n&&r.next(e?e.reduce((function(t,e,r){return t[e]=i[r],t}),{}):i),r.complete())}}))},c=0;c<n;c++)u(c);else r.complete()}))}function oe(t,e,r,n){return o(r)&&(n=r,r=void 0),n?oe(t,e,r).pipe(St((function(t){return a(t)?n.apply(void 0,t):n(t)}))):new E((function(n){se(t,e,(function(t){arguments.length>1?n.next(Array.prototype.slice.call(arguments)):n.next(t)}),n,r)}))}function se(t,e,r,n,i){var o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){var s=t;t.addEventListener(e,r,i),o=function(){return s.removeEventListener(e,r,i)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){var u=t;t.on(e,r),o=function(){return u.off(e,r)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){var c=t;t.addListener(e,r),o=function(){return c.removeListener(e,r)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var h=0,a=t.length;h<a;h++)se(t[h],e,r,n,i)}n.add(o)}function ue(t,e,r){return r?ue(t,e).pipe(St((function(t){return a(t)?r.apply(void 0,t):r(t)}))):new E((function(r){var n,i=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r.next(1===t.length?t[0]:t)};try{n=t(i)}catch(t){return void r.error(t)}if(o(e))return function(){return e(i,n)}}))}function ce(t,e,r,n,i){var o,s;if(1==arguments.length){var u=t;s=u.initialState,e=u.condition,r=u.iterate,o=u.resultSelector||_,i=u.scheduler}else void 0===n||z(n)?(s=t,o=_,i=n):(s=t,o=n);return new E((function(t){var n=s;if(i)return i.schedule(he,0,{subscriber:t,iterate:r,condition:e,resultSelector:o,state:n});for(;;){if(e){var u=void 0;try{u=e(n)}catch(e){return void t.error(e)}if(!u){t.complete();break}}var c=void 0;try{c=o(n)}catch(e){return void t.error(e)}if(t.next(c),t.closed)break;try{n=r(n)}catch(e){return void t.error(e)}}}))}function he(t){var e=t.subscriber,r=t.condition;if(!e.closed){if(t.needIterate)try{t.state=t.iterate(t.state)}catch(t){return void e.error(t)}else t.needIterate=!0;if(r){var n=void 0;try{n=r(t.state)}catch(t){return void e.error(t)}if(!n)return void e.complete();if(e.closed)return}var i;try{i=t.resultSelector(t.state)}catch(t){return void e.error(t)}if(!e.closed&&(e.next(i),!e.closed))return this.schedule(t)}}function ae(t,e,r){return void 0===e&&(e=L),void 0===r&&(r=L),re((function(){return t()?e:r}))}function le(t){return!a(t)&&t-parseFloat(t)+1>=0}function fe(t,e){return void 0===t&&(t=0),void 0===e&&(e=pt),(!le(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=pt),new E((function(r){return r.add(e.schedule(pe,t,{subscriber:r,counter:0,period:t})),r}))}function pe(t){var e=t.subscriber,r=t.counter,n=t.period;e.next(r),this.schedule({subscriber:e,counter:r+1,period:n},n)}function de(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Number.POSITIVE_INFINITY,n=null,i=t[t.length-1];return z(i)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(r=t.pop())):"number"==typeof i&&(r=t.pop()),null===n&&1===t.length&&t[0]instanceof E?t[0]:te(r)(K(t,n))}var be=new E(wt);function ve(){return be}function ye(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(0===t.length)return L;var r=t[0],n=t.slice(1);return 1===t.length&&a(r)?ye.apply(void 0,r):new E((function(t){var e=function(){return t.add(ye.apply(void 0,n).subscribe(t))};return Gt(r).subscribe({next:function(e){t.next(e)},error:e,complete:e})}))}function me(t,e){return new E(e?function(r){var n=Object.keys(t),i=new p;return i.add(e.schedule(we,0,{keys:n,index:0,subscriber:r,subscription:i,obj:t})),i}:function(e){for(var r=Object.keys(t),n=0;n<r.length&&!e.closed;n++){var i=r[n];t.hasOwnProperty(i)&&e.next([i,t[i]])}e.complete()})}function we(t){var e=t.keys,r=t.index,n=t.subscriber,i=t.subscription,o=t.obj;if(!n.closed)if(r<e.length){var s=e[r];n.next([s,o[s]]),i.add(this.schedule({keys:e,index:r+1,subscriber:n,subscription:i,obj:o}))}else n.complete()}function _e(t,e){function r(){return!r.pred.apply(r.thisArg,arguments)}return r.pred=t,r.thisArg=e,r}function xe(t,e){return function(r){return r.lift(new ge(t,e))}}var ge=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new Ee(t,this.predicate,this.thisArg))},t}(),Ee=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.predicate=r,i.thisArg=n,i.count=0,i}return i(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(v);function Se(t,e,r){return[xe(e,r)(new E(Dt(t))),xe(_e(e,r))(new E(Dt(t)))]}function Ie(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){if(!a(t[0]))return t[0];t=t[0]}return K(t,void 0).lift(new Te)}var Te=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new je(t))},t}(),je=function(t){function e(e){var r=t.call(this,e)||this;return r.hasFirst=!1,r.observables=[],r.subscriptions=[],r}return i(e,t),e.prototype._next=function(t){this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(var r=0;r<e&&!this.hasFirst;r++){var n=Ut(this,t[r],void 0,r);this.subscriptions&&this.subscriptions.push(n),this.add(n)}this.observables=null}},e.prototype.notifyNext=function(t,e,r){if(!this.hasFirst){this.hasFirst=!0;for(var n=0;n<this.subscriptions.length;n++)if(n!==r){var i=this.subscriptions[n];i.unsubscribe(),this.remove(i)}this.subscriptions=null}this.destination.next(e)},e}(Vt);function Ne(t,e,r){return void 0===t&&(t=0),new E((function(n){void 0===e&&(e=t,t=0);var i=0,o=t;if(r)return r.schedule(Oe,0,{index:i,count:e,start:t,subscriber:n});for(;;){if(i++>=e){n.complete();break}if(n.next(o++),n.closed)break}}))}function Oe(t){var e=t.start,r=t.index,n=t.count,i=t.subscriber;r>=n?i.complete():(i.next(e),i.closed||(t.index=r+1,t.start=e+1,this.schedule(t)))}function ke(t,e,r){void 0===t&&(t=0);var n=-1;return le(e)?n=Number(e)<1?1:Number(e):z(e)&&(r=e),z(r)||(r=pt),new E((function(e){var i=le(t)?t:+t-r.now();return r.schedule(Ae,i,{index:0,period:n,subscriber:e})}))}function Ae(t){var e=t.index,r=t.period,n=t.subscriber;if(n.next(e),!n.closed){if(-1===r)return n.complete();t.index=e+1,this.schedule(t,r)}}function Ce(t,e){return new E((function(r){var n,i;try{n=t()}catch(t){return void r.error(t)}try{i=e(n)}catch(t){return void r.error(t)}var o=(i?Gt(i):L).subscribe(r);return function(){o.unsubscribe(),n&&n.unsubscribe()}}))}function Pe(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t[t.length-1];return"function"==typeof r&&t.pop(),K(t,void 0).lift(new Ve(r))}var Ve=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new Fe(t,this.resultSelector))},t}(),Fe=function(t){function e(e,r,n){void 0===n&&(n=Object.create(null));var i=t.call(this,e)||this;return i.resultSelector=r,i.iterators=[],i.active=0,i.resultSelector="function"==typeof r?r:void 0,i}return i(e,t),e.prototype._next=function(t){var e=this.iterators;a(t)?e.push(new Me(t)):"function"==typeof t[Mt]?e.push(new Ye(t[Mt]())):e.push(new Re(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(this.unsubscribe(),0!==e){this.active=e;for(var r=0;r<e;r++){var n=t[r];n.stillUnsubscribed?this.destination.add(n.subscribe()):this.active--}}else this.destination.complete()},e.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},e.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,r=this.destination,n=0;n<e;n++)if("function"==typeof(s=t[n]).hasValue&&!s.hasValue())return;var i=!1,o=[];for(n=0;n<e;n++){var s,u=(s=t[n]).next();if(s.hasCompleted()&&(i=!0),u.done)return void r.complete();o.push(u.value)}this.resultSelector?this._tryresultSelector(o):r.next(o),i&&r.complete()},e.prototype._tryresultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(v),Ye=function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return Boolean(t&&t.done)},t}(),Me=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[Mt]=function(){return this},t.prototype.next=function(t){var e=this.index++,r=this.array;return e<this.length?{value:r[e],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),Re=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.parent=r,i.observable=n,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return i(e,t),e.prototype[Mt]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t){this.buffer.push(t),this.parent.checkIterators()},e.prototype.subscribe=function(){return Qt(this.observable,new Jt(this))},e}(Kt)}}]);
|
|
2
|
+
"use strict";(globalThis.webpackChunk_openmrs_esm_billing_app=globalThis.webpackChunk_openmrs_esm_billing_app||[]).push([[3184],{63184(t,e,r){r.r(e),r.d(e,{ArgumentOutOfRangeError:()=>St,AsyncSubject:()=>ot,BehaviorSubject:()=>Y,ConnectableObservable:()=>C,EMPTY:()=>W,EmptyError:()=>It,GroupedObservable:()=>V,NEVER:()=>me,Notification:()=>tt,NotificationKind:()=>G,ObjectUnsubscribedError:()=>I,Observable:()=>E,ReplaySubject:()=>nt,Scheduler:()=>q,Subject:()=>N,Subscriber:()=>v,Subscription:()=>p,TimeoutError:()=>Tt,UnsubscriptionError:()=>f,VirtualAction:()=>xt,VirtualTimeScheduler:()=>_t,animationFrame:()=>wt,animationFrameScheduler:()=>mt,asap:()=>pt,asapScheduler:()=>ft,async:()=>bt,asyncScheduler:()=>dt,bindCallback:()=>kt,bindNodeCallback:()=>Pt,combineLatest:()=>Bt,concat:()=>ie,config:()=>u,defer:()=>oe,empty:()=>z,forkJoin:()=>se,from:()=>Qt,fromEvent:()=>ce,fromEventPattern:()=>ae,generate:()=>le,identity:()=>_,iif:()=>pe,interval:()=>be,isObservable:()=>Et,merge:()=>ye,never:()=>we,noop:()=>gt,observable:()=>w,of:()=>X,onErrorResumeNext:()=>_e,pairs:()=>xe,partition:()=>je,pipe:()=>x,queue:()=>L,queueScheduler:()=>H,race:()=>Ne,range:()=>Ae,scheduled:()=>Kt,throwError:()=>Z,timer:()=>Pe,using:()=>Fe,zip:()=>Ye});var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},n(t,e)};function i(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function o(t){return"function"==typeof t}var s=!1,u={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack,s=t},get useDeprecatedSynchronousErrorHandling(){return s}};function c(t){setTimeout((function(){throw t}),0)}var h={closed:!0,next:function(t){},error:function(t){if(u.useDeprecatedSynchronousErrorHandling)throw t;c(t)},complete:function(){}},a=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}();function l(t){return null!==t&&"object"==typeof t}var f=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),p=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var e;if(!this.closed){var r=this,n=r._parentOrParents,i=r._ctorUnsubscribe,s=r._unsubscribe,u=r._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var c=0;c<n.length;++c)n[c].remove(this);if(o(s)){i&&(this._unsubscribe=void 0);try{s.call(this)}catch(t){e=t instanceof f?d(t.errors):[t]}}if(a(u)){c=-1;for(var h=u.length;++c<h;){var p=u[c];if(l(p))try{p.unsubscribe()}catch(t){e=e||[],t instanceof f?e=e.concat(d(t.errors)):e.push(t)}}}if(e)throw new f(e)}},t.prototype.add=function(e){var r=e;if(!e)return t.EMPTY;switch(typeof e){case"function":r=new t(e);case"object":if(r===this||r.closed||"function"!=typeof r.unsubscribe)return r;if(this.closed)return r.unsubscribe(),r;if(!(r instanceof t)){var n=r;(r=new t)._subscriptions=[n]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var i=r._parentOrParents;if(null===i)r._parentOrParents=this;else if(i instanceof t){if(i===this)return r;r._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return r;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[r]:o.push(r),r},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var r=e.indexOf(t);-1!==r&&e.splice(r,1)}},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();function d(t){return t.reduce((function(t,e){return t.concat(e instanceof f?e.errors:e)}),[])}var b=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),v=function(t){function e(r,n,i){var o=t.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=h;break;case 1:if(!r){o.destination=h;break}if("object"==typeof r){r instanceof e?(o.syncErrorThrowable=r.syncErrorThrowable,o.destination=r,r.add(o)):(o.syncErrorThrowable=!0,o.destination=new y(o,r));break}default:o.syncErrorThrowable=!0,o.destination=new y(o,r,n,i)}return o}return i(e,t),e.prototype[b]=function(){return this},e.create=function(t,r,n){var i=new e(t,r,n);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(p),y=function(t){function e(e,r,n,i){var s,u=t.call(this)||this;u._parentSubscriber=e;var c=u;return o(r)?s=r:r&&(s=r.next,n=r.error,i=r.complete,r!==h&&(o((c=Object.create(r)).unsubscribe)&&u.add(c.unsubscribe.bind(c)),c.unsubscribe=u.unsubscribe.bind(u))),u._context=c,u._next=s,u._error=n,u._complete=i,u}return i(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;u.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,r=u.useDeprecatedSynchronousErrorHandling;if(this._error)r&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)r?(e.syncErrorValue=t,e.syncErrorThrown=!0):c(t),this.unsubscribe();else{if(this.unsubscribe(),r)throw t;c(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var r=function(){return t._complete.call(t._context)};u.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,r),this.unsubscribe()):(this.__tryOrUnsub(r),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),u.useDeprecatedSynchronousErrorHandling)throw t;c(t)}},e.prototype.__tryOrSetError=function(t,e,r){if(!u.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,r)}catch(e){return u.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(c(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(v);function m(t){for(;t;){var e=t,r=e.closed,n=e.destination,i=e.isStopped;if(r||i)return!1;t=n&&n instanceof v?n:null}return!0}var w=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function _(t){return t}function x(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return g(t)}function g(t){return 0===t.length?_:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var E=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n=this.operator,i=function(t,e,r){if(t){if(t instanceof v)return t;if(t[b])return t[b]()}return t||e||r?new v(t,e,r):new v(h)}(t,e,r);if(n?i.add(n.call(i,this.source)):i.add(this.source||u.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),u.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){u.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),m(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=S(e))((function(e,n){var i;i=r.subscribe((function(e){try{t(e)}catch(t){n(t),i&&i.unsubscribe()}}),n,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[w]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:g(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=S(t))((function(t,r){var n;e.subscribe((function(t){return n=t}),(function(t){return r(t)}),(function(){return t(n)}))}))},t.create=function(e){return new t(e)},t}();function S(t){if(t||(t=u.Promise||Promise),!t)throw new Error("no Promise impl found");return t}var I=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}(),T=function(t){function e(e,r){var n=t.call(this)||this;return n.subject=e,n.subscriber=r,n.closed=!1,n}return i(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var r=e.indexOf(this.subscriber);-1!==r&&e.splice(r,1)}}},e}(p),j=function(t){function e(e){var r=t.call(this,e)||this;return r.destination=e,r}return i(e,t),e}(v),N=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return i(e,t),e.prototype[b]=function(){return new j(this)},e.prototype.lift=function(t){var e=new O(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new I;if(!this.isStopped)for(var e=this.observers,r=e.length,n=e.slice(),i=0;i<r;i++)n[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new I;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,r=e.length,n=e.slice(),i=0;i<r;i++)n[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new I;this.isStopped=!0;for(var t=this.observers,e=t.length,r=t.slice(),n=0;n<e;n++)r[n].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new I;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new I;return this.hasError?(t.error(this.thrownError),p.EMPTY):this.isStopped?(t.complete(),p.EMPTY):(this.observers.push(t),new T(this,t))},e.prototype.asObservable=function(){var t=new E;return t.source=this,t},e.create=function(t,e){return new O(t,e)},e}(E),O=function(t){function e(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return i(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):p.EMPTY},e}(N),k=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var r=this.connectable;r._refCount++;var n=new A(t,r),i=e.subscribe(n);return n.closed||(n.connection=r.connect()),i},t}(),A=function(t){function e(e,r){var n=t.call(this,e)||this;return n.connectable=r,n}return i(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var r=this.connection,n=t._connection;this.connection=null,!n||r&&n!==r||n.unsubscribe()}}else this.connection=null},e}(v),C=function(t){function e(e,r){var n=t.call(this)||this;return n.source=e,n.subjectFactory=r,n._refCount=0,n._isComplete=!1,n}return i(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new p).add(this.source.subscribe(new P(this.getSubject(),this))),t.closed&&(this._connection=null,t=p.EMPTY)),t},e.prototype.refCount=function(){return(t=this).lift(new k(t));var t},e}(E),P=function(t){function e(e,r){var n=t.call(this,e)||this;return n.connectable=r,n}return i(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(j),V=function(t){function e(e,r,n){var i=t.call(this)||this;return i.key=e,i.groupSubject=r,i.refCountSubscription=n,i}return i(e,t),e.prototype._subscribe=function(t){var e=new p,r=this.refCountSubscription,n=this.groupSubject;return r&&!r.closed&&e.add(new F(r)),e.add(n.subscribe(t)),e},e}(E),F=function(t){function e(e){var r=t.call(this)||this;return r.parent=e,e.count++,r}return i(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(p),Y=function(t){function e(e){var r=t.call(this)||this;return r._value=e,r}return i(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var r=t.prototype._subscribe.call(this,e);return r&&!r.closed&&e.next(this._value),r},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new I;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(N),M=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n.pending=!1,n}return i(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var r=this.id,n=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(n,r,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this},e.prototype.requestAsyncId=function(t,e,r){return void 0===r&&(r=0),setInterval(t.flush.bind(t,this),r)},e.prototype.recycleAsyncId=function(t,e,r){if(void 0===r&&(r=0),null!==r&&this.delay===r&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(t,e);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var r=!1,n=void 0;try{this.work(t)}catch(t){r=!0,n=!!t&&t||new Error(t)}if(r)return this.unsubscribe(),n},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,r=e.actions,n=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&r.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,r){return t.call(this)||this}return i(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(p)),R=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n}return i(e,t),e.prototype.schedule=function(e,r){return void 0===r&&(r=0),r>0?t.prototype.schedule.call(this,e,r):(this.delay=r,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,r){return r>0||this.closed?t.prototype.execute.call(this,e,r):this._execute(e,r)},e.prototype.requestAsyncId=function(e,r,n){return void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0?t.prototype.requestAsyncId.call(this,e,r,n):e.flush(this)},e}(M),q=function(){function t(e,r){void 0===r&&(r=t.now),this.SchedulerAction=e,this.now=r}return t.prototype.schedule=function(t,e,r){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(r,e)},t.now=function(){return Date.now()},t}(),D=function(t){function e(r,n){void 0===n&&(n=q.now);var i=t.call(this,r,(function(){return e.delegate&&e.delegate!==i?e.delegate.now():n()}))||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return i(e,t),e.prototype.schedule=function(r,n,i){return void 0===n&&(n=0),e.delegate&&e.delegate!==this?e.delegate.schedule(r,n,i):t.prototype.schedule.call(this,r,n,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var r;this.active=!0;do{if(r=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,r){for(;t=e.shift();)t.unsubscribe();throw r}}},e}(q),U=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(D),H=new U(R),L=H,W=new E((function(t){return t.complete()}));function z(t){return t?function(t){return new E((function(e){return t.schedule((function(){return e.complete()}))}))}(t):W}function B(t){return t&&"function"==typeof t.schedule}var G,J=function(t){return function(e){for(var r=0,n=t.length;r<n&&!e.closed;r++)e.next(t[r]);e.complete()}};function K(t,e){return new E((function(r){var n=new p,i=0;return n.add(e.schedule((function(){i!==t.length?(r.next(t[i++]),r.closed||n.add(this.schedule())):r.complete()}))),n}))}function Q(t,e){return e?K(t,e):new E(J(t))}function X(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t[t.length-1];return B(r)?(t.pop(),K(t,r)):Q(t)}function Z(t,e){return new E(e?function(r){return e.schedule($,0,{error:t,subscriber:r})}:function(e){return e.error(t)})}function $(t){var e=t.error;t.subscriber.error(e)}G||(G={});var tt=function(){function t(t,e,r){this.kind=t,this.value=e,this.error=r,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,r){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return r&&r()}},t.prototype.accept=function(t,e,r){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,r)},t.prototype.toObservable=function(){switch(this.kind){case"N":return X(this.value);case"E":return Z(this.error);case"C":return z()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}(),et=function(t){function e(e,r,n){void 0===n&&(n=0);var i=t.call(this,e)||this;return i.scheduler=r,i.delay=n,i}return i(e,t),e.dispatch=function(t){var e=t.notification,r=t.destination;e.observe(r),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new rt(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(tt.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(tt.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(tt.createComplete()),this.unsubscribe()},e}(v),rt=function(){return function(t,e){this.notification=t,this.destination=e}}(),nt=function(t){function e(e,r,n){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this)||this;return i.scheduler=n,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=e<1?1:e,i._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return i(e,t),e.prototype.nextInfiniteTimeWindow=function(e){if(!this.isStopped){var r=this._events;r.push(e),r.length>this._bufferSize&&r.shift()}t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this.isStopped||(this._events.push(new it(this._getNow(),e)),this._trimBufferThenGetEvents()),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,r=this._infiniteTimeWindow,n=r?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=n.length;if(this.closed)throw new I;if(this.isStopped||this.hasError?e=p.EMPTY:(this.observers.push(t),e=new T(this,t)),i&&t.add(t=new et(t,i)),r)for(var s=0;s<o&&!t.closed;s++)t.next(n[s]);else for(s=0;s<o&&!t.closed;s++)t.next(n[s].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||L).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,r=this._windowTime,n=this._events,i=n.length,o=0;o<i&&!(t-n[o].time<r);)o++;return i>e&&(o=Math.max(o,i-e)),o>0&&n.splice(0,o),n},e}(N),it=function(){return function(t,e){this.time=t,this.value=e}}(),ot=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=null,e.hasNext=!1,e.hasCompleted=!1,e}return i(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),p.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),p.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)},e}(N),st=1,ut=function(){return Promise.resolve()}(),ct={};function ht(t){return t in ct&&(delete ct[t],!0)}var at=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n}return i(e,t),e.prototype.requestAsyncId=function(e,r,n){return void 0===n&&(n=0),null!==n&&n>0?t.prototype.requestAsyncId.call(this,e,r,n):(e.actions.push(this),e.scheduled||(e.scheduled=(i=e.flush.bind(e,null),o=st++,ct[o]=!0,ut.then((function(){return ht(o)&&i()})),o)));var i,o},e.prototype.recycleAsyncId=function(e,r,n){if(void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,r,n);0===e.actions.length&&(ht(r),e.scheduled=void 0)},e}(M),lt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,r=this.actions,n=-1,i=r.length;t=t||r.shift();do{if(e=t.execute(t.state,t.delay))break}while(++n<i&&(t=r.shift()));if(this.active=!1,e){for(;++n<i&&(t=r.shift());)t.unsubscribe();throw e}},e}(D),ft=new lt(at),pt=ft,dt=new D(M),bt=dt,vt=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n}return i(e,t),e.prototype.requestAsyncId=function(e,r,n){return void 0===n&&(n=0),null!==n&&n>0?t.prototype.requestAsyncId.call(this,e,r,n):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame((function(){return e.flush(null)}))))},e.prototype.recycleAsyncId=function(e,r,n){if(void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,r,n);0===e.actions.length&&(cancelAnimationFrame(r),e.scheduled=void 0)},e}(M),yt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,r=this.actions,n=-1,i=r.length;t=t||r.shift();do{if(e=t.execute(t.state,t.delay))break}while(++n<i&&(t=r.shift()));if(this.active=!1,e){for(;++n<i&&(t=r.shift());)t.unsubscribe();throw e}},e}(D),mt=new yt(vt),wt=mt,_t=function(t){function e(e,r){void 0===e&&(e=xt),void 0===r&&(r=Number.POSITIVE_INFINITY);var n=t.call(this,e,(function(){return n.frame}))||this;return n.maxFrames=r,n.frame=0,n.index=-1,n}return i(e,t),e.prototype.flush=function(){for(var t,e,r=this.actions,n=this.maxFrames;(e=r[0])&&e.delay<=n&&(r.shift(),this.frame=e.delay,!(t=e.execute(e.state,e.delay))););if(t){for(;e=r.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10,e}(D),xt=function(t){function e(e,r,n){void 0===n&&(n=e.index+=1);var i=t.call(this,e,r)||this;return i.scheduler=e,i.work=r,i.index=n,i.active=!0,i.index=e.index=n,i}return i(e,t),e.prototype.schedule=function(r,n){if(void 0===n&&(n=0),!this.id)return t.prototype.schedule.call(this,r,n);this.active=!1;var i=new e(this.scheduler,this.work);return this.add(i),i.schedule(r,n)},e.prototype.requestAsyncId=function(t,r,n){void 0===n&&(n=0),this.delay=t.frame+n;var i=t.actions;return i.push(this),i.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,e,r){void 0===r&&(r=0)},e.prototype._execute=function(e,r){if(!0===this.active)return t.prototype._execute.call(this,e,r)},e.sortActions=function(t,e){return t.delay===e.delay?t.index===e.index?0:t.index>e.index?1:-1:t.delay>e.delay?1:-1},e}(M);function gt(){}function Et(t){return!!t&&(t instanceof E||"function"==typeof t.lift&&"function"==typeof t.subscribe)}var St=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}(),It=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}(),Tt=function(){function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t}();function jt(t,e){return function(r){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new Nt(t,e))}}var Nt=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new Ot(t,this.project,this.thisArg))},t}(),Ot=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.project=r,i.count=0,i.thisArg=n||i,i}return i(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(v);function kt(t,e,r){if(e){if(!B(e))return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return kt(t,r).apply(void 0,n).pipe(jt((function(t){return a(t)?e.apply(void 0,t):e(t)})))};r=e}return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i,o=this,s={context:o,subject:i,callbackFunc:t,scheduler:r};return new E((function(n){if(r){var u={args:e,subscriber:n,params:s};return r.schedule(At,0,u)}if(!i){i=new ot;try{t.apply(o,e.concat([function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];i.next(t.length<=1?t[0]:t),i.complete()}]))}catch(t){m(i)?i.error(t):console.warn(t)}}return i.subscribe(n)}))}}function At(t){var e=this,r=t.args,n=t.subscriber,i=t.params,o=i.callbackFunc,s=i.context,u=i.scheduler,c=i.subject;if(!c){c=i.subject=new ot;try{o.apply(s,r.concat([function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=t.length<=1?t[0]:t;e.add(u.schedule(Ct,0,{value:n,subject:c}))}]))}catch(t){c.error(t)}}this.add(c.subscribe(n))}function Ct(t){var e=t.value,r=t.subject;r.next(e),r.complete()}function Pt(t,e,r){if(e){if(!B(e))return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return Pt(t,r).apply(void 0,n).pipe(jt((function(t){return a(t)?e.apply(void 0,t):e(t)})))};r=e}return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i={subject:void 0,args:e,callbackFunc:t,scheduler:r,context:this};return new E((function(n){var o=i.context,s=i.subject;if(r)return r.schedule(Vt,0,{params:i,subscriber:n,context:o});if(!s){s=i.subject=new ot;try{t.apply(o,e.concat([function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t.shift();r?s.error(r):(s.next(t.length<=1?t[0]:t),s.complete())}]))}catch(t){m(s)?s.error(t):console.warn(t)}}return s.subscribe(n)}))}}function Vt(t){var e=this,r=t.params,n=t.subscriber,i=t.context,o=r.callbackFunc,s=r.args,u=r.scheduler,c=r.subject;if(!c){c=r.subject=new ot;try{o.apply(i,s.concat([function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=t.shift();if(n)e.add(u.schedule(Yt,0,{err:n,subject:c}));else{var i=t.length<=1?t[0]:t;e.add(u.schedule(Ft,0,{value:i,subject:c}))}}]))}catch(t){this.add(u.schedule(Yt,0,{err:t,subject:c}))}}this.add(c.subscribe(n))}function Ft(t){var e=t.value,r=t.subject;r.next(e),r.complete()}function Yt(t){var e=t.err;t.subject.error(e)}var Mt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.notifyNext=function(t,e,r,n,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(v),Rt=function(t){function e(e,r,n){var i=t.call(this)||this;return i.parent=e,i.outerValue=r,i.outerIndex=n,i.index=0,i}return i(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(v);function qt(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var Dt=qt(),Ut=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function Ht(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var Lt=function(t){if(t&&"function"==typeof t[w])return n=t,function(t){var e=n[w]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Ut(t))return J(t);if(Ht(t))return r=t,function(t){return r.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,c),t};if(t&&"function"==typeof t[Dt])return e=t,function(t){for(var r=e[Dt]();;){var n=void 0;try{n=r.next()}catch(e){return t.error(e),t}if(n.done){t.complete();break}if(t.next(n.value),t.closed)break}return"function"==typeof r.return&&t.add((function(){r.return&&r.return()})),t};var e,r,n,i=l(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+i+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function Wt(t,e,r,n,i){if(void 0===i&&(i=new Rt(t,r,n)),!i.closed)return e instanceof E?e.subscribe(i):Lt(e)(i)}var zt={};function Bt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=void 0,n=void 0;return B(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&a(t[0])&&(t=t[0]),Q(t,n).lift(new Gt(r))}var Gt=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new Jt(t,this.resultSelector))},t}(),Jt=function(t){function e(e,r){var n=t.call(this,e)||this;return n.resultSelector=r,n.active=0,n.values=[],n.observables=[],n}return i(e,t),e.prototype._next=function(t){this.values.push(zt),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var r=0;r<e;r++){var n=t[r];this.add(Wt(this,n,void 0,r))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,r){var n=this.values,i=n[r],o=this.toRespond?i===zt?--this.toRespond:this.toRespond:0;n[r]=e,0===o&&(this.resultSelector?this._tryResultSelector(n):this.destination.next(n.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(Mt);function Kt(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[w]}(t))return function(t,e){return new E((function(r){var n=new p;return n.add(e.schedule((function(){var i=t[w]();n.add(i.subscribe({next:function(t){n.add(e.schedule((function(){return r.next(t)})))},error:function(t){n.add(e.schedule((function(){return r.error(t)})))},complete:function(){n.add(e.schedule((function(){return r.complete()})))}}))}))),n}))}(t,e);if(Ht(t))return function(t,e){return new E((function(r){var n=new p;return n.add(e.schedule((function(){return t.then((function(t){n.add(e.schedule((function(){r.next(t),n.add(e.schedule((function(){return r.complete()})))})))}),(function(t){n.add(e.schedule((function(){return r.error(t)})))}))}))),n}))}(t,e);if(Ut(t))return K(t,e);if(function(t){return t&&"function"==typeof t[Dt]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new E((function(r){var n,i=new p;return i.add((function(){n&&"function"==typeof n.return&&n.return()})),i.add(e.schedule((function(){n=t[Dt](),i.add(e.schedule((function(){if(!r.closed){var t,e;try{var i=n.next();t=i.value,e=i.done}catch(t){return void r.error(t)}e?r.complete():(r.next(t),this.schedule())}})))}))),i}))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function Qt(t,e){return e?Kt(t,e):t instanceof E?t:new E(Lt(t))}var Xt=function(t){function e(e){var r=t.call(this)||this;return r.parent=e,r}return i(e,t),e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(v),Zt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(v);function $t(t,e){if(!e.closed){if(t instanceof E)return t.subscribe(e);var r;try{r=Lt(t)(e)}catch(t){e.error(t)}return r}}function te(t,e,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"function"==typeof e?function(n){return n.pipe(te((function(r,n){return Qt(t(r,n)).pipe(jt((function(t,i){return e(r,t,n,i)})))}),r))}:("number"==typeof e&&(r=e),function(e){return e.lift(new ee(t,r))})}var ee=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new re(t,this.project,this.concurrent))},t}(),re=function(t){function e(e,r,n){void 0===n&&(n=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=r,i.concurrent=n,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return i(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,r=this.index++;try{e=this.project(t,r)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e)},e.prototype._innerSub=function(t){var e=new Xt(this),r=this.destination;r.add(e);var n=$t(t,e);n!==e&&r.add(n)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(Zt);function ne(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),te(_,t)}function ie(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ne(1)(X.apply(void 0,t))}function oe(t){return new E((function(e){var r;try{r=t()}catch(t){return void e.error(t)}return(r?Qt(r):z()).subscribe(e)}))}function se(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){var r=t[0];if(a(r))return ue(r,null);if(l(r)&&Object.getPrototypeOf(r)===Object.prototype){var n=Object.keys(r);return ue(n.map((function(t){return r[t]})),n)}}if("function"==typeof t[t.length-1]){var i=t.pop();return ue(t=1===t.length&&a(t[0])?t[0]:t,null).pipe(jt((function(t){return i.apply(void 0,t)})))}return ue(t,null)}function ue(t,e){return new E((function(r){var n=t.length;if(0!==n)for(var i=new Array(n),o=0,s=0,u=function(u){var c=Qt(t[u]),h=!1;r.add(c.subscribe({next:function(t){h||(h=!0,s++),i[u]=t},error:function(t){return r.error(t)},complete:function(){++o!==n&&h||(s===n&&r.next(e?e.reduce((function(t,e,r){return t[e]=i[r],t}),{}):i),r.complete())}}))},c=0;c<n;c++)u(c);else r.complete()}))}function ce(t,e,r,n){return o(r)&&(n=r,r=void 0),n?ce(t,e,r).pipe(jt((function(t){return a(t)?n.apply(void 0,t):n(t)}))):new E((function(n){he(t,e,(function(t){arguments.length>1?n.next(Array.prototype.slice.call(arguments)):n.next(t)}),n,r)}))}function he(t,e,r,n,i){var o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){var s=t;t.addEventListener(e,r,i),o=function(){return s.removeEventListener(e,r,i)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){var u=t;t.on(e,r),o=function(){return u.off(e,r)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){var c=t;t.addListener(e,r),o=function(){return c.removeListener(e,r)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var h=0,a=t.length;h<a;h++)he(t[h],e,r,n,i)}n.add(o)}function ae(t,e,r){return r?ae(t,e).pipe(jt((function(t){return a(t)?r.apply(void 0,t):r(t)}))):new E((function(r){var n,i=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r.next(1===t.length?t[0]:t)};try{n=t(i)}catch(t){return void r.error(t)}if(o(e))return function(){return e(i,n)}}))}function le(t,e,r,n,i){var o,s;if(1==arguments.length){var u=t;s=u.initialState,e=u.condition,r=u.iterate,o=u.resultSelector||_,i=u.scheduler}else void 0===n||B(n)?(s=t,o=_,i=n):(s=t,o=n);return new E((function(t){var n=s;if(i)return i.schedule(fe,0,{subscriber:t,iterate:r,condition:e,resultSelector:o,state:n});for(;;){if(e){var u=void 0;try{u=e(n)}catch(e){return void t.error(e)}if(!u){t.complete();break}}var c=void 0;try{c=o(n)}catch(e){return void t.error(e)}if(t.next(c),t.closed)break;try{n=r(n)}catch(e){return void t.error(e)}}}))}function fe(t){var e=t.subscriber,r=t.condition;if(!e.closed){if(t.needIterate)try{t.state=t.iterate(t.state)}catch(t){return void e.error(t)}else t.needIterate=!0;if(r){var n=void 0;try{n=r(t.state)}catch(t){return void e.error(t)}if(!n)return void e.complete();if(e.closed)return}var i;try{i=t.resultSelector(t.state)}catch(t){return void e.error(t)}if(!e.closed&&(e.next(i),!e.closed))return this.schedule(t)}}function pe(t,e,r){return void 0===e&&(e=W),void 0===r&&(r=W),oe((function(){return t()?e:r}))}function de(t){return!a(t)&&t-parseFloat(t)+1>=0}function be(t,e){return void 0===t&&(t=0),void 0===e&&(e=bt),(!de(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=bt),new E((function(r){return r.add(e.schedule(ve,t,{subscriber:r,counter:0,period:t})),r}))}function ve(t){var e=t.subscriber,r=t.counter,n=t.period;e.next(r),this.schedule({subscriber:e,counter:r+1,period:n},n)}function ye(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Number.POSITIVE_INFINITY,n=null,i=t[t.length-1];return B(i)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(r=t.pop())):"number"==typeof i&&(r=t.pop()),null===n&&1===t.length&&t[0]instanceof E?t[0]:ne(r)(Q(t,n))}var me=new E(gt);function we(){return me}function _e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(0===t.length)return W;var r=t[0],n=t.slice(1);return 1===t.length&&a(r)?_e.apply(void 0,r):new E((function(t){var e=function(){return t.add(_e.apply(void 0,n).subscribe(t))};return Qt(r).subscribe({next:function(e){t.next(e)},error:e,complete:e})}))}function xe(t,e){return new E(e?function(r){var n=Object.keys(t),i=new p;return i.add(e.schedule(ge,0,{keys:n,index:0,subscriber:r,subscription:i,obj:t})),i}:function(e){for(var r=Object.keys(t),n=0;n<r.length&&!e.closed;n++){var i=r[n];t.hasOwnProperty(i)&&e.next([i,t[i]])}e.complete()})}function ge(t){var e=t.keys,r=t.index,n=t.subscriber,i=t.subscription,o=t.obj;if(!n.closed)if(r<e.length){var s=e[r];n.next([s,o[s]]),i.add(this.schedule({keys:e,index:r+1,subscriber:n,subscription:i,obj:o}))}else n.complete()}function Ee(t,e){function r(){return!r.pred.apply(r.thisArg,arguments)}return r.pred=t,r.thisArg=e,r}function Se(t,e){return function(r){return r.lift(new Ie(t,e))}}var Ie=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new Te(t,this.predicate,this.thisArg))},t}(),Te=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.predicate=r,i.thisArg=n,i.count=0,i}return i(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(v);function je(t,e,r){return[Se(e,r)(new E(Lt(t))),Se(Ee(e,r))(new E(Lt(t)))]}function Ne(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){if(!a(t[0]))return t[0];t=t[0]}return Q(t,void 0).lift(new Oe)}var Oe=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new ke(t))},t}(),ke=function(t){function e(e){var r=t.call(this,e)||this;return r.hasFirst=!1,r.observables=[],r.subscriptions=[],r}return i(e,t),e.prototype._next=function(t){this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(var r=0;r<e&&!this.hasFirst;r++){var n=Wt(this,t[r],void 0,r);this.subscriptions&&this.subscriptions.push(n),this.add(n)}this.observables=null}},e.prototype.notifyNext=function(t,e,r){if(!this.hasFirst){this.hasFirst=!0;for(var n=0;n<this.subscriptions.length;n++)if(n!==r){var i=this.subscriptions[n];i.unsubscribe(),this.remove(i)}this.subscriptions=null}this.destination.next(e)},e}(Mt);function Ae(t,e,r){return void 0===t&&(t=0),new E((function(n){void 0===e&&(e=t,t=0);var i=0,o=t;if(r)return r.schedule(Ce,0,{index:i,count:e,start:t,subscriber:n});for(;;){if(i++>=e){n.complete();break}if(n.next(o++),n.closed)break}}))}function Ce(t){var e=t.start,r=t.index,n=t.count,i=t.subscriber;r>=n?i.complete():(i.next(e),i.closed||(t.index=r+1,t.start=e+1,this.schedule(t)))}function Pe(t,e,r){void 0===t&&(t=0);var n=-1;return de(e)?n=Number(e)<1?1:Number(e):B(e)&&(r=e),B(r)||(r=bt),new E((function(e){var i=de(t)?t:+t-r.now();return r.schedule(Ve,i,{index:0,period:n,subscriber:e})}))}function Ve(t){var e=t.index,r=t.period,n=t.subscriber;if(n.next(e),!n.closed){if(-1===r)return n.complete();t.index=e+1,this.schedule(t,r)}}function Fe(t,e){return new E((function(r){var n,i;try{n=t()}catch(t){return void r.error(t)}try{i=e(n)}catch(t){return void r.error(t)}var o=(i?Qt(i):W).subscribe(r);return function(){o.unsubscribe(),n&&n.unsubscribe()}}))}function Ye(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t[t.length-1];return"function"==typeof r&&t.pop(),Q(t,void 0).lift(new Me(r))}var Me=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new Re(t,this.resultSelector))},t}(),Re=function(t){function e(e,r,n){void 0===n&&(n=Object.create(null));var i=t.call(this,e)||this;return i.resultSelector=r,i.iterators=[],i.active=0,i.resultSelector="function"==typeof r?r:void 0,i}return i(e,t),e.prototype._next=function(t){var e=this.iterators;a(t)?e.push(new De(t)):"function"==typeof t[Dt]?e.push(new qe(t[Dt]())):e.push(new Ue(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(this.unsubscribe(),0!==e){this.active=e;for(var r=0;r<e;r++){var n=t[r];n.stillUnsubscribed?this.destination.add(n.subscribe()):this.active--}}else this.destination.complete()},e.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},e.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,r=this.destination,n=0;n<e;n++)if("function"==typeof(s=t[n]).hasValue&&!s.hasValue())return;var i=!1,o=[];for(n=0;n<e;n++){var s,u=(s=t[n]).next();if(s.hasCompleted()&&(i=!0),u.done)return void r.complete();o.push(u.value)}this.resultSelector?this._tryresultSelector(o):r.next(o),i&&r.complete()},e.prototype._tryresultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(v),qe=function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return Boolean(t&&t.done)},t}(),De=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[Dt]=function(){return this},t.prototype.next=function(t){var e=this.index++,r=this.array;return e<this.length?{value:r[e],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),Ue=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.parent=r,i.observable=n,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return i(e,t),e.prototype[Dt]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t){this.buffer.push(t),this.parent.checkIterators()},e.prototype.subscribe=function(){return $t(this.observable,new Xt(this))},e}(Zt)}}]);
|