@openmrs/esm-form-builder-app 2.0.2-pre.574 → 2.0.2-pre.586

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/README.md +43 -17
  2. package/dist/127.js +1 -1
  3. package/dist/127.js.map +1 -1
  4. package/dist/150.js +1 -1
  5. package/dist/150.js.map +1 -1
  6. package/dist/153.js +1 -1
  7. package/dist/153.js.map +1 -1
  8. package/dist/164.js +1 -1
  9. package/dist/256.js +1 -1
  10. package/dist/319.js +1 -1
  11. package/dist/447.js +1 -1
  12. package/dist/447.js.map +1 -1
  13. package/dist/515.js +2 -0
  14. package/dist/{773.js.LICENSE.txt → 515.js.LICENSE.txt} +9 -0
  15. package/dist/515.js.map +1 -0
  16. package/dist/527.js +1 -0
  17. package/dist/527.js.map +1 -0
  18. package/dist/574.js +1 -1
  19. package/dist/757.js +1 -1
  20. package/dist/788.js +1 -1
  21. package/dist/800.js +1 -1
  22. package/dist/800.js.map +1 -1
  23. package/dist/807.js +1 -1
  24. package/dist/833.js +1 -1
  25. package/dist/878.js +2 -0
  26. package/dist/{208.js.LICENSE.txt → 878.js.LICENSE.txt} +2 -1
  27. package/dist/878.js.map +1 -0
  28. package/dist/main.js +1 -1
  29. package/dist/main.js.map +1 -1
  30. package/dist/openmrs-esm-form-builder-app.js +1 -1
  31. package/dist/openmrs-esm-form-builder-app.js.buildmanifest.json +154 -175
  32. package/dist/openmrs-esm-form-builder-app.js.map +1 -1
  33. package/dist/routes.json +1 -1
  34. package/package.json +35 -32
  35. package/src/components/action-buttons/action-buttons.component.tsx +65 -101
  36. package/src/components/dashboard/dashboard.component.tsx +98 -174
  37. package/src/components/dashboard/dashboard.test.tsx +51 -81
  38. package/src/components/empty-state/empty-data-illustration.component.tsx +4 -16
  39. package/src/components/empty-state/empty-state.component.tsx +11 -15
  40. package/src/components/error-state/error-state.component.tsx +11 -13
  41. package/src/components/form-editor/form-editor.component.tsx +97 -128
  42. package/src/components/form-renderer/form-renderer.component.tsx +30 -41
  43. package/src/components/interactive-builder/add-question-modal.component.tsx +129 -167
  44. package/src/components/interactive-builder/delete-page-modal.component.tsx +24 -37
  45. package/src/components/interactive-builder/delete-question-modal.component.tsx +25 -47
  46. package/src/components/interactive-builder/delete-section-modal.component.tsx +24 -37
  47. package/src/components/interactive-builder/draggable-question.component.tsx +21 -34
  48. package/src/components/interactive-builder/droppable-container.component.tsx +5 -5
  49. package/src/components/interactive-builder/edit-question-modal.component.tsx +191 -233
  50. package/src/components/interactive-builder/editable-value.component.tsx +12 -17
  51. package/src/components/interactive-builder/interactive-builder.component.tsx +134 -184
  52. package/src/components/interactive-builder/new-form-modal.component.tsx +35 -49
  53. package/src/components/interactive-builder/page-modal.component.tsx +29 -45
  54. package/src/components/interactive-builder/question-modal.scss +7 -0
  55. package/src/components/interactive-builder/section-modal.component.tsx +29 -40
  56. package/src/components/interactive-builder/value-editor.component.tsx +11 -16
  57. package/src/components/modals/save-form-modal.component.tsx +112 -165
  58. package/src/components/pagination/index.ts +2 -2
  59. package/src/components/pagination/pagination.component.tsx +8 -13
  60. package/src/components/pagination/usePaginationInfo.ts +4 -9
  61. package/src/components/schema-editor/schema-editor.component.tsx +11 -17
  62. package/src/config-schema.ts +28 -30
  63. package/src/declarations.d.ts +4 -3
  64. package/src/form-builder-admin-card-link.component.tsx +7 -11
  65. package/src/forms.resource.ts +66 -87
  66. package/src/hooks/useClobdata.ts +10 -12
  67. package/src/hooks/useConceptLookup.ts +5 -8
  68. package/src/hooks/useConceptName.ts +6 -9
  69. package/src/hooks/useEncounterTypes.ts +8 -8
  70. package/src/hooks/useForm.ts +7 -7
  71. package/src/hooks/useForms.ts +5 -8
  72. package/src/index.ts +11 -23
  73. package/src/root.component.tsx +4 -4
  74. package/src/setup-tests.ts +1 -9
  75. package/src/test-helpers.tsx +8 -15
  76. package/src/types.ts +16 -8
  77. package/dist/208.js +0 -2
  78. package/dist/208.js.map +0 -1
  79. package/dist/536.js +0 -1
  80. package/dist/536.js.map +0 -1
  81. package/dist/62.js +0 -1
  82. package/dist/62.js.map +0 -1
  83. package/dist/773.js +0 -2
  84. package/dist/773.js.map +0 -1
  85. package/src/constants.ts +0 -3
package/dist/164.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_form_builder_app=globalThis.webpackChunk_openmrs_esm_form_builder_app||[]).push([[164],{32164:(n,e,t)=>{t.r(e),t.d(e,{ArgumentOutOfRangeError:()=>Mn,AsyncSubject:()=>F,BehaviorSubject:()=>O,ConnectableObservable:()=>y,EMPTY:()=>un,EmptyError:()=>Ln,NEVER:()=>Oe,NotFoundError:()=>Un,Notification:()=>jn,NotificationKind:()=>gn,ObjectUnsubscribedError:()=>S,Observable:()=>v,ReplaySubject:()=>Z,Scheduler:()=>X,SequenceError:()=>Vn,Subject:()=>I,Subscriber:()=>r.Lv,Subscription:()=>u.w0,TimeoutError:()=>Bn,UnsubscriptionError:()=>Dn.B,VirtualAction:()=>rn,VirtualTimeScheduler:()=>tn,animationFrame:()=>en,animationFrameScheduler:()=>nn,animationFrames:()=>g,asap:()=>Y,asapScheduler:()=>H,async:()=>J,asyncScheduler:()=>D,audit:()=>Xe,auditTime:()=>Be,bindCallback:()=>$n,bindNodeCallback:()=>ne,buffer:()=>He,bufferCount:()=>Ye,bufferTime:()=>De,bufferToggle:()=>Je,bufferWhen:()=>Ke,catchError:()=>Qe,combineAll:()=>ut,combineLatest:()=>ce,combineLatestAll:()=>rt,combineLatestWith:()=>ot,concat:()=>de,concatAll:()=>he,concatMap:()=>ct,concatMapTo:()=>st,concatWith:()=>lt,config:()=>f.v,connect:()=>vt,connectable:()=>me,count:()=>ht,debounce:()=>dt,debounceTime:()=>bt,defaultIfEmpty:()=>pt,defer:()=>be,delay:()=>gt,delayWhen:()=>wt,dematerialize:()=>_t,distinct:()=>Et,distinctUntilChanged:()=>At,distinctUntilKeyChanged:()=>St,elementAt:()=>kt,empty:()=>on,endWith:()=>Ot,every:()=>Rt,exhaust:()=>jt,exhaustAll:()=>Ft,exhaustMap:()=>Zt,expand:()=>qt,filter:()=>Pe,finalize:()=>Nt,find:()=>Pt,findIndex:()=>Wt,first:()=>zt,firstValueFrom:()=>zn,flatMap:()=>Yt,forkJoin:()=>ye,from:()=>Rn,fromEvent:()=>_e,fromEventPattern:()=>Ae,generate:()=>Ce,groupBy:()=>Mt,identity:()=>o,ignoreElements:()=>yt,iif:()=>Se,interval:()=>Ie,isEmpty:()=>Ut,isObservable:()=>Pn,last:()=>Xt,lastValueFrom:()=>Wn,map:()=>Jn.U,mapTo:()=>xt,materialize:()=>Bt,max:()=>Ht,merge:()=>ke,mergeAll:()=>ve,mergeMap:()=>ae,mergeMapTo:()=>Dt,mergeScan:()=>Jt,mergeWith:()=>Qt,min:()=>Gt,multicast:()=>$t,never:()=>Re,noop:()=>Nn.Z,observable:()=>i,observeOn:()=>Sn,of:()=>Zn,onErrorResumeNext:()=>je,onErrorResumeNextWith:()=>nr,pairs:()=>qe,pairwise:()=>er,partition:()=>Le,pipe:()=>c,pluck:()=>tr,publish:()=>rr,publishBehavior:()=>ur,publishLast:()=>ir,publishReplay:()=>or,queue:()=>G,queueScheduler:()=>Q,race:()=>We,raceWith:()=>cr,range:()=>Me,reduce:()=>$e,refCount:()=>m,repeat:()=>sr,repeatWhen:()=>fr,retry:()=>lr,retryWhen:()=>ar,sample:()=>vr,sampleTime:()=>hr,scan:()=>dr,scheduled:()=>On,sequenceEqual:()=>br,share:()=>pr,shareReplay:()=>yr,single:()=>xr,skip:()=>wr,skipLast:()=>gr,skipUntil:()=>_r,skipWhile:()=>Er,startWith:()=>Ar,subscribeOn:()=>Tn,switchAll:()=>Sr,switchMap:()=>Cr,switchMapTo:()=>Tr,switchScan:()=>Ir,take:()=>mt,takeLast:()=>Vt,takeUntil:()=>kr,takeWhile:()=>Or,tap:()=>Rr,throttle:()=>Zr,throttleTime:()=>Fr,throwError:()=>Fn,throwIfEmpty:()=>Tt,timeInterval:()=>jr,timeout:()=>Hn,timeoutWith:()=>Nr,timer:()=>Te,timestamp:()=>Pr,toArray:()=>et,using:()=>Ue,window:()=>Lr,windowCount:()=>Wr,windowTime:()=>zr,windowToggle:()=>Mr,windowWhen:()=>Ur,withLatestFrom:()=>Vr,zip:()=>Ve,zipAll:()=>Xr,zipWith:()=>Hr});var r=t(65044),u=t(70204),i="function"==typeof Symbol&&Symbol.observable||"@@observable";function o(n){return n}function c(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return s(n)}function s(n){return 0===n.length?o:1===n.length?n[0]:function(e){return n.reduce((function(n,e){return e(n)}),e)}}var f=t(53912),l=t(58474),a=t(68846),v=function(){function n(n){n&&(this._subscribe=n)}return n.prototype.lift=function(e){var t=new n;return t.source=this,t.operator=e,t},n.prototype.subscribe=function(n,e,t){var i,o=this,c=(i=n)&&i instanceof r.Lv||function(n){return n&&(0,l.m)(n.next)&&(0,l.m)(n.error)&&(0,l.m)(n.complete)}(i)&&(0,u.Nn)(i)?n:new r.Hp(n,e,t);return(0,a.x)((function(){var n=o,e=n.operator,t=n.source;c.add(e?e.call(c,t):t?o._subscribe(c):o._trySubscribe(c))})),c},n.prototype._trySubscribe=function(n){try{return this._subscribe(n)}catch(e){n.error(e)}},n.prototype.forEach=function(n,e){var t=this;return new(e=h(e))((function(e,u){var i=new r.Hp({next:function(e){try{n(e)}catch(n){u(n),i.unsubscribe()}},error:u,complete:e});t.subscribe(i)}))},n.prototype._subscribe=function(n){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(n)},n.prototype[i]=function(){return this},n.prototype.pipe=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return s(n)(this)},n.prototype.toPromise=function(n){var e=this;return new(n=h(n))((function(n,t){var r;e.subscribe((function(n){return r=n}),(function(n){return t(n)}),(function(){return n(r)}))}))},n.create=function(e){return new n(e)},n}();function h(n){var e;return null!==(e=null!=n?n:f.v.Promise)&&void 0!==e?e:Promise}var d=t(70655),b=t(96798),p=t(2566);function m(){return(0,b.e)((function(n,e){var t=null;n._refCount++;var r=(0,p.x)(e,void 0,void 0,void 0,(function(){if(!n||n._refCount<=0||0<--n._refCount)t=null;else{var r=n._connection,u=t;t=null,!r||u&&r!==u||r.unsubscribe(),e.unsubscribe()}}));n.subscribe(r),r.closed||(t=n.connect())}))}var y=function(n){function e(e,t){var r=n.call(this)||this;return r.source=e,r.subjectFactory=t,r._subject=null,r._refCount=0,r._connection=null,(0,b.A)(e)&&(r.lift=e.lift),r}return(0,d.ZT)(e,n),e.prototype._subscribe=function(n){return this.getSubject().subscribe(n)},e.prototype.getSubject=function(){var n=this._subject;return n&&!n.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype._teardown=function(){this._refCount=0;var n=this._connection;this._subject=this._connection=null,null==n||n.unsubscribe()},e.prototype.connect=function(){var n=this,e=this._connection;if(!e){e=this._connection=new u.w0;var t=this.getSubject();e.add(this.source.subscribe((0,p.x)(t,void 0,(function(){n._teardown(),t.complete()}),(function(e){n._teardown(),t.error(e)}),(function(){return n._teardown()})))),e.closed&&(this._connection=null,e=u.w0.EMPTY)}return e},e.prototype.refCount=function(){return m()(this)},e}(v),x={now:function(){return(x.delegate||performance).now()},delegate:void 0},w={schedule:function(n){var e=requestAnimationFrame,t=cancelAnimationFrame,r=w.delegate;r&&(e=r.requestAnimationFrame,t=r.cancelAnimationFrame);var i=e((function(e){t=void 0,n(e)}));return new u.w0((function(){return null==t?void 0:t(i)}))},requestAnimationFrame:function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=w.delegate;return((null==t?void 0:t.requestAnimationFrame)||requestAnimationFrame).apply(void 0,(0,d.ev)([],(0,d.CR)(n)))},cancelAnimationFrame:function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=w.delegate;return((null==t?void 0:t.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,(0,d.ev)([],(0,d.CR)(n)))},delegate:void 0};function g(n){return n?_(n):A}function _(n){return new v((function(e){var t=n||x,r=t.now(),u=0,i=function(){e.closed||(u=w.requestAnimationFrame((function(o){u=0;var c=t.now();e.next({timestamp:n?c:o,elapsed:c-r}),i()})))};return i(),function(){u&&w.cancelAnimationFrame(u)}}))}var E,A=_(),C=t(1819),S=(0,C.d)((function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),T=t(3699),I=function(n){function e(){var e=n.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return(0,d.ZT)(e,n),e.prototype.lift=function(n){var e=new k(this,this);return e.operator=n,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new S},e.prototype.next=function(n){var e=this;(0,a.x)((function(){var t,r;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var u=(0,d.XA)(e.currentObservers),i=u.next();!i.done;i=u.next())i.value.next(n)}catch(n){t={error:n}}finally{try{i&&!i.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}}}))},e.prototype.error=function(n){var e=this;(0,a.x)((function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=n;for(var t=e.observers;t.length;)t.shift().error(n)}}))},e.prototype.complete=function(){var n=this;(0,a.x)((function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var e=n.observers;e.length;)e.shift().complete()}}))},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(e){return this._throwIfClosed(),n.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},e.prototype._innerSubscribe=function(n){var e=this,t=this,r=t.hasError,i=t.isStopped,o=t.observers;return r||i?u.Lc:(this.currentObservers=null,o.push(n),new u.w0((function(){e.currentObservers=null,(0,T.P)(o,n)})))},e.prototype._checkFinalizedStatuses=function(n){var e=this,t=e.hasError,r=e.thrownError,u=e.isStopped;t?n.error(r):u&&n.complete()},e.prototype.asObservable=function(){var n=new v;return n.source=this,n},e.create=function(n,e){return new k(n,e)},e}(v),k=function(n){function e(e,t){var r=n.call(this)||this;return r.destination=e,r.source=t,r}return(0,d.ZT)(e,n),e.prototype.next=function(n){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===t||t.call(e,n)},e.prototype.error=function(n){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===t||t.call(e,n)},e.prototype.complete=function(){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===e||e.call(n)},e.prototype._subscribe=function(n){var e,t;return null!==(t=null===(e=this.source)||void 0===e?void 0:e.subscribe(n))&&void 0!==t?t:u.Lc},e}(I),O=function(n){function e(e){var t=n.call(this)||this;return t._value=e,t}return(0,d.ZT)(e,n),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(e){var t=n.prototype._subscribe.call(this,e);return!t.closed&&e.next(this._value),t},e.prototype.getValue=function(){var n=this,e=n.hasError,t=n.thrownError,r=n._value;if(e)throw t;return this._throwIfClosed(),r},e.prototype.next=function(e){n.prototype.next.call(this,this._value=e)},e}(I),R={now:function(){return(R.delegate||Date).now()},delegate:void 0},Z=function(n){function e(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=R);var u=n.call(this)||this;return u._bufferSize=e,u._windowTime=t,u._timestampProvider=r,u._buffer=[],u._infiniteTimeWindow=!0,u._infiniteTimeWindow=t===1/0,u._bufferSize=Math.max(1,e),u._windowTime=Math.max(1,t),u}return(0,d.ZT)(e,n),e.prototype.next=function(e){var t=this,r=t.isStopped,u=t._buffer,i=t._infiniteTimeWindow,o=t._timestampProvider,c=t._windowTime;r||(u.push(e),!i&&u.push(o.now()+c)),this._trimBuffer(),n.prototype.next.call(this,e)},e.prototype._subscribe=function(n){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(n),t=this._infiniteTimeWindow,r=this._buffer.slice(),u=0;u<r.length&&!n.closed;u+=t?1:2)n.next(r[u]);return this._checkFinalizedStatuses(n),e},e.prototype._trimBuffer=function(){var n=this,e=n._bufferSize,t=n._timestampProvider,r=n._buffer,u=n._infiniteTimeWindow,i=(u?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!u){for(var o=t.now(),c=0,s=1;s<r.length&&r[s]<=o;s+=2)c=s;c&&r.splice(0,c+1)}},e}(I),F=function(n){function e(){var e=null!==n&&n.apply(this,arguments)||this;return e._value=null,e._hasValue=!1,e._isComplete=!1,e}return(0,d.ZT)(e,n),e.prototype._checkFinalizedStatuses=function(n){var e=this,t=e.hasError,r=e._hasValue,u=e._value,i=e.thrownError,o=e.isStopped,c=e._isComplete;t?n.error(i):(o||c)&&(r&&n.next(u),n.complete())},e.prototype.next=function(n){this.isStopped||(this._value=n,this._hasValue=!0)},e.prototype.complete=function(){var e=this,t=e._hasValue,r=e._value;e._isComplete||(this._isComplete=!0,t&&n.prototype.next.call(this,r),n.prototype.complete.call(this))},e}(I),j=function(n){function e(e,t){return n.call(this)||this}return(0,d.ZT)(e,n),e.prototype.schedule=function(n,e){return void 0===e&&(e=0),this},e}(u.w0),q={setInterval:function(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var u=q.delegate;return(null==u?void 0:u.setInterval)?u.setInterval.apply(u,(0,d.ev)([n,e],(0,d.CR)(t))):setInterval.apply(void 0,(0,d.ev)([n,e],(0,d.CR)(t)))},clearInterval:function(n){var e=q.delegate;return((null==e?void 0:e.clearInterval)||clearInterval)(n)},delegate:void 0},N=function(n){function e(e,t){var r=n.call(this,e,t)||this;return r.scheduler=e,r.work=t,r.pending=!1,r}return(0,d.ZT)(e,n),e.prototype.schedule=function(n,e){var t;if(void 0===e&&(e=0),this.closed)return this;this.state=n;var r=this.id,u=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(u,r,e)),this.pending=!0,this.delay=e,this.id=null!==(t=this.id)&&void 0!==t?t:this.requestAsyncId(u,this.id,e),this},e.prototype.requestAsyncId=function(n,e,t){return void 0===t&&(t=0),q.setInterval(n.flush.bind(n,this),t)},e.prototype.recycleAsyncId=function(n,e,t){if(void 0===t&&(t=0),null!=t&&this.delay===t&&!1===this.pending)return e;null!=e&&q.clearInterval(e)},e.prototype.execute=function(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var t=this._execute(n,e);if(t)return t;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(n,e){var t,r=!1;try{this.work(n)}catch(n){r=!0,t=n||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),t},e.prototype.unsubscribe=function(){if(!this.closed){var e=this.id,t=this.scheduler,r=t.actions;this.work=this.state=this.scheduler=null,this.pending=!1,(0,T.P)(r,this),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null,n.prototype.unsubscribe.call(this)}},e}(j),P=1,L={};function W(n){return n in L&&(delete L[n],!0)}var z=function(n){var e=P++;return L[e]=!0,E||(E=Promise.resolve()),E.then((function(){return W(e)&&n()})),e},M=function(n){W(n)},U={setImmediate:function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=U.delegate;return((null==t?void 0:t.setImmediate)||z).apply(void 0,(0,d.ev)([],(0,d.CR)(n)))},clearImmediate:function(n){var e=U.delegate;return((null==e?void 0:e.clearImmediate)||M)(n)},delegate:void 0},V=function(n){function e(e,t){var r=n.call(this,e,t)||this;return r.scheduler=e,r.work=t,r}return(0,d.ZT)(e,n),e.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),null!==r&&r>0?n.prototype.requestAsyncId.call(this,e,t,r):(e.actions.push(this),e._scheduled||(e._scheduled=U.setImmediate(e.flush.bind(e,void 0))))},e.prototype.recycleAsyncId=function(e,t,r){var u;if(void 0===r&&(r=0),null!=r?r>0:this.delay>0)return n.prototype.recycleAsyncId.call(this,e,t,r);var i=e.actions;null!=t&&(null===(u=i[i.length-1])||void 0===u?void 0:u.id)!==t&&(U.clearImmediate(t),e._scheduled===t&&(e._scheduled=void 0))},e}(N),X=function(){function n(e,t){void 0===t&&(t=n.now),this.schedulerActionCtor=e,this.now=t}return n.prototype.schedule=function(n,e,t){return void 0===e&&(e=0),new this.schedulerActionCtor(this,n).schedule(t,e)},n.now=R.now,n}(),B=function(n){function e(e,t){void 0===t&&(t=X.now);var r=n.call(this,e,t)||this;return r.actions=[],r._active=!1,r}return(0,d.ZT)(e,n),e.prototype.flush=function(n){var e=this.actions;if(this._active)e.push(n);else{var t;this._active=!0;do{if(t=n.execute(n.state,n.delay))break}while(n=e.shift());if(this._active=!1,t){for(;n=e.shift();)n.unsubscribe();throw t}}},e}(X),H=new(function(n){function e(){return null!==n&&n.apply(this,arguments)||this}return(0,d.ZT)(e,n),e.prototype.flush=function(n){this._active=!0;var e=this._scheduled;this._scheduled=void 0;var t,r=this.actions;n=n||r.shift();do{if(t=n.execute(n.state,n.delay))break}while((n=r[0])&&n.id===e&&r.shift());if(this._active=!1,t){for(;(n=r[0])&&n.id===e&&r.shift();)n.unsubscribe();throw t}},e}(B))(V),Y=H,D=new B(N),J=D,K=function(n){function e(e,t){var r=n.call(this,e,t)||this;return r.scheduler=e,r.work=t,r}return(0,d.ZT)(e,n),e.prototype.schedule=function(e,t){return void 0===t&&(t=0),t>0?n.prototype.schedule.call(this,e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,t){return t>0||this.closed?n.prototype.execute.call(this,e,t):this._execute(e,t)},e.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0?n.prototype.requestAsyncId.call(this,e,t,r):(e.flush(this),0)},e}(N),Q=new(function(n){function e(){return null!==n&&n.apply(this,arguments)||this}return(0,d.ZT)(e,n),e}(B))(K),G=Q,$=function(n){function e(e,t){var r=n.call(this,e,t)||this;return r.scheduler=e,r.work=t,r}return(0,d.ZT)(e,n),e.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),null!==r&&r>0?n.prototype.requestAsyncId.call(this,e,t,r):(e.actions.push(this),e._scheduled||(e._scheduled=w.requestAnimationFrame((function(){return e.flush(void 0)}))))},e.prototype.recycleAsyncId=function(e,t,r){var u;if(void 0===r&&(r=0),null!=r?r>0:this.delay>0)return n.prototype.recycleAsyncId.call(this,e,t,r);var i=e.actions;null!=t&&(null===(u=i[i.length-1])||void 0===u?void 0:u.id)!==t&&(w.cancelAnimationFrame(t),e._scheduled=void 0)},e}(N),nn=new(function(n){function e(){return null!==n&&n.apply(this,arguments)||this}return(0,d.ZT)(e,n),e.prototype.flush=function(n){this._active=!0;var e=this._scheduled;this._scheduled=void 0;var t,r=this.actions;n=n||r.shift();do{if(t=n.execute(n.state,n.delay))break}while((n=r[0])&&n.id===e&&r.shift());if(this._active=!1,t){for(;(n=r[0])&&n.id===e&&r.shift();)n.unsubscribe();throw t}},e}(B))($),en=nn,tn=function(n){function e(e,t){void 0===e&&(e=rn),void 0===t&&(t=1/0);var r=n.call(this,e,(function(){return r.frame}))||this;return r.maxFrames=t,r.frame=0,r.index=-1,r}return(0,d.ZT)(e,n),e.prototype.flush=function(){for(var n,e,t=this.actions,r=this.maxFrames;(e=t[0])&&e.delay<=r&&(t.shift(),this.frame=e.delay,!(n=e.execute(e.state,e.delay))););if(n){for(;e=t.shift();)e.unsubscribe();throw n}},e.frameTimeFactor=10,e}(B),rn=function(n){function e(e,t,r){void 0===r&&(r=e.index+=1);var u=n.call(this,e,t)||this;return u.scheduler=e,u.work=t,u.index=r,u.active=!0,u.index=e.index=r,u}return(0,d.ZT)(e,n),e.prototype.schedule=function(t,r){if(void 0===r&&(r=0),Number.isFinite(r)){if(!this.id)return n.prototype.schedule.call(this,t,r);this.active=!1;var i=new e(this.scheduler,this.work);return this.add(i),i.schedule(t,r)}return u.w0.EMPTY},e.prototype.requestAsyncId=function(n,t,r){void 0===r&&(r=0),this.delay=n.frame+r;var u=n.actions;return u.push(this),u.sort(e.sortActions),1},e.prototype.recycleAsyncId=function(n,e,t){void 0===t&&(t=0)},e.prototype._execute=function(e,t){if(!0===this.active)return n.prototype._execute.call(this,e,t)},e.sortActions=function(n,e){return n.delay===e.delay?n.index===e.index?0:n.index>e.index?1:-1:n.delay>e.delay?1:-1},e}(N),un=new v((function(n){return n.complete()}));function on(n){return n?function(n){return new v((function(e){return n.schedule((function(){return e.complete()}))}))}(n):un}function cn(n){return n&&(0,l.m)(n.schedule)}function sn(n){return n[n.length-1]}function fn(n){return(0,l.m)(sn(n))?n.pop():void 0}function ln(n){return cn(sn(n))?n.pop():void 0}function an(n,e){return"number"==typeof sn(n)?n.pop():e}var vn=function(n){return n&&"number"==typeof n.length&&"function"!=typeof n};function hn(n){return(0,l.m)(null==n?void 0:n.then)}function dn(n){return(0,l.m)(n[i])}function bn(n){return Symbol.asyncIterator&&(0,l.m)(null==n?void 0:n[Symbol.asyncIterator])}function pn(n){return new TypeError("You provided "+(null!==n&&"object"==typeof n?"an invalid object":"'"+n+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var mn="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function yn(n){return(0,l.m)(null==n?void 0:n[mn])}function xn(n){return(0,d.FC)(this,arguments,(function(){var e,t,r;return(0,d.Jh)(this,(function(u){switch(u.label){case 0:e=n.getReader(),u.label=1;case 1:u.trys.push([1,,9,10]),u.label=2;case 2:return[4,(0,d.qq)(e.read())];case 3:return t=u.sent(),r=t.value,t.done?[4,(0,d.qq)(void 0)]:[3,5];case 4:return[2,u.sent()];case 5:return[4,(0,d.qq)(r)];case 6:return[4,u.sent()];case 7:return u.sent(),[3,2];case 8:return[3,10];case 9:return e.releaseLock(),[7];case 10:return[2]}}))}))}function wn(n){return(0,l.m)(null==n?void 0:n.getReader)}var gn,_n=t(40005);function En(n){if(n instanceof v)return n;if(null!=n){if(dn(n))return u=n,new v((function(n){var e=u[i]();if((0,l.m)(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")}));if(vn(n))return r=n,new v((function(n){for(var e=0;e<r.length&&!n.closed;e++)n.next(r[e]);n.complete()}));if(hn(n))return t=n,new v((function(n){t.then((function(e){n.closed||(n.next(e),n.complete())}),(function(e){return n.error(e)})).then(null,_n.h)}));if(bn(n))return An(n);if(yn(n))return e=n,new v((function(n){var t,r;try{for(var u=(0,d.XA)(e),i=u.next();!i.done;i=u.next()){var o=i.value;if(n.next(o),n.closed)return}}catch(n){t={error:n}}finally{try{i&&!i.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}n.complete()}));if(wn(n))return An(xn(n))}var e,t,r,u;throw pn(n)}function An(n){return new v((function(e){(function(n,e){var t,r,u,i;return(0,d.mG)(this,void 0,void 0,(function(){var o,c;return(0,d.Jh)(this,(function(s){switch(s.label){case 0:s.trys.push([0,5,6,11]),t=(0,d.KL)(n),s.label=1;case 1:return[4,t.next()];case 2:if((r=s.sent()).done)return[3,4];if(o=r.value,e.next(o),e.closed)return[2];s.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return c=s.sent(),u={error:c},[3,11];case 6:return s.trys.push([6,,9,10]),r&&!r.done&&(i=t.return)?[4,i.call(t)]:[3,8];case 7:s.sent(),s.label=8;case 8:return[3,10];case 9:if(u)throw u.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}}))}))})(n,e).catch((function(n){return e.error(n)}))}))}function Cn(n,e,t,r,u){void 0===r&&(r=0),void 0===u&&(u=!1);var i=e.schedule((function(){t(),u?n.add(this.schedule(null,r)):this.unsubscribe()}),r);if(n.add(i),!u)return i}function Sn(n,e){return void 0===e&&(e=0),(0,b.e)((function(t,r){t.subscribe((0,p.x)(r,(function(t){return Cn(r,n,(function(){return r.next(t)}),e)}),(function(){return Cn(r,n,(function(){return r.complete()}),e)}),(function(t){return Cn(r,n,(function(){return r.error(t)}),e)})))}))}function Tn(n,e){return void 0===e&&(e=0),(0,b.e)((function(t,r){r.add(n.schedule((function(){return t.subscribe(r)}),e))}))}function In(n,e){return new v((function(t){var r;return Cn(t,e,(function(){r=n[mn](),Cn(t,e,(function(){var n,e,u;try{e=(n=r.next()).value,u=n.done}catch(n){return void t.error(n)}u?t.complete():t.next(e)}),0,!0)})),function(){return(0,l.m)(null==r?void 0:r.return)&&r.return()}}))}function kn(n,e){if(!n)throw new Error("Iterable cannot be null");return new v((function(t){Cn(t,e,(function(){var r=n[Symbol.asyncIterator]();Cn(t,e,(function(){r.next().then((function(n){n.done?t.complete():t.next(n.value)}))}),0,!0)}))}))}function On(n,e){if(null!=n){if(dn(n))return function(n,e){return En(n).pipe(Tn(e),Sn(e))}(n,e);if(vn(n))return function(n,e){return new v((function(t){var r=0;return e.schedule((function(){r===n.length?t.complete():(t.next(n[r++]),t.closed||this.schedule())}))}))}(n,e);if(hn(n))return function(n,e){return En(n).pipe(Tn(e),Sn(e))}(n,e);if(bn(n))return kn(n,e);if(yn(n))return In(n,e);if(wn(n))return function(n,e){return kn(xn(n),e)}(n,e)}throw pn(n)}function Rn(n,e){return e?On(n,e):En(n)}function Zn(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return Rn(n,ln(n))}function Fn(n,e){var t=(0,l.m)(n)?n:function(){return n},r=function(n){return n.error(t())};return new v(e?function(n){return e.schedule(r,0,n)}:r)}!function(n){n.NEXT="N",n.ERROR="E",n.COMPLETE="C"}(gn||(gn={}));var jn=function(){function n(n,e,t){this.kind=n,this.value=e,this.error=t,this.hasValue="N"===n}return n.prototype.observe=function(n){return qn(this,n)},n.prototype.do=function(n,e,t){var r=this,u=r.kind,i=r.value,o=r.error;return"N"===u?null==n?void 0:n(i):"E"===u?null==e?void 0:e(o):null==t?void 0:t()},n.prototype.accept=function(n,e,t){var r;return(0,l.m)(null===(r=n)||void 0===r?void 0:r.next)?this.observe(n):this.do(n,e,t)},n.prototype.toObservable=function(){var n=this,e=n.kind,t=n.value,r=n.error,u="N"===e?Zn(t):"E"===e?Fn((function(){return r})):"C"===e?un:0;if(!u)throw new TypeError("Unexpected notification kind "+e);return u},n.createNext=function(e){return new n("N",e)},n.createError=function(e){return new n("E",void 0,e)},n.createComplete=function(){return n.completeNotification},n.completeNotification=new n("C"),n}();function qn(n,e){var t,r,u,i=n,o=i.kind,c=i.value,s=i.error;if("string"!=typeof o)throw new TypeError('Invalid notification, missing "kind"');"N"===o?null===(t=e.next)||void 0===t||t.call(e,c):"E"===o?null===(r=e.error)||void 0===r||r.call(e,s):null===(u=e.complete)||void 0===u||u.call(e)}var Nn=t(22967);function Pn(n){return!!n&&(n instanceof v||(0,l.m)(n.lift)&&(0,l.m)(n.subscribe))}var Ln=(0,C.d)((function(n){return function(){n(this),this.name="EmptyError",this.message="no elements in sequence"}}));function Wn(n,e){var t="object"==typeof e;return new Promise((function(r,u){var i,o=!1;n.subscribe({next:function(n){i=n,o=!0},error:u,complete:function(){o?r(i):t?r(e.defaultValue):u(new Ln)}})}))}function zn(n,e){var t="object"==typeof e;return new Promise((function(u,i){var o=new r.Hp({next:function(n){u(n),o.unsubscribe()},error:i,complete:function(){t?u(e.defaultValue):i(new Ln)}});n.subscribe(o)}))}var Mn=(0,C.d)((function(n){return function(){n(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})),Un=(0,C.d)((function(n){return function(e){n(this),this.name="NotFoundError",this.message=e}})),Vn=(0,C.d)((function(n){return function(e){n(this),this.name="SequenceError",this.message=e}}));function Xn(n){return n instanceof Date&&!isNaN(n)}var Bn=(0,C.d)((function(n){return function(e){void 0===e&&(e=null),n(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e}}));function Hn(n,e){var t=Xn(n)?{first:n}:"number"==typeof n?{each:n}:n,r=t.first,u=t.each,i=t.with,o=void 0===i?Yn:i,c=t.scheduler,s=void 0===c?null!=e?e:D:c,f=t.meta,l=void 0===f?null:f;if(null==r&&null==u)throw new TypeError("No timeout provided.");return(0,b.e)((function(n,e){var t,i,c=null,f=0,a=function(n){i=Cn(e,s,(function(){try{t.unsubscribe(),En(o({meta:l,lastValue:c,seen:f})).subscribe(e)}catch(n){e.error(n)}}),n)};t=n.subscribe((0,p.x)(e,(function(n){null==i||i.unsubscribe(),f++,e.next(c=n),u>0&&a(u)}),void 0,void 0,(function(){(null==i?void 0:i.closed)||null==i||i.unsubscribe(),c=null}))),!f&&a(null!=r?"number"==typeof r?r:+r-s.now():u)}))}function Yn(n){throw new Bn(n)}var Dn=t(25948),Jn=t(29127),Kn=Array.isArray;function Qn(n){return(0,Jn.U)((function(e){return function(n,e){return Kn(e)?n.apply(void 0,(0,d.ev)([],(0,d.CR)(e))):n(e)}(n,e)}))}function Gn(n,e,t,r){if(t){if(!cn(t))return function(){for(var u=[],i=0;i<arguments.length;i++)u[i]=arguments[i];return Gn(n,e,r).apply(this,u).pipe(Qn(t))};r=t}return r?function(){for(var t=[],u=0;u<arguments.length;u++)t[u]=arguments[u];return Gn(n,e).apply(this,t).pipe(Tn(r),Sn(r))}:function(){for(var t=this,r=[],u=0;u<arguments.length;u++)r[u]=arguments[u];var i=new F,o=!0;return new v((function(u){var c=i.subscribe(u);if(o){o=!1;var s=!1,f=!1;e.apply(t,(0,d.ev)((0,d.ev)([],(0,d.CR)(r)),[function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(n){var r=e.shift();if(null!=r)return void i.error(r)}i.next(1<e.length?e:e[0]),f=!0,s&&i.complete()}])),f&&i.complete(),s=!0}return c}))}}function $n(n,e,t){return Gn(!1,n,e,t)}function ne(n,e,t){return Gn(!0,n,e,t)}var ee=Array.isArray,te=Object.getPrototypeOf,re=Object.prototype,ue=Object.keys;function ie(n){if(1===n.length){var e=n[0];if(ee(e))return{args:e,keys:null};if((r=e)&&"object"==typeof r&&te(r)===re){var t=ue(e);return{args:t.map((function(n){return e[n]})),keys:t}}}var r;return{args:n,keys:null}}function oe(n,e){return n.reduce((function(n,t,r){return n[t]=e[r],n}),{})}function ce(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=ln(n),r=fn(n),u=ie(n),i=u.args,c=u.keys;if(0===i.length)return Rn([],t);var s=new v(se(i,t,c?function(n){return oe(c,n)}:o));return r?s.pipe(Qn(r)):s}function se(n,e,t){return void 0===t&&(t=o),function(r){fe(e,(function(){for(var u=n.length,i=new Array(u),o=u,c=u,s=function(u){fe(e,(function(){var s=Rn(n[u],e),f=!1;s.subscribe((0,p.x)(r,(function(n){i[u]=n,f||(f=!0,c--),c||r.next(t(i.slice()))}),(function(){--o||r.complete()})))}),r)},f=0;f<u;f++)s(f)}),r)}}function fe(n,e,t){n?Cn(t,n,e):e()}function le(n,e,t,r,u,i,o,c){var s=[],f=0,l=0,a=!1,v=function(){!a||s.length||f||e.complete()},h=function(n){return f<r?d(n):s.push(n)},d=function(n){i&&e.next(n),f++;var c=!1;En(t(n,l++)).subscribe((0,p.x)(e,(function(n){null==u||u(n),i?h(n):e.next(n)}),(function(){c=!0}),void 0,(function(){if(c)try{f--;for(var n=function(){var n=s.shift();o?Cn(e,o,(function(){return d(n)})):d(n)};s.length&&f<r;)n();v()}catch(n){e.error(n)}})))};return n.subscribe((0,p.x)(e,h,(function(){a=!0,v()}))),function(){null==c||c()}}function ae(n,e,t){return void 0===t&&(t=1/0),(0,l.m)(e)?ae((function(t,r){return(0,Jn.U)((function(n,u){return e(t,n,r,u)}))(En(n(t,r)))}),t):("number"==typeof e&&(t=e),(0,b.e)((function(e,r){return le(e,r,n,t)})))}function ve(n){return void 0===n&&(n=1/0),ae(o,n)}function he(){return ve(1)}function de(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return he()(Rn(n,ln(n)))}function be(n){return new v((function(e){En(n()).subscribe(e)}))}var pe={connector:function(){return new I},resetOnDisconnect:!0};function me(n,e){void 0===e&&(e=pe);var t=null,r=e.connector,u=e.resetOnDisconnect,i=void 0===u||u,o=r(),c=new v((function(n){return o.subscribe(n)}));return c.connect=function(){return t&&!t.closed||(t=be((function(){return n})).subscribe(o),i&&t.add((function(){return o=r()}))),t},c}function ye(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=fn(n),r=ie(n),u=r.args,i=r.keys,o=new v((function(n){var e=u.length;if(e)for(var t=new Array(e),r=e,o=e,c=function(e){var c=!1;En(u[e]).subscribe((0,p.x)(n,(function(n){c||(c=!0,o--),t[e]=n}),(function(){return r--}),void 0,(function(){r&&c||(o||n.next(i?oe(i,t):t),n.complete())})))},s=0;s<e;s++)c(s);else n.complete()}));return t?o.pipe(Qn(t)):o}var xe=["addListener","removeListener"],we=["addEventListener","removeEventListener"],ge=["on","off"];function _e(n,e,t,r){if((0,l.m)(t)&&(r=t,t=void 0),r)return _e(n,e,t).pipe(Qn(r));var u=(0,d.CR)(function(n){return(0,l.m)(n.addEventListener)&&(0,l.m)(n.removeEventListener)}(n)?we.map((function(r){return function(u){return n[r](e,u,t)}})):function(n){return(0,l.m)(n.addListener)&&(0,l.m)(n.removeListener)}(n)?xe.map(Ee(n,e)):function(n){return(0,l.m)(n.on)&&(0,l.m)(n.off)}(n)?ge.map(Ee(n,e)):[],2),i=u[0],o=u[1];if(!i&&vn(n))return ae((function(n){return _e(n,e,t)}))(En(n));if(!i)throw new TypeError("Invalid event target");return new v((function(n){var e=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.next(1<e.length?e:e[0])};return i(e),function(){return o(e)}}))}function Ee(n,e){return function(t){return function(r){return n[t](e,r)}}}function Ae(n,e,t){return t?Ae(n,e).pipe(Qn(t)):new v((function(t){var r=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return t.next(1===n.length?n[0]:n)},u=n(r);return(0,l.m)(e)?function(){return e(r,u)}:void 0}))}function Ce(n,e,t,r,u){var i,c,s,f;function l(){var n;return(0,d.Jh)(this,(function(r){switch(r.label){case 0:n=f,r.label=1;case 1:return e&&!e(n)?[3,4]:[4,s(n)];case 2:r.sent(),r.label=3;case 3:return n=t(n),[3,1];case 4:return[2]}}))}return 1===arguments.length?(f=(i=n).initialState,e=i.condition,t=i.iterate,c=i.resultSelector,s=void 0===c?o:c,u=i.scheduler):(f=n,!r||cn(r)?(s=o,u=r):s=r),be(u?function(){return In(l(),u)}:l)}function Se(n,e,t){return be((function(){return n()?e:t}))}function Te(n,e,t){void 0===n&&(n=0),void 0===t&&(t=J);var r=-1;return null!=e&&(cn(e)?t=e:r=e),new v((function(e){var u=Xn(n)?+n-t.now():n;u<0&&(u=0);var i=0;return t.schedule((function(){e.closed||(e.next(i++),0<=r?this.schedule(void 0,r):e.complete())}),u)}))}function Ie(n,e){return void 0===n&&(n=0),void 0===e&&(e=D),n<0&&(n=0),Te(n,n,e)}function ke(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=ln(n),r=an(n,1/0),u=n;return u.length?1===u.length?En(u[0]):ve(r)(Rn(u,t)):un}var Oe=new v(Nn.Z);function Re(){return Oe}var Ze=Array.isArray;function Fe(n){return 1===n.length&&Ze(n[0])?n[0]:n}function je(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=Fe(n);return new v((function(n){var e=0,r=function(){if(e<t.length){var u=void 0;try{u=En(t[e++])}catch(n){return void r()}var i=new p.Q(n,void 0,Nn.Z,Nn.Z);u.subscribe(i),i.add(r)}else n.complete()};r()}))}function qe(n,e){return Rn(Object.entries(n),e)}function Ne(n,e){return function(t,r){return!n.call(e,t,r)}}function Pe(n,e){return(0,b.e)((function(t,r){var u=0;t.subscribe((0,p.x)(r,(function(t){return n.call(e,t,u++)&&r.next(t)})))}))}function Le(n,e,t){return[Pe(e,t)(En(n)),Pe(Ne(e,t))(En(n))]}function We(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return 1===(n=Fe(n)).length?En(n[0]):new v(ze(n))}function ze(n){return function(e){for(var t=[],r=function(r){t.push(En(n[r]).subscribe((0,p.x)(e,(function(n){if(t){for(var u=0;u<t.length;u++)u!==r&&t[u].unsubscribe();t=null}e.next(n)}))))},u=0;t&&!e.closed&&u<n.length;u++)r(u)}}function Me(n,e,t){if(null==e&&(e=n,n=0),e<=0)return un;var r=e+n;return new v(t?function(e){var u=n;return t.schedule((function(){u<r?(e.next(u++),this.schedule()):e.complete()}))}:function(e){for(var t=n;t<r&&!e.closed;)e.next(t++);e.complete()})}function Ue(n,e){return new v((function(t){var r=n(),u=e(r);return(u?En(u):un).subscribe(t),function(){r&&r.unsubscribe()}}))}function Ve(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=fn(n),r=Fe(n);return r.length?new v((function(n){var e=r.map((function(){return[]})),u=r.map((function(){return!1}));n.add((function(){e=u=null}));for(var i=function(i){En(r[i]).subscribe((0,p.x)(n,(function(r){if(e[i].push(r),e.every((function(n){return n.length}))){var o=e.map((function(n){return n.shift()}));n.next(t?t.apply(void 0,(0,d.ev)([],(0,d.CR)(o))):o),e.some((function(n,e){return!n.length&&u[e]}))&&n.complete()}}),(function(){u[i]=!0,!e[i].length&&n.complete()})))},o=0;!n.closed&&o<r.length;o++)i(o);return function(){e=u=null}})):un}function Xe(n){return(0,b.e)((function(e,t){var r=!1,u=null,i=null,o=!1,c=function(){if(null==i||i.unsubscribe(),i=null,r){r=!1;var n=u;u=null,t.next(n)}o&&t.complete()},s=function(){i=null,o&&t.complete()};e.subscribe((0,p.x)(t,(function(e){r=!0,u=e,i||En(n(e)).subscribe(i=(0,p.x)(t,c,s))}),(function(){o=!0,(!r||!i||i.closed)&&t.complete()})))}))}function Be(n,e){return void 0===e&&(e=D),Xe((function(){return Te(n,e)}))}function He(n){return(0,b.e)((function(e,t){var r=[];return e.subscribe((0,p.x)(t,(function(n){return r.push(n)}),(function(){t.next(r),t.complete()}))),En(n).subscribe((0,p.x)(t,(function(){var n=r;r=[],t.next(n)}),Nn.Z)),function(){r=null}}))}function Ye(n,e){return void 0===e&&(e=null),e=null!=e?e:n,(0,b.e)((function(t,r){var u=[],i=0;t.subscribe((0,p.x)(r,(function(t){var o,c,s,f,l=null;i++%e==0&&u.push([]);try{for(var a=(0,d.XA)(u),v=a.next();!v.done;v=a.next())(p=v.value).push(t),n<=p.length&&(l=null!=l?l:[]).push(p)}catch(n){o={error:n}}finally{try{v&&!v.done&&(c=a.return)&&c.call(a)}finally{if(o)throw o.error}}if(l)try{for(var h=(0,d.XA)(l),b=h.next();!b.done;b=h.next()){var p=b.value;(0,T.P)(u,p),r.next(p)}}catch(n){s={error:n}}finally{try{b&&!b.done&&(f=h.return)&&f.call(h)}finally{if(s)throw s.error}}}),(function(){var n,e;try{for(var t=(0,d.XA)(u),i=t.next();!i.done;i=t.next()){var o=i.value;r.next(o)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(n)throw n.error}}r.complete()}),void 0,(function(){u=null})))}))}function De(n){for(var e,t,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var o=null!==(e=ln(r))&&void 0!==e?e:D,c=null!==(t=r[0])&&void 0!==t?t:null,s=r[1]||1/0;return(0,b.e)((function(e,t){var r=[],i=!1,f=function(n){var e=n.buffer;n.subs.unsubscribe(),(0,T.P)(r,n),t.next(e),i&&l()},l=function(){if(r){var e=new u.w0;t.add(e);var i={buffer:[],subs:e};r.push(i),Cn(e,o,(function(){return f(i)}),n)}};null!==c&&c>=0?Cn(t,o,l,c,!0):i=!0,l();var a=(0,p.x)(t,(function(n){var e,t,u=r.slice();try{for(var i=(0,d.XA)(u),o=i.next();!o.done;o=i.next()){var c=o.value,l=c.buffer;l.push(n),s<=l.length&&f(c)}}catch(n){e={error:n}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}}),(function(){for(;null==r?void 0:r.length;)t.next(r.shift().buffer);null==a||a.unsubscribe(),t.complete(),t.unsubscribe()}),void 0,(function(){return r=null}));e.subscribe(a)}))}function Je(n,e){return(0,b.e)((function(t,r){var i=[];En(n).subscribe((0,p.x)(r,(function(n){var t=[];i.push(t);var o=new u.w0;o.add(En(e(n)).subscribe((0,p.x)(r,(function(){(0,T.P)(i,t),r.next(t),o.unsubscribe()}),Nn.Z)))}),Nn.Z)),t.subscribe((0,p.x)(r,(function(n){var e,t;try{for(var r=(0,d.XA)(i),u=r.next();!u.done;u=r.next())u.value.push(n)}catch(n){e={error:n}}finally{try{u&&!u.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}}),(function(){for(;i.length>0;)r.next(i.shift());r.complete()})))}))}function Ke(n){return(0,b.e)((function(e,t){var r=null,u=null,i=function(){null==u||u.unsubscribe();var e=r;r=[],e&&t.next(e),En(n()).subscribe(u=(0,p.x)(t,i,Nn.Z))};i(),e.subscribe((0,p.x)(t,(function(n){return null==r?void 0:r.push(n)}),(function(){r&&t.next(r),t.complete()}),void 0,(function(){return r=u=null})))}))}function Qe(n){return(0,b.e)((function(e,t){var r,u=null,i=!1;u=e.subscribe((0,p.x)(t,void 0,void 0,(function(o){r=En(n(o,Qe(n)(e))),u?(u.unsubscribe(),u=null,r.subscribe(t)):i=!0}))),i&&(u.unsubscribe(),u=null,r.subscribe(t))}))}function Ge(n,e,t,r,u){return function(i,o){var c=t,s=e,f=0;i.subscribe((0,p.x)(o,(function(e){var t=f++;s=c?n(s,e,t):(c=!0,e),r&&o.next(s)}),u&&function(){c&&o.next(s),o.complete()}))}}function $e(n,e){return(0,b.e)(Ge(n,e,arguments.length>=2,!1,!0))}var nt=function(n,e){return n.push(e),n};function et(){return(0,b.e)((function(n,e){$e(nt,[])(n).subscribe(e)}))}function tt(n,e){return c(et(),ae((function(e){return n(e)})),e?Qn(e):o)}function rt(n){return tt(ce,n)}var ut=rt;function it(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=fn(n);return t?c(it.apply(void 0,(0,d.ev)([],(0,d.CR)(n))),Qn(t)):(0,b.e)((function(e,t){se((0,d.ev)([e],(0,d.CR)(Fe(n))))(t)}))}function ot(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return it.apply(void 0,(0,d.ev)([],(0,d.CR)(n)))}function ct(n,e){return(0,l.m)(e)?ae(n,e,1):ae(n,1)}function st(n,e){return(0,l.m)(e)?ct((function(){return n}),e):ct((function(){return n}))}function ft(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=ln(n);return(0,b.e)((function(e,r){he()(Rn((0,d.ev)([e],(0,d.CR)(n)),t)).subscribe(r)}))}function lt(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return ft.apply(void 0,(0,d.ev)([],(0,d.CR)(n)))}var at={connector:function(){return new I}};function vt(n,e){void 0===e&&(e=at);var t=e.connector;return(0,b.e)((function(e,r){var u,i=t();En(n((u=i,new v((function(n){return u.subscribe(n)}))))).subscribe(r),r.add(e.subscribe(i))}))}function ht(n){return $e((function(e,t,r){return!n||n(t,r)?e+1:e}),0)}function dt(n){return(0,b.e)((function(e,t){var r=!1,u=null,i=null,o=function(){if(null==i||i.unsubscribe(),i=null,r){r=!1;var n=u;u=null,t.next(n)}};e.subscribe((0,p.x)(t,(function(e){null==i||i.unsubscribe(),r=!0,u=e,i=(0,p.x)(t,o,Nn.Z),En(n(e)).subscribe(i)}),(function(){o(),t.complete()}),void 0,(function(){u=i=null})))}))}function bt(n,e){return void 0===e&&(e=D),(0,b.e)((function(t,r){var u=null,i=null,o=null,c=function(){if(u){u.unsubscribe(),u=null;var n=i;i=null,r.next(n)}};function s(){var t=o+n,i=e.now();if(i<t)return u=this.schedule(void 0,t-i),void r.add(u);c()}t.subscribe((0,p.x)(r,(function(t){i=t,o=e.now(),u||(u=e.schedule(s,n),r.add(u))}),(function(){c(),r.complete()}),void 0,(function(){i=u=null})))}))}function pt(n){return(0,b.e)((function(e,t){var r=!1;e.subscribe((0,p.x)(t,(function(n){r=!0,t.next(n)}),(function(){r||t.next(n),t.complete()})))}))}function mt(n){return n<=0?function(){return un}:(0,b.e)((function(e,t){var r=0;e.subscribe((0,p.x)(t,(function(e){++r<=n&&(t.next(e),n<=r&&t.complete())})))}))}function yt(){return(0,b.e)((function(n,e){n.subscribe((0,p.x)(e,Nn.Z))}))}function xt(n){return(0,Jn.U)((function(){return n}))}function wt(n,e){return e?function(t){return de(e.pipe(mt(1),yt()),t.pipe(wt(n)))}:ae((function(e,t){return En(n(e,t)).pipe(mt(1),xt(e))}))}function gt(n,e){void 0===e&&(e=D);var t=Te(n,e);return wt((function(){return t}))}function _t(){return(0,b.e)((function(n,e){n.subscribe((0,p.x)(e,(function(n){return qn(n,e)})))}))}function Et(n,e){return(0,b.e)((function(t,r){var u=new Set;t.subscribe((0,p.x)(r,(function(e){var t=n?n(e):e;u.has(t)||(u.add(t),r.next(e))}))),e&&En(e).subscribe((0,p.x)(r,(function(){return u.clear()}),Nn.Z))}))}function At(n,e){return void 0===e&&(e=o),n=null!=n?n:Ct,(0,b.e)((function(t,r){var u,i=!0;t.subscribe((0,p.x)(r,(function(t){var o=e(t);!i&&n(u,o)||(i=!1,u=o,r.next(t))})))}))}function Ct(n,e){return n===e}function St(n,e){return At((function(t,r){return e?e(t[n],r[n]):t[n]===r[n]}))}function Tt(n){return void 0===n&&(n=It),(0,b.e)((function(e,t){var r=!1;e.subscribe((0,p.x)(t,(function(n){r=!0,t.next(n)}),(function(){return r?t.complete():t.error(n())})))}))}function It(){return new Ln}function kt(n,e){if(n<0)throw new Mn;var t=arguments.length>=2;return function(r){return r.pipe(Pe((function(e,t){return t===n})),mt(1),t?pt(e):Tt((function(){return new Mn})))}}function Ot(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return function(e){return de(e,Zn.apply(void 0,(0,d.ev)([],(0,d.CR)(n))))}}function Rt(n,e){return(0,b.e)((function(t,r){var u=0;t.subscribe((0,p.x)(r,(function(i){n.call(e,i,u++,t)||(r.next(!1),r.complete())}),(function(){r.next(!0),r.complete()})))}))}function Zt(n,e){return e?function(t){return t.pipe(Zt((function(t,r){return En(n(t,r)).pipe((0,Jn.U)((function(n,u){return e(t,n,r,u)})))})))}:(0,b.e)((function(e,t){var r=0,u=null,i=!1;e.subscribe((0,p.x)(t,(function(e){u||(u=(0,p.x)(t,void 0,(function(){u=null,i&&t.complete()})),En(n(e,r++)).subscribe(u))}),(function(){i=!0,!u&&t.complete()})))}))}function Ft(){return Zt(o)}var jt=Ft;function qt(n,e,t){return void 0===e&&(e=1/0),e=(e||0)<1?1/0:e,(0,b.e)((function(r,u){return le(r,u,n,e,void 0,!0,t)}))}function Nt(n){return(0,b.e)((function(e,t){try{e.subscribe(t)}finally{t.add(n)}}))}function Pt(n,e){return(0,b.e)(Lt(n,e,"value"))}function Lt(n,e,t){var r="index"===t;return function(t,u){var i=0;t.subscribe((0,p.x)(u,(function(o){var c=i++;n.call(e,o,c,t)&&(u.next(r?c:o),u.complete())}),(function(){u.next(r?-1:void 0),u.complete()})))}}function Wt(n,e){return(0,b.e)(Lt(n,e,"index"))}function zt(n,e){var t=arguments.length>=2;return function(r){return r.pipe(n?Pe((function(e,t){return n(e,t,r)})):o,mt(1),t?pt(e):Tt((function(){return new Ln})))}}function Mt(n,e,t,r){return(0,b.e)((function(u,i){var o;e&&"function"!=typeof e?(t=e.duration,o=e.element,r=e.connector):o=e;var c=new Map,s=function(n){c.forEach(n),n(i)},f=function(n){return s((function(e){return e.error(n)}))},l=0,a=!1,h=new p.Q(i,(function(e){try{var u=n(e),s=c.get(u);if(!s){c.set(u,s=r?r():new I);var d=(m=u,y=s,(x=new v((function(n){l++;var e=y.subscribe(n);return function(){e.unsubscribe(),0==--l&&a&&h.unsubscribe()}}))).key=m,x);if(i.next(d),t){var b=(0,p.x)(s,(function(){s.complete(),null==b||b.unsubscribe()}),void 0,void 0,(function(){return c.delete(u)}));h.add(En(t(d)).subscribe(b))}}s.next(o?o(e):e)}catch(n){f(n)}var m,y,x}),(function(){return s((function(n){return n.complete()}))}),f,(function(){return c.clear()}),(function(){return a=!0,0===l}));u.subscribe(h)}))}function Ut(){return(0,b.e)((function(n,e){n.subscribe((0,p.x)(e,(function(){e.next(!1),e.complete()}),(function(){e.next(!0),e.complete()})))}))}function Vt(n){return n<=0?function(){return un}:(0,b.e)((function(e,t){var r=[];e.subscribe((0,p.x)(t,(function(e){r.push(e),n<r.length&&r.shift()}),(function(){var n,e;try{for(var u=(0,d.XA)(r),i=u.next();!i.done;i=u.next()){var o=i.value;t.next(o)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(e=u.return)&&e.call(u)}finally{if(n)throw n.error}}t.complete()}),void 0,(function(){r=null})))}))}function Xt(n,e){var t=arguments.length>=2;return function(r){return r.pipe(n?Pe((function(e,t){return n(e,t,r)})):o,Vt(1),t?pt(e):Tt((function(){return new Ln})))}}function Bt(){return(0,b.e)((function(n,e){n.subscribe((0,p.x)(e,(function(n){e.next(jn.createNext(n))}),(function(){e.next(jn.createComplete()),e.complete()}),(function(n){e.next(jn.createError(n)),e.complete()})))}))}function Ht(n){return $e((0,l.m)(n)?function(e,t){return n(e,t)>0?e:t}:function(n,e){return n>e?n:e})}var Yt=ae;function Dt(n,e,t){return void 0===t&&(t=1/0),(0,l.m)(e)?ae((function(){return n}),e,t):("number"==typeof e&&(t=e),ae((function(){return n}),t))}function Jt(n,e,t){return void 0===t&&(t=1/0),(0,b.e)((function(r,u){var i=e;return le(r,u,(function(e,t){return n(i,e,t)}),t,(function(n){i=n}),!1,void 0,(function(){return i=null}))}))}function Kt(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=ln(n),r=an(n,1/0);return n=Fe(n),(0,b.e)((function(e,u){ve(r)(Rn((0,d.ev)([e],(0,d.CR)(n)),t)).subscribe(u)}))}function Qt(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return Kt.apply(void 0,(0,d.ev)([],(0,d.CR)(n)))}function Gt(n){return $e((0,l.m)(n)?function(e,t){return n(e,t)<0?e:t}:function(n,e){return n<e?n:e})}function $t(n,e){var t=(0,l.m)(n)?n:function(){return n};return(0,l.m)(e)?vt(e,{connector:t}):function(n){return new y(n,t)}}function nr(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=Fe(n);return function(n){return je.apply(void 0,(0,d.ev)([n],(0,d.CR)(t)))}}function er(){return(0,b.e)((function(n,e){var t,r=!1;n.subscribe((0,p.x)(e,(function(n){var u=t;t=n,r&&e.next([u,n]),r=!0})))}))}function tr(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=n.length;if(0===t)throw new Error("list of properties cannot be empty.");return(0,Jn.U)((function(e){for(var r=e,u=0;u<t;u++){var i=null==r?void 0:r[n[u]];if(void 0===i)return;r=i}return r}))}function rr(n){return n?function(e){return vt(n)(e)}:function(n){return $t(new I)(n)}}function ur(n){return function(e){var t=new O(n);return new y(e,(function(){return t}))}}function ir(){return function(n){var e=new F;return new y(n,(function(){return e}))}}function or(n,e,t,r){t&&!(0,l.m)(t)&&(r=t);var u=(0,l.m)(t)?t:void 0;return function(t){return $t(new Z(n,e,r),u)(t)}}function cr(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return n.length?(0,b.e)((function(e,t){ze((0,d.ev)([e],(0,d.CR)(n)))(t)})):o}function sr(n){var e,t,r=1/0;return null!=n&&("object"==typeof n?(e=n.count,r=void 0===e?1/0:e,t=n.delay):r=n),r<=0?function(){return un}:(0,b.e)((function(n,e){var u,i=0,o=function(){if(null==u||u.unsubscribe(),u=null,null!=t){var n="number"==typeof t?Te(t):En(t(i)),r=(0,p.x)(e,(function(){r.unsubscribe(),c()}));n.subscribe(r)}else c()},c=function(){var t=!1;u=n.subscribe((0,p.x)(e,void 0,(function(){++i<r?u?o():t=!0:e.complete()}))),t&&o()};c()}))}function fr(n){return(0,b.e)((function(e,t){var r,u,i=!1,o=!1,c=!1,s=function(){return c&&o&&(t.complete(),!0)},f=function(){c=!1,r=e.subscribe((0,p.x)(t,void 0,(function(){c=!0,!s()&&(u||(u=new I,En(n(u)).subscribe((0,p.x)(t,(function(){r?f():i=!0}),(function(){o=!0,s()})))),u).next()}))),i&&(r.unsubscribe(),r=null,i=!1,f())};f()}))}function lr(n){var e;void 0===n&&(n=1/0);var t=(e=n&&"object"==typeof n?n:{count:n}).count,r=void 0===t?1/0:t,u=e.delay,i=e.resetOnSuccess,c=void 0!==i&&i;return r<=0?o:(0,b.e)((function(n,e){var t,i=0,o=function(){var s=!1;t=n.subscribe((0,p.x)(e,(function(n){c&&(i=0),e.next(n)}),void 0,(function(n){if(i++<r){var c=function(){t?(t.unsubscribe(),t=null,o()):s=!0};if(null!=u){var f="number"==typeof u?Te(u):En(u(n,i)),l=(0,p.x)(e,(function(){l.unsubscribe(),c()}),(function(){e.complete()}));f.subscribe(l)}else c()}else e.error(n)}))),s&&(t.unsubscribe(),t=null,o())};o()}))}function ar(n){return(0,b.e)((function(e,t){var r,u,i=!1,o=function(){r=e.subscribe((0,p.x)(t,void 0,void 0,(function(e){u||(u=new I,En(n(u)).subscribe((0,p.x)(t,(function(){return r?o():i=!0})))),u&&u.next(e)}))),i&&(r.unsubscribe(),r=null,i=!1,o())};o()}))}function vr(n){return(0,b.e)((function(e,t){var r=!1,u=null;e.subscribe((0,p.x)(t,(function(n){r=!0,u=n}))),En(n).subscribe((0,p.x)(t,(function(){if(r){r=!1;var n=u;u=null,t.next(n)}}),Nn.Z))}))}function hr(n,e){return void 0===e&&(e=D),vr(Ie(n,e))}function dr(n,e){return(0,b.e)(Ge(n,e,arguments.length>=2,!0))}function br(n,e){return void 0===e&&(e=function(n,e){return n===e}),(0,b.e)((function(t,r){var u={buffer:[],complete:!1},i={buffer:[],complete:!1},o=function(n){r.next(n),r.complete()},c=function(n,t){var u=(0,p.x)(r,(function(r){var u=t.buffer,i=t.complete;0===u.length?i?o(!1):n.buffer.push(r):!e(r,u.shift())&&o(!1)}),(function(){n.complete=!0;var e=t.complete,r=t.buffer;e&&o(0===r.length),null==u||u.unsubscribe()}));return u};t.subscribe(c(u,i)),En(n).subscribe(c(i,u))}))}function pr(n){void 0===n&&(n={});var e=n.connector,t=void 0===e?function(){return new I}:e,u=n.resetOnError,i=void 0===u||u,o=n.resetOnComplete,c=void 0===o||o,s=n.resetOnRefCountZero,f=void 0===s||s;return function(n){var e,u,o,s=0,l=!1,a=!1,v=function(){null==u||u.unsubscribe(),u=void 0},h=function(){v(),e=o=void 0,l=a=!1},d=function(){var n=e;h(),null==n||n.unsubscribe()};return(0,b.e)((function(n,b){s++,a||l||v();var p=o=null!=o?o:t();b.add((function(){0!=--s||a||l||(u=mr(d,f))})),p.subscribe(b),!e&&s>0&&(e=new r.Hp({next:function(n){return p.next(n)},error:function(n){a=!0,v(),u=mr(h,i,n),p.error(n)},complete:function(){l=!0,v(),u=mr(h,c),p.complete()}}),En(n).subscribe(e))}))(n)}}function mr(n,e){for(var t=[],u=2;u<arguments.length;u++)t[u-2]=arguments[u];if(!0!==e){if(!1!==e){var i=new r.Hp({next:function(){i.unsubscribe(),n()}});return En(e.apply(void 0,(0,d.ev)([],(0,d.CR)(t)))).subscribe(i)}}else n()}function yr(n,e,t){var r,u,i,o,c=!1;return n&&"object"==typeof n?(r=n.bufferSize,o=void 0===r?1/0:r,u=n.windowTime,e=void 0===u?1/0:u,c=void 0!==(i=n.refCount)&&i,t=n.scheduler):o=null!=n?n:1/0,pr({connector:function(){return new Z(o,e,t)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:c})}function xr(n){return(0,b.e)((function(e,t){var r,u=!1,i=!1,o=0;e.subscribe((0,p.x)(t,(function(c){i=!0,n&&!n(c,o++,e)||(u&&t.error(new Vn("Too many matching values")),u=!0,r=c)}),(function(){u?(t.next(r),t.complete()):t.error(i?new Un("No matching values"):new Ln)})))}))}function wr(n){return Pe((function(e,t){return n<=t}))}function gr(n){return n<=0?o:(0,b.e)((function(e,t){var r=new Array(n),u=0;return e.subscribe((0,p.x)(t,(function(e){var i=u++;if(i<n)r[i]=e;else{var o=i%n,c=r[o];r[o]=e,t.next(c)}}))),function(){r=null}}))}function _r(n){return(0,b.e)((function(e,t){var r=!1,u=(0,p.x)(t,(function(){null==u||u.unsubscribe(),r=!0}),Nn.Z);En(n).subscribe(u),e.subscribe((0,p.x)(t,(function(n){return r&&t.next(n)})))}))}function Er(n){return(0,b.e)((function(e,t){var r=!1,u=0;e.subscribe((0,p.x)(t,(function(e){return(r||(r=!n(e,u++)))&&t.next(e)})))}))}function Ar(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=ln(n);return(0,b.e)((function(e,r){(t?de(n,e,t):de(n,e)).subscribe(r)}))}function Cr(n,e){return(0,b.e)((function(t,r){var u=null,i=0,o=!1,c=function(){return o&&!u&&r.complete()};t.subscribe((0,p.x)(r,(function(t){null==u||u.unsubscribe();var o=0,s=i++;En(n(t,s)).subscribe(u=(0,p.x)(r,(function(n){return r.next(e?e(t,n,s,o++):n)}),(function(){u=null,c()})))}),(function(){o=!0,c()})))}))}function Sr(){return Cr(o)}function Tr(n,e){return(0,l.m)(e)?Cr((function(){return n}),e):Cr((function(){return n}))}function Ir(n,e){return(0,b.e)((function(t,r){var u=e;return Cr((function(e,t){return n(u,e,t)}),(function(n,e){return u=e,e}))(t).subscribe(r),function(){u=null}}))}function kr(n){return(0,b.e)((function(e,t){En(n).subscribe((0,p.x)(t,(function(){return t.complete()}),Nn.Z)),!t.closed&&e.subscribe(t)}))}function Or(n,e){return void 0===e&&(e=!1),(0,b.e)((function(t,r){var u=0;t.subscribe((0,p.x)(r,(function(t){var i=n(t,u++);(i||e)&&r.next(t),!i&&r.complete()})))}))}function Rr(n,e,t){var r=(0,l.m)(n)||e||t?{next:n,error:e,complete:t}:n;return r?(0,b.e)((function(n,e){var t;null===(t=r.subscribe)||void 0===t||t.call(r);var u=!0;n.subscribe((0,p.x)(e,(function(n){var t;null===(t=r.next)||void 0===t||t.call(r,n),e.next(n)}),(function(){var n;u=!1,null===(n=r.complete)||void 0===n||n.call(r),e.complete()}),(function(n){var t;u=!1,null===(t=r.error)||void 0===t||t.call(r,n),e.error(n)}),(function(){var n,e;u&&(null===(n=r.unsubscribe)||void 0===n||n.call(r)),null===(e=r.finalize)||void 0===e||e.call(r)})))})):o}function Zr(n,e){return(0,b.e)((function(t,r){var u=null!=e?e:{},i=u.leading,o=void 0===i||i,c=u.trailing,s=void 0!==c&&c,f=!1,l=null,a=null,v=!1,h=function(){null==a||a.unsubscribe(),a=null,s&&(m(),v&&r.complete())},d=function(){a=null,v&&r.complete()},b=function(e){return a=En(n(e)).subscribe((0,p.x)(r,h,d))},m=function(){if(f){f=!1;var n=l;l=null,r.next(n),!v&&b(n)}};t.subscribe((0,p.x)(r,(function(n){f=!0,l=n,(!a||a.closed)&&(o?m():b(n))}),(function(){v=!0,(!(s&&f&&a)||a.closed)&&r.complete()})))}))}function Fr(n,e,t){void 0===e&&(e=D);var r=Te(n,e);return Zr((function(){return r}),t)}function jr(n){return void 0===n&&(n=D),(0,b.e)((function(e,t){var r=n.now();e.subscribe((0,p.x)(t,(function(e){var u=n.now(),i=u-r;r=u,t.next(new qr(e,i))})))}))}var qr=function(n,e){this.value=n,this.interval=e};function Nr(n,e,t){var r,u,i;if(t=null!=t?t:J,Xn(n)?r=n:"number"==typeof n&&(u=n),!e)throw new TypeError("No observable provided to switch to");if(i=function(){return e},null==r&&null==u)throw new TypeError("No timeout provided.");return Hn({first:r,each:u,scheduler:t,with:i})}function Pr(n){return void 0===n&&(n=R),(0,Jn.U)((function(e){return{value:e,timestamp:n.now()}}))}function Lr(n){return(0,b.e)((function(e,t){var r=new I;t.next(r.asObservable());var u=function(n){r.error(n),t.error(n)};return e.subscribe((0,p.x)(t,(function(n){return null==r?void 0:r.next(n)}),(function(){r.complete(),t.complete()}),u)),En(n).subscribe((0,p.x)(t,(function(){r.complete(),t.next(r=new I)}),Nn.Z,u)),function(){null==r||r.unsubscribe(),r=null}}))}function Wr(n,e){void 0===e&&(e=0);var t=e>0?e:n;return(0,b.e)((function(e,r){var u=[new I],i=0;r.next(u[0].asObservable()),e.subscribe((0,p.x)(r,(function(e){var o,c;try{for(var s=(0,d.XA)(u),f=s.next();!f.done;f=s.next())f.value.next(e)}catch(n){o={error:n}}finally{try{f&&!f.done&&(c=s.return)&&c.call(s)}finally{if(o)throw o.error}}var l=i-n+1;if(l>=0&&l%t==0&&u.shift().complete(),++i%t==0){var a=new I;u.push(a),r.next(a.asObservable())}}),(function(){for(;u.length>0;)u.shift().complete();r.complete()}),(function(n){for(;u.length>0;)u.shift().error(n);r.error(n)}),(function(){u=null})))}))}function zr(n){for(var e,t,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var o=null!==(e=ln(r))&&void 0!==e?e:D,c=null!==(t=r[0])&&void 0!==t?t:null,s=r[1]||1/0;return(0,b.e)((function(e,t){var r=[],i=!1,f=function(n){var e=n.window,t=n.subs;e.complete(),t.unsubscribe(),(0,T.P)(r,n),i&&l()},l=function(){if(r){var e=new u.w0;t.add(e);var i=new I,c={window:i,subs:e,seen:0};r.push(c),t.next(i.asObservable()),Cn(e,o,(function(){return f(c)}),n)}};null!==c&&c>=0?Cn(t,o,l,c,!0):i=!0,l();var a=function(n){return r.slice().forEach(n)},v=function(n){a((function(e){var t=e.window;return n(t)})),n(t),t.unsubscribe()};return e.subscribe((0,p.x)(t,(function(n){a((function(e){e.window.next(n),s<=++e.seen&&f(e)}))}),(function(){return v((function(n){return n.complete()}))}),(function(n){return v((function(e){return e.error(n)}))}))),function(){r=null}}))}function Mr(n,e){return(0,b.e)((function(t,r){var i=[],o=function(n){for(;0<i.length;)i.shift().error(n);r.error(n)};En(n).subscribe((0,p.x)(r,(function(n){var t=new I;i.push(t);var c,s=new u.w0;try{c=En(e(n))}catch(n){return void o(n)}r.next(t.asObservable()),s.add(c.subscribe((0,p.x)(r,(function(){(0,T.P)(i,t),t.complete(),s.unsubscribe()}),Nn.Z,o)))}),Nn.Z)),t.subscribe((0,p.x)(r,(function(n){var e,t,r=i.slice();try{for(var u=(0,d.XA)(r),o=u.next();!o.done;o=u.next())o.value.next(n)}catch(n){e={error:n}}finally{try{o&&!o.done&&(t=u.return)&&t.call(u)}finally{if(e)throw e.error}}}),(function(){for(;0<i.length;)i.shift().complete();r.complete()}),o,(function(){for(;0<i.length;)i.shift().unsubscribe()})))}))}function Ur(n){return(0,b.e)((function(e,t){var r,u,i=function(n){r.error(n),t.error(n)},o=function(){var e;null==u||u.unsubscribe(),null==r||r.complete(),r=new I,t.next(r.asObservable());try{e=En(n())}catch(n){return void i(n)}e.subscribe(u=(0,p.x)(t,o,o,i))};o(),e.subscribe((0,p.x)(t,(function(n){return r.next(n)}),(function(){r.complete(),t.complete()}),i,(function(){null==u||u.unsubscribe(),r=null})))}))}function Vr(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=fn(n);return(0,b.e)((function(e,r){for(var u=n.length,i=new Array(u),c=n.map((function(){return!1})),s=!1,f=function(e){En(n[e]).subscribe((0,p.x)(r,(function(n){i[e]=n,s||c[e]||(c[e]=!0,(s=c.every(o))&&(c=null))}),Nn.Z))},l=0;l<u;l++)f(l);e.subscribe((0,p.x)(r,(function(n){if(s){var e=(0,d.ev)([n],(0,d.CR)(i));r.next(t?t.apply(void 0,(0,d.ev)([],(0,d.CR)(e))):e)}})))}))}function Xr(n){return tt(Ve,n)}function Br(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return(0,b.e)((function(e,t){Ve.apply(void 0,(0,d.ev)([e],(0,d.CR)(n))).subscribe(t)}))}function Hr(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return Br.apply(void 0,(0,d.ev)([],(0,d.CR)(n)))}}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_form_builder_app=globalThis.webpackChunk_openmrs_esm_form_builder_app||[]).push([[164],{32164:(n,e,t)=>{t.r(e),t.d(e,{ArgumentOutOfRangeError:()=>Mn,AsyncSubject:()=>F,BehaviorSubject:()=>O,ConnectableObservable:()=>y,EMPTY:()=>un,EmptyError:()=>Ln,NEVER:()=>Oe,NotFoundError:()=>Un,Notification:()=>jn,NotificationKind:()=>gn,ObjectUnsubscribedError:()=>S,Observable:()=>v,ReplaySubject:()=>Z,Scheduler:()=>X,SequenceError:()=>Vn,Subject:()=>I,Subscriber:()=>r.Lv,Subscription:()=>u.w0,TimeoutError:()=>Bn,UnsubscriptionError:()=>Dn.B,VirtualAction:()=>rn,VirtualTimeScheduler:()=>tn,animationFrame:()=>en,animationFrameScheduler:()=>nn,animationFrames:()=>g,asap:()=>Y,asapScheduler:()=>H,async:()=>J,asyncScheduler:()=>D,audit:()=>Xe,auditTime:()=>Be,bindCallback:()=>$n,bindNodeCallback:()=>ne,buffer:()=>He,bufferCount:()=>Ye,bufferTime:()=>De,bufferToggle:()=>Je,bufferWhen:()=>Ke,catchError:()=>Qe,combineAll:()=>ut,combineLatest:()=>ce,combineLatestAll:()=>rt,combineLatestWith:()=>ot,concat:()=>de,concatAll:()=>he,concatMap:()=>ct,concatMapTo:()=>st,concatWith:()=>lt,config:()=>f.v,connect:()=>vt,connectable:()=>me,count:()=>ht,debounce:()=>dt,debounceTime:()=>bt,defaultIfEmpty:()=>pt,defer:()=>be,delay:()=>gt,delayWhen:()=>wt,dematerialize:()=>_t,distinct:()=>Et,distinctUntilChanged:()=>At,distinctUntilKeyChanged:()=>St,elementAt:()=>kt,empty:()=>on,endWith:()=>Ot,every:()=>Rt,exhaust:()=>jt,exhaustAll:()=>Ft,exhaustMap:()=>Zt,expand:()=>qt,filter:()=>Pe,finalize:()=>Nt,find:()=>Pt,findIndex:()=>Wt,first:()=>zt,firstValueFrom:()=>zn,flatMap:()=>Yt,forkJoin:()=>ye,from:()=>Rn,fromEvent:()=>_e,fromEventPattern:()=>Ae,generate:()=>Ce,groupBy:()=>Mt,identity:()=>o,ignoreElements:()=>yt,iif:()=>Se,interval:()=>Ie,isEmpty:()=>Ut,isObservable:()=>Pn,last:()=>Xt,lastValueFrom:()=>Wn,map:()=>Jn.U,mapTo:()=>xt,materialize:()=>Bt,max:()=>Ht,merge:()=>ke,mergeAll:()=>ve,mergeMap:()=>ae,mergeMapTo:()=>Dt,mergeScan:()=>Jt,mergeWith:()=>Qt,min:()=>Gt,multicast:()=>$t,never:()=>Re,noop:()=>Nn.Z,observable:()=>i,observeOn:()=>Sn,of:()=>Zn,onErrorResumeNext:()=>je,onErrorResumeNextWith:()=>nr,pairs:()=>qe,pairwise:()=>er,partition:()=>Le,pipe:()=>c,pluck:()=>tr,publish:()=>rr,publishBehavior:()=>ur,publishLast:()=>ir,publishReplay:()=>or,queue:()=>G,queueScheduler:()=>Q,race:()=>We,raceWith:()=>cr,range:()=>Me,reduce:()=>$e,refCount:()=>m,repeat:()=>sr,repeatWhen:()=>fr,retry:()=>lr,retryWhen:()=>ar,sample:()=>vr,sampleTime:()=>hr,scan:()=>dr,scheduled:()=>On,sequenceEqual:()=>br,share:()=>pr,shareReplay:()=>yr,single:()=>xr,skip:()=>wr,skipLast:()=>gr,skipUntil:()=>_r,skipWhile:()=>Er,startWith:()=>Ar,subscribeOn:()=>Tn,switchAll:()=>Sr,switchMap:()=>Cr,switchMapTo:()=>Tr,switchScan:()=>Ir,take:()=>mt,takeLast:()=>Vt,takeUntil:()=>kr,takeWhile:()=>Or,tap:()=>Rr,throttle:()=>Zr,throttleTime:()=>Fr,throwError:()=>Fn,throwIfEmpty:()=>Tt,timeInterval:()=>jr,timeout:()=>Hn,timeoutWith:()=>Nr,timer:()=>Te,timestamp:()=>Pr,toArray:()=>et,using:()=>Ue,window:()=>Lr,windowCount:()=>Wr,windowTime:()=>zr,windowToggle:()=>Mr,windowWhen:()=>Ur,withLatestFrom:()=>Vr,zip:()=>Ve,zipAll:()=>Xr,zipWith:()=>Hr});var r=t(65044),u=t(70204),i="function"==typeof Symbol&&Symbol.observable||"@@observable";function o(n){return n}function c(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return s(n)}function s(n){return 0===n.length?o:1===n.length?n[0]:function(e){return n.reduce((function(n,e){return e(n)}),e)}}var f=t(53912),l=t(58474),a=t(68846),v=function(){function n(n){n&&(this._subscribe=n)}return n.prototype.lift=function(e){var t=new n;return t.source=this,t.operator=e,t},n.prototype.subscribe=function(n,e,t){var i,o=this,c=(i=n)&&i instanceof r.Lv||function(n){return n&&(0,l.m)(n.next)&&(0,l.m)(n.error)&&(0,l.m)(n.complete)}(i)&&(0,u.Nn)(i)?n:new r.Hp(n,e,t);return(0,a.x)((function(){var n=o,e=n.operator,t=n.source;c.add(e?e.call(c,t):t?o._subscribe(c):o._trySubscribe(c))})),c},n.prototype._trySubscribe=function(n){try{return this._subscribe(n)}catch(e){n.error(e)}},n.prototype.forEach=function(n,e){var t=this;return new(e=h(e))((function(e,u){var i=new r.Hp({next:function(e){try{n(e)}catch(n){u(n),i.unsubscribe()}},error:u,complete:e});t.subscribe(i)}))},n.prototype._subscribe=function(n){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(n)},n.prototype[i]=function(){return this},n.prototype.pipe=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return s(n)(this)},n.prototype.toPromise=function(n){var e=this;return new(n=h(n))((function(n,t){var r;e.subscribe((function(n){return r=n}),(function(n){return t(n)}),(function(){return n(r)}))}))},n.create=function(e){return new n(e)},n}();function h(n){var e;return null!==(e=null!=n?n:f.v.Promise)&&void 0!==e?e:Promise}var d=t(35987),b=t(96798),p=t(2566);function m(){return(0,b.e)((function(n,e){var t=null;n._refCount++;var r=(0,p.x)(e,void 0,void 0,void 0,(function(){if(!n||n._refCount<=0||0<--n._refCount)t=null;else{var r=n._connection,u=t;t=null,!r||u&&r!==u||r.unsubscribe(),e.unsubscribe()}}));n.subscribe(r),r.closed||(t=n.connect())}))}var y=function(n){function e(e,t){var r=n.call(this)||this;return r.source=e,r.subjectFactory=t,r._subject=null,r._refCount=0,r._connection=null,(0,b.A)(e)&&(r.lift=e.lift),r}return(0,d.ZT)(e,n),e.prototype._subscribe=function(n){return this.getSubject().subscribe(n)},e.prototype.getSubject=function(){var n=this._subject;return n&&!n.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype._teardown=function(){this._refCount=0;var n=this._connection;this._subject=this._connection=null,null==n||n.unsubscribe()},e.prototype.connect=function(){var n=this,e=this._connection;if(!e){e=this._connection=new u.w0;var t=this.getSubject();e.add(this.source.subscribe((0,p.x)(t,void 0,(function(){n._teardown(),t.complete()}),(function(e){n._teardown(),t.error(e)}),(function(){return n._teardown()})))),e.closed&&(this._connection=null,e=u.w0.EMPTY)}return e},e.prototype.refCount=function(){return m()(this)},e}(v),x={now:function(){return(x.delegate||performance).now()},delegate:void 0},w={schedule:function(n){var e=requestAnimationFrame,t=cancelAnimationFrame,r=w.delegate;r&&(e=r.requestAnimationFrame,t=r.cancelAnimationFrame);var i=e((function(e){t=void 0,n(e)}));return new u.w0((function(){return null==t?void 0:t(i)}))},requestAnimationFrame:function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=w.delegate;return((null==t?void 0:t.requestAnimationFrame)||requestAnimationFrame).apply(void 0,(0,d.ev)([],(0,d.CR)(n)))},cancelAnimationFrame:function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=w.delegate;return((null==t?void 0:t.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,(0,d.ev)([],(0,d.CR)(n)))},delegate:void 0};function g(n){return n?_(n):A}function _(n){return new v((function(e){var t=n||x,r=t.now(),u=0,i=function(){e.closed||(u=w.requestAnimationFrame((function(o){u=0;var c=t.now();e.next({timestamp:n?c:o,elapsed:c-r}),i()})))};return i(),function(){u&&w.cancelAnimationFrame(u)}}))}var E,A=_(),C=t(1819),S=(0,C.d)((function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),T=t(3699),I=function(n){function e(){var e=n.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return(0,d.ZT)(e,n),e.prototype.lift=function(n){var e=new k(this,this);return e.operator=n,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new S},e.prototype.next=function(n){var e=this;(0,a.x)((function(){var t,r;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var u=(0,d.XA)(e.currentObservers),i=u.next();!i.done;i=u.next())i.value.next(n)}catch(n){t={error:n}}finally{try{i&&!i.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}}}))},e.prototype.error=function(n){var e=this;(0,a.x)((function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=n;for(var t=e.observers;t.length;)t.shift().error(n)}}))},e.prototype.complete=function(){var n=this;(0,a.x)((function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var e=n.observers;e.length;)e.shift().complete()}}))},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(e){return this._throwIfClosed(),n.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},e.prototype._innerSubscribe=function(n){var e=this,t=this,r=t.hasError,i=t.isStopped,o=t.observers;return r||i?u.Lc:(this.currentObservers=null,o.push(n),new u.w0((function(){e.currentObservers=null,(0,T.P)(o,n)})))},e.prototype._checkFinalizedStatuses=function(n){var e=this,t=e.hasError,r=e.thrownError,u=e.isStopped;t?n.error(r):u&&n.complete()},e.prototype.asObservable=function(){var n=new v;return n.source=this,n},e.create=function(n,e){return new k(n,e)},e}(v),k=function(n){function e(e,t){var r=n.call(this)||this;return r.destination=e,r.source=t,r}return(0,d.ZT)(e,n),e.prototype.next=function(n){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===t||t.call(e,n)},e.prototype.error=function(n){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===t||t.call(e,n)},e.prototype.complete=function(){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===e||e.call(n)},e.prototype._subscribe=function(n){var e,t;return null!==(t=null===(e=this.source)||void 0===e?void 0:e.subscribe(n))&&void 0!==t?t:u.Lc},e}(I),O=function(n){function e(e){var t=n.call(this)||this;return t._value=e,t}return(0,d.ZT)(e,n),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(e){var t=n.prototype._subscribe.call(this,e);return!t.closed&&e.next(this._value),t},e.prototype.getValue=function(){var n=this,e=n.hasError,t=n.thrownError,r=n._value;if(e)throw t;return this._throwIfClosed(),r},e.prototype.next=function(e){n.prototype.next.call(this,this._value=e)},e}(I),R={now:function(){return(R.delegate||Date).now()},delegate:void 0},Z=function(n){function e(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=R);var u=n.call(this)||this;return u._bufferSize=e,u._windowTime=t,u._timestampProvider=r,u._buffer=[],u._infiniteTimeWindow=!0,u._infiniteTimeWindow=t===1/0,u._bufferSize=Math.max(1,e),u._windowTime=Math.max(1,t),u}return(0,d.ZT)(e,n),e.prototype.next=function(e){var t=this,r=t.isStopped,u=t._buffer,i=t._infiniteTimeWindow,o=t._timestampProvider,c=t._windowTime;r||(u.push(e),!i&&u.push(o.now()+c)),this._trimBuffer(),n.prototype.next.call(this,e)},e.prototype._subscribe=function(n){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(n),t=this._infiniteTimeWindow,r=this._buffer.slice(),u=0;u<r.length&&!n.closed;u+=t?1:2)n.next(r[u]);return this._checkFinalizedStatuses(n),e},e.prototype._trimBuffer=function(){var n=this,e=n._bufferSize,t=n._timestampProvider,r=n._buffer,u=n._infiniteTimeWindow,i=(u?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!u){for(var o=t.now(),c=0,s=1;s<r.length&&r[s]<=o;s+=2)c=s;c&&r.splice(0,c+1)}},e}(I),F=function(n){function e(){var e=null!==n&&n.apply(this,arguments)||this;return e._value=null,e._hasValue=!1,e._isComplete=!1,e}return(0,d.ZT)(e,n),e.prototype._checkFinalizedStatuses=function(n){var e=this,t=e.hasError,r=e._hasValue,u=e._value,i=e.thrownError,o=e.isStopped,c=e._isComplete;t?n.error(i):(o||c)&&(r&&n.next(u),n.complete())},e.prototype.next=function(n){this.isStopped||(this._value=n,this._hasValue=!0)},e.prototype.complete=function(){var e=this,t=e._hasValue,r=e._value;e._isComplete||(this._isComplete=!0,t&&n.prototype.next.call(this,r),n.prototype.complete.call(this))},e}(I),j=function(n){function e(e,t){return n.call(this)||this}return(0,d.ZT)(e,n),e.prototype.schedule=function(n,e){return void 0===e&&(e=0),this},e}(u.w0),q={setInterval:function(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var u=q.delegate;return(null==u?void 0:u.setInterval)?u.setInterval.apply(u,(0,d.ev)([n,e],(0,d.CR)(t))):setInterval.apply(void 0,(0,d.ev)([n,e],(0,d.CR)(t)))},clearInterval:function(n){var e=q.delegate;return((null==e?void 0:e.clearInterval)||clearInterval)(n)},delegate:void 0},N=function(n){function e(e,t){var r=n.call(this,e,t)||this;return r.scheduler=e,r.work=t,r.pending=!1,r}return(0,d.ZT)(e,n),e.prototype.schedule=function(n,e){var t;if(void 0===e&&(e=0),this.closed)return this;this.state=n;var r=this.id,u=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(u,r,e)),this.pending=!0,this.delay=e,this.id=null!==(t=this.id)&&void 0!==t?t:this.requestAsyncId(u,this.id,e),this},e.prototype.requestAsyncId=function(n,e,t){return void 0===t&&(t=0),q.setInterval(n.flush.bind(n,this),t)},e.prototype.recycleAsyncId=function(n,e,t){if(void 0===t&&(t=0),null!=t&&this.delay===t&&!1===this.pending)return e;null!=e&&q.clearInterval(e)},e.prototype.execute=function(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var t=this._execute(n,e);if(t)return t;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(n,e){var t,r=!1;try{this.work(n)}catch(n){r=!0,t=n||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),t},e.prototype.unsubscribe=function(){if(!this.closed){var e=this.id,t=this.scheduler,r=t.actions;this.work=this.state=this.scheduler=null,this.pending=!1,(0,T.P)(r,this),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null,n.prototype.unsubscribe.call(this)}},e}(j),P=1,L={};function W(n){return n in L&&(delete L[n],!0)}var z=function(n){var e=P++;return L[e]=!0,E||(E=Promise.resolve()),E.then((function(){return W(e)&&n()})),e},M=function(n){W(n)},U={setImmediate:function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=U.delegate;return((null==t?void 0:t.setImmediate)||z).apply(void 0,(0,d.ev)([],(0,d.CR)(n)))},clearImmediate:function(n){var e=U.delegate;return((null==e?void 0:e.clearImmediate)||M)(n)},delegate:void 0},V=function(n){function e(e,t){var r=n.call(this,e,t)||this;return r.scheduler=e,r.work=t,r}return(0,d.ZT)(e,n),e.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),null!==r&&r>0?n.prototype.requestAsyncId.call(this,e,t,r):(e.actions.push(this),e._scheduled||(e._scheduled=U.setImmediate(e.flush.bind(e,void 0))))},e.prototype.recycleAsyncId=function(e,t,r){var u;if(void 0===r&&(r=0),null!=r?r>0:this.delay>0)return n.prototype.recycleAsyncId.call(this,e,t,r);var i=e.actions;null!=t&&(null===(u=i[i.length-1])||void 0===u?void 0:u.id)!==t&&(U.clearImmediate(t),e._scheduled===t&&(e._scheduled=void 0))},e}(N),X=function(){function n(e,t){void 0===t&&(t=n.now),this.schedulerActionCtor=e,this.now=t}return n.prototype.schedule=function(n,e,t){return void 0===e&&(e=0),new this.schedulerActionCtor(this,n).schedule(t,e)},n.now=R.now,n}(),B=function(n){function e(e,t){void 0===t&&(t=X.now);var r=n.call(this,e,t)||this;return r.actions=[],r._active=!1,r}return(0,d.ZT)(e,n),e.prototype.flush=function(n){var e=this.actions;if(this._active)e.push(n);else{var t;this._active=!0;do{if(t=n.execute(n.state,n.delay))break}while(n=e.shift());if(this._active=!1,t){for(;n=e.shift();)n.unsubscribe();throw t}}},e}(X),H=new(function(n){function e(){return null!==n&&n.apply(this,arguments)||this}return(0,d.ZT)(e,n),e.prototype.flush=function(n){this._active=!0;var e=this._scheduled;this._scheduled=void 0;var t,r=this.actions;n=n||r.shift();do{if(t=n.execute(n.state,n.delay))break}while((n=r[0])&&n.id===e&&r.shift());if(this._active=!1,t){for(;(n=r[0])&&n.id===e&&r.shift();)n.unsubscribe();throw t}},e}(B))(V),Y=H,D=new B(N),J=D,K=function(n){function e(e,t){var r=n.call(this,e,t)||this;return r.scheduler=e,r.work=t,r}return(0,d.ZT)(e,n),e.prototype.schedule=function(e,t){return void 0===t&&(t=0),t>0?n.prototype.schedule.call(this,e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,t){return t>0||this.closed?n.prototype.execute.call(this,e,t):this._execute(e,t)},e.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0?n.prototype.requestAsyncId.call(this,e,t,r):(e.flush(this),0)},e}(N),Q=new(function(n){function e(){return null!==n&&n.apply(this,arguments)||this}return(0,d.ZT)(e,n),e}(B))(K),G=Q,$=function(n){function e(e,t){var r=n.call(this,e,t)||this;return r.scheduler=e,r.work=t,r}return(0,d.ZT)(e,n),e.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),null!==r&&r>0?n.prototype.requestAsyncId.call(this,e,t,r):(e.actions.push(this),e._scheduled||(e._scheduled=w.requestAnimationFrame((function(){return e.flush(void 0)}))))},e.prototype.recycleAsyncId=function(e,t,r){var u;if(void 0===r&&(r=0),null!=r?r>0:this.delay>0)return n.prototype.recycleAsyncId.call(this,e,t,r);var i=e.actions;null!=t&&(null===(u=i[i.length-1])||void 0===u?void 0:u.id)!==t&&(w.cancelAnimationFrame(t),e._scheduled=void 0)},e}(N),nn=new(function(n){function e(){return null!==n&&n.apply(this,arguments)||this}return(0,d.ZT)(e,n),e.prototype.flush=function(n){this._active=!0;var e=this._scheduled;this._scheduled=void 0;var t,r=this.actions;n=n||r.shift();do{if(t=n.execute(n.state,n.delay))break}while((n=r[0])&&n.id===e&&r.shift());if(this._active=!1,t){for(;(n=r[0])&&n.id===e&&r.shift();)n.unsubscribe();throw t}},e}(B))($),en=nn,tn=function(n){function e(e,t){void 0===e&&(e=rn),void 0===t&&(t=1/0);var r=n.call(this,e,(function(){return r.frame}))||this;return r.maxFrames=t,r.frame=0,r.index=-1,r}return(0,d.ZT)(e,n),e.prototype.flush=function(){for(var n,e,t=this.actions,r=this.maxFrames;(e=t[0])&&e.delay<=r&&(t.shift(),this.frame=e.delay,!(n=e.execute(e.state,e.delay))););if(n){for(;e=t.shift();)e.unsubscribe();throw n}},e.frameTimeFactor=10,e}(B),rn=function(n){function e(e,t,r){void 0===r&&(r=e.index+=1);var u=n.call(this,e,t)||this;return u.scheduler=e,u.work=t,u.index=r,u.active=!0,u.index=e.index=r,u}return(0,d.ZT)(e,n),e.prototype.schedule=function(t,r){if(void 0===r&&(r=0),Number.isFinite(r)){if(!this.id)return n.prototype.schedule.call(this,t,r);this.active=!1;var i=new e(this.scheduler,this.work);return this.add(i),i.schedule(t,r)}return u.w0.EMPTY},e.prototype.requestAsyncId=function(n,t,r){void 0===r&&(r=0),this.delay=n.frame+r;var u=n.actions;return u.push(this),u.sort(e.sortActions),1},e.prototype.recycleAsyncId=function(n,e,t){void 0===t&&(t=0)},e.prototype._execute=function(e,t){if(!0===this.active)return n.prototype._execute.call(this,e,t)},e.sortActions=function(n,e){return n.delay===e.delay?n.index===e.index?0:n.index>e.index?1:-1:n.delay>e.delay?1:-1},e}(N),un=new v((function(n){return n.complete()}));function on(n){return n?function(n){return new v((function(e){return n.schedule((function(){return e.complete()}))}))}(n):un}function cn(n){return n&&(0,l.m)(n.schedule)}function sn(n){return n[n.length-1]}function fn(n){return(0,l.m)(sn(n))?n.pop():void 0}function ln(n){return cn(sn(n))?n.pop():void 0}function an(n,e){return"number"==typeof sn(n)?n.pop():e}var vn=function(n){return n&&"number"==typeof n.length&&"function"!=typeof n};function hn(n){return(0,l.m)(null==n?void 0:n.then)}function dn(n){return(0,l.m)(n[i])}function bn(n){return Symbol.asyncIterator&&(0,l.m)(null==n?void 0:n[Symbol.asyncIterator])}function pn(n){return new TypeError("You provided "+(null!==n&&"object"==typeof n?"an invalid object":"'"+n+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var mn="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function yn(n){return(0,l.m)(null==n?void 0:n[mn])}function xn(n){return(0,d.FC)(this,arguments,(function(){var e,t,r;return(0,d.Jh)(this,(function(u){switch(u.label){case 0:e=n.getReader(),u.label=1;case 1:u.trys.push([1,,9,10]),u.label=2;case 2:return[4,(0,d.qq)(e.read())];case 3:return t=u.sent(),r=t.value,t.done?[4,(0,d.qq)(void 0)]:[3,5];case 4:return[2,u.sent()];case 5:return[4,(0,d.qq)(r)];case 6:return[4,u.sent()];case 7:return u.sent(),[3,2];case 8:return[3,10];case 9:return e.releaseLock(),[7];case 10:return[2]}}))}))}function wn(n){return(0,l.m)(null==n?void 0:n.getReader)}var gn,_n=t(40005);function En(n){if(n instanceof v)return n;if(null!=n){if(dn(n))return u=n,new v((function(n){var e=u[i]();if((0,l.m)(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")}));if(vn(n))return r=n,new v((function(n){for(var e=0;e<r.length&&!n.closed;e++)n.next(r[e]);n.complete()}));if(hn(n))return t=n,new v((function(n){t.then((function(e){n.closed||(n.next(e),n.complete())}),(function(e){return n.error(e)})).then(null,_n.h)}));if(bn(n))return An(n);if(yn(n))return e=n,new v((function(n){var t,r;try{for(var u=(0,d.XA)(e),i=u.next();!i.done;i=u.next()){var o=i.value;if(n.next(o),n.closed)return}}catch(n){t={error:n}}finally{try{i&&!i.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}n.complete()}));if(wn(n))return An(xn(n))}var e,t,r,u;throw pn(n)}function An(n){return new v((function(e){(function(n,e){var t,r,u,i;return(0,d.mG)(this,void 0,void 0,(function(){var o,c;return(0,d.Jh)(this,(function(s){switch(s.label){case 0:s.trys.push([0,5,6,11]),t=(0,d.KL)(n),s.label=1;case 1:return[4,t.next()];case 2:if((r=s.sent()).done)return[3,4];if(o=r.value,e.next(o),e.closed)return[2];s.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return c=s.sent(),u={error:c},[3,11];case 6:return s.trys.push([6,,9,10]),r&&!r.done&&(i=t.return)?[4,i.call(t)]:[3,8];case 7:s.sent(),s.label=8;case 8:return[3,10];case 9:if(u)throw u.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}}))}))})(n,e).catch((function(n){return e.error(n)}))}))}function Cn(n,e,t,r,u){void 0===r&&(r=0),void 0===u&&(u=!1);var i=e.schedule((function(){t(),u?n.add(this.schedule(null,r)):this.unsubscribe()}),r);if(n.add(i),!u)return i}function Sn(n,e){return void 0===e&&(e=0),(0,b.e)((function(t,r){t.subscribe((0,p.x)(r,(function(t){return Cn(r,n,(function(){return r.next(t)}),e)}),(function(){return Cn(r,n,(function(){return r.complete()}),e)}),(function(t){return Cn(r,n,(function(){return r.error(t)}),e)})))}))}function Tn(n,e){return void 0===e&&(e=0),(0,b.e)((function(t,r){r.add(n.schedule((function(){return t.subscribe(r)}),e))}))}function In(n,e){return new v((function(t){var r;return Cn(t,e,(function(){r=n[mn](),Cn(t,e,(function(){var n,e,u;try{e=(n=r.next()).value,u=n.done}catch(n){return void t.error(n)}u?t.complete():t.next(e)}),0,!0)})),function(){return(0,l.m)(null==r?void 0:r.return)&&r.return()}}))}function kn(n,e){if(!n)throw new Error("Iterable cannot be null");return new v((function(t){Cn(t,e,(function(){var r=n[Symbol.asyncIterator]();Cn(t,e,(function(){r.next().then((function(n){n.done?t.complete():t.next(n.value)}))}),0,!0)}))}))}function On(n,e){if(null!=n){if(dn(n))return function(n,e){return En(n).pipe(Tn(e),Sn(e))}(n,e);if(vn(n))return function(n,e){return new v((function(t){var r=0;return e.schedule((function(){r===n.length?t.complete():(t.next(n[r++]),t.closed||this.schedule())}))}))}(n,e);if(hn(n))return function(n,e){return En(n).pipe(Tn(e),Sn(e))}(n,e);if(bn(n))return kn(n,e);if(yn(n))return In(n,e);if(wn(n))return function(n,e){return kn(xn(n),e)}(n,e)}throw pn(n)}function Rn(n,e){return e?On(n,e):En(n)}function Zn(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return Rn(n,ln(n))}function Fn(n,e){var t=(0,l.m)(n)?n:function(){return n},r=function(n){return n.error(t())};return new v(e?function(n){return e.schedule(r,0,n)}:r)}!function(n){n.NEXT="N",n.ERROR="E",n.COMPLETE="C"}(gn||(gn={}));var jn=function(){function n(n,e,t){this.kind=n,this.value=e,this.error=t,this.hasValue="N"===n}return n.prototype.observe=function(n){return qn(this,n)},n.prototype.do=function(n,e,t){var r=this,u=r.kind,i=r.value,o=r.error;return"N"===u?null==n?void 0:n(i):"E"===u?null==e?void 0:e(o):null==t?void 0:t()},n.prototype.accept=function(n,e,t){var r;return(0,l.m)(null===(r=n)||void 0===r?void 0:r.next)?this.observe(n):this.do(n,e,t)},n.prototype.toObservable=function(){var n=this,e=n.kind,t=n.value,r=n.error,u="N"===e?Zn(t):"E"===e?Fn((function(){return r})):"C"===e?un:0;if(!u)throw new TypeError("Unexpected notification kind "+e);return u},n.createNext=function(e){return new n("N",e)},n.createError=function(e){return new n("E",void 0,e)},n.createComplete=function(){return n.completeNotification},n.completeNotification=new n("C"),n}();function qn(n,e){var t,r,u,i=n,o=i.kind,c=i.value,s=i.error;if("string"!=typeof o)throw new TypeError('Invalid notification, missing "kind"');"N"===o?null===(t=e.next)||void 0===t||t.call(e,c):"E"===o?null===(r=e.error)||void 0===r||r.call(e,s):null===(u=e.complete)||void 0===u||u.call(e)}var Nn=t(22967);function Pn(n){return!!n&&(n instanceof v||(0,l.m)(n.lift)&&(0,l.m)(n.subscribe))}var Ln=(0,C.d)((function(n){return function(){n(this),this.name="EmptyError",this.message="no elements in sequence"}}));function Wn(n,e){var t="object"==typeof e;return new Promise((function(r,u){var i,o=!1;n.subscribe({next:function(n){i=n,o=!0},error:u,complete:function(){o?r(i):t?r(e.defaultValue):u(new Ln)}})}))}function zn(n,e){var t="object"==typeof e;return new Promise((function(u,i){var o=new r.Hp({next:function(n){u(n),o.unsubscribe()},error:i,complete:function(){t?u(e.defaultValue):i(new Ln)}});n.subscribe(o)}))}var Mn=(0,C.d)((function(n){return function(){n(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})),Un=(0,C.d)((function(n){return function(e){n(this),this.name="NotFoundError",this.message=e}})),Vn=(0,C.d)((function(n){return function(e){n(this),this.name="SequenceError",this.message=e}}));function Xn(n){return n instanceof Date&&!isNaN(n)}var Bn=(0,C.d)((function(n){return function(e){void 0===e&&(e=null),n(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e}}));function Hn(n,e){var t=Xn(n)?{first:n}:"number"==typeof n?{each:n}:n,r=t.first,u=t.each,i=t.with,o=void 0===i?Yn:i,c=t.scheduler,s=void 0===c?null!=e?e:D:c,f=t.meta,l=void 0===f?null:f;if(null==r&&null==u)throw new TypeError("No timeout provided.");return(0,b.e)((function(n,e){var t,i,c=null,f=0,a=function(n){i=Cn(e,s,(function(){try{t.unsubscribe(),En(o({meta:l,lastValue:c,seen:f})).subscribe(e)}catch(n){e.error(n)}}),n)};t=n.subscribe((0,p.x)(e,(function(n){null==i||i.unsubscribe(),f++,e.next(c=n),u>0&&a(u)}),void 0,void 0,(function(){(null==i?void 0:i.closed)||null==i||i.unsubscribe(),c=null}))),!f&&a(null!=r?"number"==typeof r?r:+r-s.now():u)}))}function Yn(n){throw new Bn(n)}var Dn=t(25948),Jn=t(29127),Kn=Array.isArray;function Qn(n){return(0,Jn.U)((function(e){return function(n,e){return Kn(e)?n.apply(void 0,(0,d.ev)([],(0,d.CR)(e))):n(e)}(n,e)}))}function Gn(n,e,t,r){if(t){if(!cn(t))return function(){for(var u=[],i=0;i<arguments.length;i++)u[i]=arguments[i];return Gn(n,e,r).apply(this,u).pipe(Qn(t))};r=t}return r?function(){for(var t=[],u=0;u<arguments.length;u++)t[u]=arguments[u];return Gn(n,e).apply(this,t).pipe(Tn(r),Sn(r))}:function(){for(var t=this,r=[],u=0;u<arguments.length;u++)r[u]=arguments[u];var i=new F,o=!0;return new v((function(u){var c=i.subscribe(u);if(o){o=!1;var s=!1,f=!1;e.apply(t,(0,d.ev)((0,d.ev)([],(0,d.CR)(r)),[function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(n){var r=e.shift();if(null!=r)return void i.error(r)}i.next(1<e.length?e:e[0]),f=!0,s&&i.complete()}])),f&&i.complete(),s=!0}return c}))}}function $n(n,e,t){return Gn(!1,n,e,t)}function ne(n,e,t){return Gn(!0,n,e,t)}var ee=Array.isArray,te=Object.getPrototypeOf,re=Object.prototype,ue=Object.keys;function ie(n){if(1===n.length){var e=n[0];if(ee(e))return{args:e,keys:null};if((r=e)&&"object"==typeof r&&te(r)===re){var t=ue(e);return{args:t.map((function(n){return e[n]})),keys:t}}}var r;return{args:n,keys:null}}function oe(n,e){return n.reduce((function(n,t,r){return n[t]=e[r],n}),{})}function ce(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=ln(n),r=fn(n),u=ie(n),i=u.args,c=u.keys;if(0===i.length)return Rn([],t);var s=new v(se(i,t,c?function(n){return oe(c,n)}:o));return r?s.pipe(Qn(r)):s}function se(n,e,t){return void 0===t&&(t=o),function(r){fe(e,(function(){for(var u=n.length,i=new Array(u),o=u,c=u,s=function(u){fe(e,(function(){var s=Rn(n[u],e),f=!1;s.subscribe((0,p.x)(r,(function(n){i[u]=n,f||(f=!0,c--),c||r.next(t(i.slice()))}),(function(){--o||r.complete()})))}),r)},f=0;f<u;f++)s(f)}),r)}}function fe(n,e,t){n?Cn(t,n,e):e()}function le(n,e,t,r,u,i,o,c){var s=[],f=0,l=0,a=!1,v=function(){!a||s.length||f||e.complete()},h=function(n){return f<r?d(n):s.push(n)},d=function(n){i&&e.next(n),f++;var c=!1;En(t(n,l++)).subscribe((0,p.x)(e,(function(n){null==u||u(n),i?h(n):e.next(n)}),(function(){c=!0}),void 0,(function(){if(c)try{f--;for(var n=function(){var n=s.shift();o?Cn(e,o,(function(){return d(n)})):d(n)};s.length&&f<r;)n();v()}catch(n){e.error(n)}})))};return n.subscribe((0,p.x)(e,h,(function(){a=!0,v()}))),function(){null==c||c()}}function ae(n,e,t){return void 0===t&&(t=1/0),(0,l.m)(e)?ae((function(t,r){return(0,Jn.U)((function(n,u){return e(t,n,r,u)}))(En(n(t,r)))}),t):("number"==typeof e&&(t=e),(0,b.e)((function(e,r){return le(e,r,n,t)})))}function ve(n){return void 0===n&&(n=1/0),ae(o,n)}function he(){return ve(1)}function de(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return he()(Rn(n,ln(n)))}function be(n){return new v((function(e){En(n()).subscribe(e)}))}var pe={connector:function(){return new I},resetOnDisconnect:!0};function me(n,e){void 0===e&&(e=pe);var t=null,r=e.connector,u=e.resetOnDisconnect,i=void 0===u||u,o=r(),c=new v((function(n){return o.subscribe(n)}));return c.connect=function(){return t&&!t.closed||(t=be((function(){return n})).subscribe(o),i&&t.add((function(){return o=r()}))),t},c}function ye(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=fn(n),r=ie(n),u=r.args,i=r.keys,o=new v((function(n){var e=u.length;if(e)for(var t=new Array(e),r=e,o=e,c=function(e){var c=!1;En(u[e]).subscribe((0,p.x)(n,(function(n){c||(c=!0,o--),t[e]=n}),(function(){return r--}),void 0,(function(){r&&c||(o||n.next(i?oe(i,t):t),n.complete())})))},s=0;s<e;s++)c(s);else n.complete()}));return t?o.pipe(Qn(t)):o}var xe=["addListener","removeListener"],we=["addEventListener","removeEventListener"],ge=["on","off"];function _e(n,e,t,r){if((0,l.m)(t)&&(r=t,t=void 0),r)return _e(n,e,t).pipe(Qn(r));var u=(0,d.CR)(function(n){return(0,l.m)(n.addEventListener)&&(0,l.m)(n.removeEventListener)}(n)?we.map((function(r){return function(u){return n[r](e,u,t)}})):function(n){return(0,l.m)(n.addListener)&&(0,l.m)(n.removeListener)}(n)?xe.map(Ee(n,e)):function(n){return(0,l.m)(n.on)&&(0,l.m)(n.off)}(n)?ge.map(Ee(n,e)):[],2),i=u[0],o=u[1];if(!i&&vn(n))return ae((function(n){return _e(n,e,t)}))(En(n));if(!i)throw new TypeError("Invalid event target");return new v((function(n){var e=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.next(1<e.length?e:e[0])};return i(e),function(){return o(e)}}))}function Ee(n,e){return function(t){return function(r){return n[t](e,r)}}}function Ae(n,e,t){return t?Ae(n,e).pipe(Qn(t)):new v((function(t){var r=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return t.next(1===n.length?n[0]:n)},u=n(r);return(0,l.m)(e)?function(){return e(r,u)}:void 0}))}function Ce(n,e,t,r,u){var i,c,s,f;function l(){var n;return(0,d.Jh)(this,(function(r){switch(r.label){case 0:n=f,r.label=1;case 1:return e&&!e(n)?[3,4]:[4,s(n)];case 2:r.sent(),r.label=3;case 3:return n=t(n),[3,1];case 4:return[2]}}))}return 1===arguments.length?(f=(i=n).initialState,e=i.condition,t=i.iterate,c=i.resultSelector,s=void 0===c?o:c,u=i.scheduler):(f=n,!r||cn(r)?(s=o,u=r):s=r),be(u?function(){return In(l(),u)}:l)}function Se(n,e,t){return be((function(){return n()?e:t}))}function Te(n,e,t){void 0===n&&(n=0),void 0===t&&(t=J);var r=-1;return null!=e&&(cn(e)?t=e:r=e),new v((function(e){var u=Xn(n)?+n-t.now():n;u<0&&(u=0);var i=0;return t.schedule((function(){e.closed||(e.next(i++),0<=r?this.schedule(void 0,r):e.complete())}),u)}))}function Ie(n,e){return void 0===n&&(n=0),void 0===e&&(e=D),n<0&&(n=0),Te(n,n,e)}function ke(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=ln(n),r=an(n,1/0),u=n;return u.length?1===u.length?En(u[0]):ve(r)(Rn(u,t)):un}var Oe=new v(Nn.Z);function Re(){return Oe}var Ze=Array.isArray;function Fe(n){return 1===n.length&&Ze(n[0])?n[0]:n}function je(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=Fe(n);return new v((function(n){var e=0,r=function(){if(e<t.length){var u=void 0;try{u=En(t[e++])}catch(n){return void r()}var i=new p.Q(n,void 0,Nn.Z,Nn.Z);u.subscribe(i),i.add(r)}else n.complete()};r()}))}function qe(n,e){return Rn(Object.entries(n),e)}function Ne(n,e){return function(t,r){return!n.call(e,t,r)}}function Pe(n,e){return(0,b.e)((function(t,r){var u=0;t.subscribe((0,p.x)(r,(function(t){return n.call(e,t,u++)&&r.next(t)})))}))}function Le(n,e,t){return[Pe(e,t)(En(n)),Pe(Ne(e,t))(En(n))]}function We(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return 1===(n=Fe(n)).length?En(n[0]):new v(ze(n))}function ze(n){return function(e){for(var t=[],r=function(r){t.push(En(n[r]).subscribe((0,p.x)(e,(function(n){if(t){for(var u=0;u<t.length;u++)u!==r&&t[u].unsubscribe();t=null}e.next(n)}))))},u=0;t&&!e.closed&&u<n.length;u++)r(u)}}function Me(n,e,t){if(null==e&&(e=n,n=0),e<=0)return un;var r=e+n;return new v(t?function(e){var u=n;return t.schedule((function(){u<r?(e.next(u++),this.schedule()):e.complete()}))}:function(e){for(var t=n;t<r&&!e.closed;)e.next(t++);e.complete()})}function Ue(n,e){return new v((function(t){var r=n(),u=e(r);return(u?En(u):un).subscribe(t),function(){r&&r.unsubscribe()}}))}function Ve(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=fn(n),r=Fe(n);return r.length?new v((function(n){var e=r.map((function(){return[]})),u=r.map((function(){return!1}));n.add((function(){e=u=null}));for(var i=function(i){En(r[i]).subscribe((0,p.x)(n,(function(r){if(e[i].push(r),e.every((function(n){return n.length}))){var o=e.map((function(n){return n.shift()}));n.next(t?t.apply(void 0,(0,d.ev)([],(0,d.CR)(o))):o),e.some((function(n,e){return!n.length&&u[e]}))&&n.complete()}}),(function(){u[i]=!0,!e[i].length&&n.complete()})))},o=0;!n.closed&&o<r.length;o++)i(o);return function(){e=u=null}})):un}function Xe(n){return(0,b.e)((function(e,t){var r=!1,u=null,i=null,o=!1,c=function(){if(null==i||i.unsubscribe(),i=null,r){r=!1;var n=u;u=null,t.next(n)}o&&t.complete()},s=function(){i=null,o&&t.complete()};e.subscribe((0,p.x)(t,(function(e){r=!0,u=e,i||En(n(e)).subscribe(i=(0,p.x)(t,c,s))}),(function(){o=!0,(!r||!i||i.closed)&&t.complete()})))}))}function Be(n,e){return void 0===e&&(e=D),Xe((function(){return Te(n,e)}))}function He(n){return(0,b.e)((function(e,t){var r=[];return e.subscribe((0,p.x)(t,(function(n){return r.push(n)}),(function(){t.next(r),t.complete()}))),En(n).subscribe((0,p.x)(t,(function(){var n=r;r=[],t.next(n)}),Nn.Z)),function(){r=null}}))}function Ye(n,e){return void 0===e&&(e=null),e=null!=e?e:n,(0,b.e)((function(t,r){var u=[],i=0;t.subscribe((0,p.x)(r,(function(t){var o,c,s,f,l=null;i++%e==0&&u.push([]);try{for(var a=(0,d.XA)(u),v=a.next();!v.done;v=a.next())(p=v.value).push(t),n<=p.length&&(l=null!=l?l:[]).push(p)}catch(n){o={error:n}}finally{try{v&&!v.done&&(c=a.return)&&c.call(a)}finally{if(o)throw o.error}}if(l)try{for(var h=(0,d.XA)(l),b=h.next();!b.done;b=h.next()){var p=b.value;(0,T.P)(u,p),r.next(p)}}catch(n){s={error:n}}finally{try{b&&!b.done&&(f=h.return)&&f.call(h)}finally{if(s)throw s.error}}}),(function(){var n,e;try{for(var t=(0,d.XA)(u),i=t.next();!i.done;i=t.next()){var o=i.value;r.next(o)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(n)throw n.error}}r.complete()}),void 0,(function(){u=null})))}))}function De(n){for(var e,t,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var o=null!==(e=ln(r))&&void 0!==e?e:D,c=null!==(t=r[0])&&void 0!==t?t:null,s=r[1]||1/0;return(0,b.e)((function(e,t){var r=[],i=!1,f=function(n){var e=n.buffer;n.subs.unsubscribe(),(0,T.P)(r,n),t.next(e),i&&l()},l=function(){if(r){var e=new u.w0;t.add(e);var i={buffer:[],subs:e};r.push(i),Cn(e,o,(function(){return f(i)}),n)}};null!==c&&c>=0?Cn(t,o,l,c,!0):i=!0,l();var a=(0,p.x)(t,(function(n){var e,t,u=r.slice();try{for(var i=(0,d.XA)(u),o=i.next();!o.done;o=i.next()){var c=o.value,l=c.buffer;l.push(n),s<=l.length&&f(c)}}catch(n){e={error:n}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}}),(function(){for(;null==r?void 0:r.length;)t.next(r.shift().buffer);null==a||a.unsubscribe(),t.complete(),t.unsubscribe()}),void 0,(function(){return r=null}));e.subscribe(a)}))}function Je(n,e){return(0,b.e)((function(t,r){var i=[];En(n).subscribe((0,p.x)(r,(function(n){var t=[];i.push(t);var o=new u.w0;o.add(En(e(n)).subscribe((0,p.x)(r,(function(){(0,T.P)(i,t),r.next(t),o.unsubscribe()}),Nn.Z)))}),Nn.Z)),t.subscribe((0,p.x)(r,(function(n){var e,t;try{for(var r=(0,d.XA)(i),u=r.next();!u.done;u=r.next())u.value.push(n)}catch(n){e={error:n}}finally{try{u&&!u.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}}),(function(){for(;i.length>0;)r.next(i.shift());r.complete()})))}))}function Ke(n){return(0,b.e)((function(e,t){var r=null,u=null,i=function(){null==u||u.unsubscribe();var e=r;r=[],e&&t.next(e),En(n()).subscribe(u=(0,p.x)(t,i,Nn.Z))};i(),e.subscribe((0,p.x)(t,(function(n){return null==r?void 0:r.push(n)}),(function(){r&&t.next(r),t.complete()}),void 0,(function(){return r=u=null})))}))}function Qe(n){return(0,b.e)((function(e,t){var r,u=null,i=!1;u=e.subscribe((0,p.x)(t,void 0,void 0,(function(o){r=En(n(o,Qe(n)(e))),u?(u.unsubscribe(),u=null,r.subscribe(t)):i=!0}))),i&&(u.unsubscribe(),u=null,r.subscribe(t))}))}function Ge(n,e,t,r,u){return function(i,o){var c=t,s=e,f=0;i.subscribe((0,p.x)(o,(function(e){var t=f++;s=c?n(s,e,t):(c=!0,e),r&&o.next(s)}),u&&function(){c&&o.next(s),o.complete()}))}}function $e(n,e){return(0,b.e)(Ge(n,e,arguments.length>=2,!1,!0))}var nt=function(n,e){return n.push(e),n};function et(){return(0,b.e)((function(n,e){$e(nt,[])(n).subscribe(e)}))}function tt(n,e){return c(et(),ae((function(e){return n(e)})),e?Qn(e):o)}function rt(n){return tt(ce,n)}var ut=rt;function it(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=fn(n);return t?c(it.apply(void 0,(0,d.ev)([],(0,d.CR)(n))),Qn(t)):(0,b.e)((function(e,t){se((0,d.ev)([e],(0,d.CR)(Fe(n))))(t)}))}function ot(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return it.apply(void 0,(0,d.ev)([],(0,d.CR)(n)))}function ct(n,e){return(0,l.m)(e)?ae(n,e,1):ae(n,1)}function st(n,e){return(0,l.m)(e)?ct((function(){return n}),e):ct((function(){return n}))}function ft(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=ln(n);return(0,b.e)((function(e,r){he()(Rn((0,d.ev)([e],(0,d.CR)(n)),t)).subscribe(r)}))}function lt(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return ft.apply(void 0,(0,d.ev)([],(0,d.CR)(n)))}var at={connector:function(){return new I}};function vt(n,e){void 0===e&&(e=at);var t=e.connector;return(0,b.e)((function(e,r){var u,i=t();En(n((u=i,new v((function(n){return u.subscribe(n)}))))).subscribe(r),r.add(e.subscribe(i))}))}function ht(n){return $e((function(e,t,r){return!n||n(t,r)?e+1:e}),0)}function dt(n){return(0,b.e)((function(e,t){var r=!1,u=null,i=null,o=function(){if(null==i||i.unsubscribe(),i=null,r){r=!1;var n=u;u=null,t.next(n)}};e.subscribe((0,p.x)(t,(function(e){null==i||i.unsubscribe(),r=!0,u=e,i=(0,p.x)(t,o,Nn.Z),En(n(e)).subscribe(i)}),(function(){o(),t.complete()}),void 0,(function(){u=i=null})))}))}function bt(n,e){return void 0===e&&(e=D),(0,b.e)((function(t,r){var u=null,i=null,o=null,c=function(){if(u){u.unsubscribe(),u=null;var n=i;i=null,r.next(n)}};function s(){var t=o+n,i=e.now();if(i<t)return u=this.schedule(void 0,t-i),void r.add(u);c()}t.subscribe((0,p.x)(r,(function(t){i=t,o=e.now(),u||(u=e.schedule(s,n),r.add(u))}),(function(){c(),r.complete()}),void 0,(function(){i=u=null})))}))}function pt(n){return(0,b.e)((function(e,t){var r=!1;e.subscribe((0,p.x)(t,(function(n){r=!0,t.next(n)}),(function(){r||t.next(n),t.complete()})))}))}function mt(n){return n<=0?function(){return un}:(0,b.e)((function(e,t){var r=0;e.subscribe((0,p.x)(t,(function(e){++r<=n&&(t.next(e),n<=r&&t.complete())})))}))}function yt(){return(0,b.e)((function(n,e){n.subscribe((0,p.x)(e,Nn.Z))}))}function xt(n){return(0,Jn.U)((function(){return n}))}function wt(n,e){return e?function(t){return de(e.pipe(mt(1),yt()),t.pipe(wt(n)))}:ae((function(e,t){return En(n(e,t)).pipe(mt(1),xt(e))}))}function gt(n,e){void 0===e&&(e=D);var t=Te(n,e);return wt((function(){return t}))}function _t(){return(0,b.e)((function(n,e){n.subscribe((0,p.x)(e,(function(n){return qn(n,e)})))}))}function Et(n,e){return(0,b.e)((function(t,r){var u=new Set;t.subscribe((0,p.x)(r,(function(e){var t=n?n(e):e;u.has(t)||(u.add(t),r.next(e))}))),e&&En(e).subscribe((0,p.x)(r,(function(){return u.clear()}),Nn.Z))}))}function At(n,e){return void 0===e&&(e=o),n=null!=n?n:Ct,(0,b.e)((function(t,r){var u,i=!0;t.subscribe((0,p.x)(r,(function(t){var o=e(t);!i&&n(u,o)||(i=!1,u=o,r.next(t))})))}))}function Ct(n,e){return n===e}function St(n,e){return At((function(t,r){return e?e(t[n],r[n]):t[n]===r[n]}))}function Tt(n){return void 0===n&&(n=It),(0,b.e)((function(e,t){var r=!1;e.subscribe((0,p.x)(t,(function(n){r=!0,t.next(n)}),(function(){return r?t.complete():t.error(n())})))}))}function It(){return new Ln}function kt(n,e){if(n<0)throw new Mn;var t=arguments.length>=2;return function(r){return r.pipe(Pe((function(e,t){return t===n})),mt(1),t?pt(e):Tt((function(){return new Mn})))}}function Ot(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return function(e){return de(e,Zn.apply(void 0,(0,d.ev)([],(0,d.CR)(n))))}}function Rt(n,e){return(0,b.e)((function(t,r){var u=0;t.subscribe((0,p.x)(r,(function(i){n.call(e,i,u++,t)||(r.next(!1),r.complete())}),(function(){r.next(!0),r.complete()})))}))}function Zt(n,e){return e?function(t){return t.pipe(Zt((function(t,r){return En(n(t,r)).pipe((0,Jn.U)((function(n,u){return e(t,n,r,u)})))})))}:(0,b.e)((function(e,t){var r=0,u=null,i=!1;e.subscribe((0,p.x)(t,(function(e){u||(u=(0,p.x)(t,void 0,(function(){u=null,i&&t.complete()})),En(n(e,r++)).subscribe(u))}),(function(){i=!0,!u&&t.complete()})))}))}function Ft(){return Zt(o)}var jt=Ft;function qt(n,e,t){return void 0===e&&(e=1/0),e=(e||0)<1?1/0:e,(0,b.e)((function(r,u){return le(r,u,n,e,void 0,!0,t)}))}function Nt(n){return(0,b.e)((function(e,t){try{e.subscribe(t)}finally{t.add(n)}}))}function Pt(n,e){return(0,b.e)(Lt(n,e,"value"))}function Lt(n,e,t){var r="index"===t;return function(t,u){var i=0;t.subscribe((0,p.x)(u,(function(o){var c=i++;n.call(e,o,c,t)&&(u.next(r?c:o),u.complete())}),(function(){u.next(r?-1:void 0),u.complete()})))}}function Wt(n,e){return(0,b.e)(Lt(n,e,"index"))}function zt(n,e){var t=arguments.length>=2;return function(r){return r.pipe(n?Pe((function(e,t){return n(e,t,r)})):o,mt(1),t?pt(e):Tt((function(){return new Ln})))}}function Mt(n,e,t,r){return(0,b.e)((function(u,i){var o;e&&"function"!=typeof e?(t=e.duration,o=e.element,r=e.connector):o=e;var c=new Map,s=function(n){c.forEach(n),n(i)},f=function(n){return s((function(e){return e.error(n)}))},l=0,a=!1,h=new p.Q(i,(function(e){try{var u=n(e),s=c.get(u);if(!s){c.set(u,s=r?r():new I);var d=(m=u,y=s,(x=new v((function(n){l++;var e=y.subscribe(n);return function(){e.unsubscribe(),0==--l&&a&&h.unsubscribe()}}))).key=m,x);if(i.next(d),t){var b=(0,p.x)(s,(function(){s.complete(),null==b||b.unsubscribe()}),void 0,void 0,(function(){return c.delete(u)}));h.add(En(t(d)).subscribe(b))}}s.next(o?o(e):e)}catch(n){f(n)}var m,y,x}),(function(){return s((function(n){return n.complete()}))}),f,(function(){return c.clear()}),(function(){return a=!0,0===l}));u.subscribe(h)}))}function Ut(){return(0,b.e)((function(n,e){n.subscribe((0,p.x)(e,(function(){e.next(!1),e.complete()}),(function(){e.next(!0),e.complete()})))}))}function Vt(n){return n<=0?function(){return un}:(0,b.e)((function(e,t){var r=[];e.subscribe((0,p.x)(t,(function(e){r.push(e),n<r.length&&r.shift()}),(function(){var n,e;try{for(var u=(0,d.XA)(r),i=u.next();!i.done;i=u.next()){var o=i.value;t.next(o)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(e=u.return)&&e.call(u)}finally{if(n)throw n.error}}t.complete()}),void 0,(function(){r=null})))}))}function Xt(n,e){var t=arguments.length>=2;return function(r){return r.pipe(n?Pe((function(e,t){return n(e,t,r)})):o,Vt(1),t?pt(e):Tt((function(){return new Ln})))}}function Bt(){return(0,b.e)((function(n,e){n.subscribe((0,p.x)(e,(function(n){e.next(jn.createNext(n))}),(function(){e.next(jn.createComplete()),e.complete()}),(function(n){e.next(jn.createError(n)),e.complete()})))}))}function Ht(n){return $e((0,l.m)(n)?function(e,t){return n(e,t)>0?e:t}:function(n,e){return n>e?n:e})}var Yt=ae;function Dt(n,e,t){return void 0===t&&(t=1/0),(0,l.m)(e)?ae((function(){return n}),e,t):("number"==typeof e&&(t=e),ae((function(){return n}),t))}function Jt(n,e,t){return void 0===t&&(t=1/0),(0,b.e)((function(r,u){var i=e;return le(r,u,(function(e,t){return n(i,e,t)}),t,(function(n){i=n}),!1,void 0,(function(){return i=null}))}))}function Kt(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=ln(n),r=an(n,1/0);return n=Fe(n),(0,b.e)((function(e,u){ve(r)(Rn((0,d.ev)([e],(0,d.CR)(n)),t)).subscribe(u)}))}function Qt(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return Kt.apply(void 0,(0,d.ev)([],(0,d.CR)(n)))}function Gt(n){return $e((0,l.m)(n)?function(e,t){return n(e,t)<0?e:t}:function(n,e){return n<e?n:e})}function $t(n,e){var t=(0,l.m)(n)?n:function(){return n};return(0,l.m)(e)?vt(e,{connector:t}):function(n){return new y(n,t)}}function nr(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=Fe(n);return function(n){return je.apply(void 0,(0,d.ev)([n],(0,d.CR)(t)))}}function er(){return(0,b.e)((function(n,e){var t,r=!1;n.subscribe((0,p.x)(e,(function(n){var u=t;t=n,r&&e.next([u,n]),r=!0})))}))}function tr(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=n.length;if(0===t)throw new Error("list of properties cannot be empty.");return(0,Jn.U)((function(e){for(var r=e,u=0;u<t;u++){var i=null==r?void 0:r[n[u]];if(void 0===i)return;r=i}return r}))}function rr(n){return n?function(e){return vt(n)(e)}:function(n){return $t(new I)(n)}}function ur(n){return function(e){var t=new O(n);return new y(e,(function(){return t}))}}function ir(){return function(n){var e=new F;return new y(n,(function(){return e}))}}function or(n,e,t,r){t&&!(0,l.m)(t)&&(r=t);var u=(0,l.m)(t)?t:void 0;return function(t){return $t(new Z(n,e,r),u)(t)}}function cr(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return n.length?(0,b.e)((function(e,t){ze((0,d.ev)([e],(0,d.CR)(n)))(t)})):o}function sr(n){var e,t,r=1/0;return null!=n&&("object"==typeof n?(e=n.count,r=void 0===e?1/0:e,t=n.delay):r=n),r<=0?function(){return un}:(0,b.e)((function(n,e){var u,i=0,o=function(){if(null==u||u.unsubscribe(),u=null,null!=t){var n="number"==typeof t?Te(t):En(t(i)),r=(0,p.x)(e,(function(){r.unsubscribe(),c()}));n.subscribe(r)}else c()},c=function(){var t=!1;u=n.subscribe((0,p.x)(e,void 0,(function(){++i<r?u?o():t=!0:e.complete()}))),t&&o()};c()}))}function fr(n){return(0,b.e)((function(e,t){var r,u,i=!1,o=!1,c=!1,s=function(){return c&&o&&(t.complete(),!0)},f=function(){c=!1,r=e.subscribe((0,p.x)(t,void 0,(function(){c=!0,!s()&&(u||(u=new I,En(n(u)).subscribe((0,p.x)(t,(function(){r?f():i=!0}),(function(){o=!0,s()})))),u).next()}))),i&&(r.unsubscribe(),r=null,i=!1,f())};f()}))}function lr(n){var e;void 0===n&&(n=1/0);var t=(e=n&&"object"==typeof n?n:{count:n}).count,r=void 0===t?1/0:t,u=e.delay,i=e.resetOnSuccess,c=void 0!==i&&i;return r<=0?o:(0,b.e)((function(n,e){var t,i=0,o=function(){var s=!1;t=n.subscribe((0,p.x)(e,(function(n){c&&(i=0),e.next(n)}),void 0,(function(n){if(i++<r){var c=function(){t?(t.unsubscribe(),t=null,o()):s=!0};if(null!=u){var f="number"==typeof u?Te(u):En(u(n,i)),l=(0,p.x)(e,(function(){l.unsubscribe(),c()}),(function(){e.complete()}));f.subscribe(l)}else c()}else e.error(n)}))),s&&(t.unsubscribe(),t=null,o())};o()}))}function ar(n){return(0,b.e)((function(e,t){var r,u,i=!1,o=function(){r=e.subscribe((0,p.x)(t,void 0,void 0,(function(e){u||(u=new I,En(n(u)).subscribe((0,p.x)(t,(function(){return r?o():i=!0})))),u&&u.next(e)}))),i&&(r.unsubscribe(),r=null,i=!1,o())};o()}))}function vr(n){return(0,b.e)((function(e,t){var r=!1,u=null;e.subscribe((0,p.x)(t,(function(n){r=!0,u=n}))),En(n).subscribe((0,p.x)(t,(function(){if(r){r=!1;var n=u;u=null,t.next(n)}}),Nn.Z))}))}function hr(n,e){return void 0===e&&(e=D),vr(Ie(n,e))}function dr(n,e){return(0,b.e)(Ge(n,e,arguments.length>=2,!0))}function br(n,e){return void 0===e&&(e=function(n,e){return n===e}),(0,b.e)((function(t,r){var u={buffer:[],complete:!1},i={buffer:[],complete:!1},o=function(n){r.next(n),r.complete()},c=function(n,t){var u=(0,p.x)(r,(function(r){var u=t.buffer,i=t.complete;0===u.length?i?o(!1):n.buffer.push(r):!e(r,u.shift())&&o(!1)}),(function(){n.complete=!0;var e=t.complete,r=t.buffer;e&&o(0===r.length),null==u||u.unsubscribe()}));return u};t.subscribe(c(u,i)),En(n).subscribe(c(i,u))}))}function pr(n){void 0===n&&(n={});var e=n.connector,t=void 0===e?function(){return new I}:e,u=n.resetOnError,i=void 0===u||u,o=n.resetOnComplete,c=void 0===o||o,s=n.resetOnRefCountZero,f=void 0===s||s;return function(n){var e,u,o,s=0,l=!1,a=!1,v=function(){null==u||u.unsubscribe(),u=void 0},h=function(){v(),e=o=void 0,l=a=!1},d=function(){var n=e;h(),null==n||n.unsubscribe()};return(0,b.e)((function(n,b){s++,a||l||v();var p=o=null!=o?o:t();b.add((function(){0!=--s||a||l||(u=mr(d,f))})),p.subscribe(b),!e&&s>0&&(e=new r.Hp({next:function(n){return p.next(n)},error:function(n){a=!0,v(),u=mr(h,i,n),p.error(n)},complete:function(){l=!0,v(),u=mr(h,c),p.complete()}}),En(n).subscribe(e))}))(n)}}function mr(n,e){for(var t=[],u=2;u<arguments.length;u++)t[u-2]=arguments[u];if(!0!==e){if(!1!==e){var i=new r.Hp({next:function(){i.unsubscribe(),n()}});return En(e.apply(void 0,(0,d.ev)([],(0,d.CR)(t)))).subscribe(i)}}else n()}function yr(n,e,t){var r,u,i,o,c=!1;return n&&"object"==typeof n?(r=n.bufferSize,o=void 0===r?1/0:r,u=n.windowTime,e=void 0===u?1/0:u,c=void 0!==(i=n.refCount)&&i,t=n.scheduler):o=null!=n?n:1/0,pr({connector:function(){return new Z(o,e,t)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:c})}function xr(n){return(0,b.e)((function(e,t){var r,u=!1,i=!1,o=0;e.subscribe((0,p.x)(t,(function(c){i=!0,n&&!n(c,o++,e)||(u&&t.error(new Vn("Too many matching values")),u=!0,r=c)}),(function(){u?(t.next(r),t.complete()):t.error(i?new Un("No matching values"):new Ln)})))}))}function wr(n){return Pe((function(e,t){return n<=t}))}function gr(n){return n<=0?o:(0,b.e)((function(e,t){var r=new Array(n),u=0;return e.subscribe((0,p.x)(t,(function(e){var i=u++;if(i<n)r[i]=e;else{var o=i%n,c=r[o];r[o]=e,t.next(c)}}))),function(){r=null}}))}function _r(n){return(0,b.e)((function(e,t){var r=!1,u=(0,p.x)(t,(function(){null==u||u.unsubscribe(),r=!0}),Nn.Z);En(n).subscribe(u),e.subscribe((0,p.x)(t,(function(n){return r&&t.next(n)})))}))}function Er(n){return(0,b.e)((function(e,t){var r=!1,u=0;e.subscribe((0,p.x)(t,(function(e){return(r||(r=!n(e,u++)))&&t.next(e)})))}))}function Ar(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=ln(n);return(0,b.e)((function(e,r){(t?de(n,e,t):de(n,e)).subscribe(r)}))}function Cr(n,e){return(0,b.e)((function(t,r){var u=null,i=0,o=!1,c=function(){return o&&!u&&r.complete()};t.subscribe((0,p.x)(r,(function(t){null==u||u.unsubscribe();var o=0,s=i++;En(n(t,s)).subscribe(u=(0,p.x)(r,(function(n){return r.next(e?e(t,n,s,o++):n)}),(function(){u=null,c()})))}),(function(){o=!0,c()})))}))}function Sr(){return Cr(o)}function Tr(n,e){return(0,l.m)(e)?Cr((function(){return n}),e):Cr((function(){return n}))}function Ir(n,e){return(0,b.e)((function(t,r){var u=e;return Cr((function(e,t){return n(u,e,t)}),(function(n,e){return u=e,e}))(t).subscribe(r),function(){u=null}}))}function kr(n){return(0,b.e)((function(e,t){En(n).subscribe((0,p.x)(t,(function(){return t.complete()}),Nn.Z)),!t.closed&&e.subscribe(t)}))}function Or(n,e){return void 0===e&&(e=!1),(0,b.e)((function(t,r){var u=0;t.subscribe((0,p.x)(r,(function(t){var i=n(t,u++);(i||e)&&r.next(t),!i&&r.complete()})))}))}function Rr(n,e,t){var r=(0,l.m)(n)||e||t?{next:n,error:e,complete:t}:n;return r?(0,b.e)((function(n,e){var t;null===(t=r.subscribe)||void 0===t||t.call(r);var u=!0;n.subscribe((0,p.x)(e,(function(n){var t;null===(t=r.next)||void 0===t||t.call(r,n),e.next(n)}),(function(){var n;u=!1,null===(n=r.complete)||void 0===n||n.call(r),e.complete()}),(function(n){var t;u=!1,null===(t=r.error)||void 0===t||t.call(r,n),e.error(n)}),(function(){var n,e;u&&(null===(n=r.unsubscribe)||void 0===n||n.call(r)),null===(e=r.finalize)||void 0===e||e.call(r)})))})):o}function Zr(n,e){return(0,b.e)((function(t,r){var u=null!=e?e:{},i=u.leading,o=void 0===i||i,c=u.trailing,s=void 0!==c&&c,f=!1,l=null,a=null,v=!1,h=function(){null==a||a.unsubscribe(),a=null,s&&(m(),v&&r.complete())},d=function(){a=null,v&&r.complete()},b=function(e){return a=En(n(e)).subscribe((0,p.x)(r,h,d))},m=function(){if(f){f=!1;var n=l;l=null,r.next(n),!v&&b(n)}};t.subscribe((0,p.x)(r,(function(n){f=!0,l=n,(!a||a.closed)&&(o?m():b(n))}),(function(){v=!0,(!(s&&f&&a)||a.closed)&&r.complete()})))}))}function Fr(n,e,t){void 0===e&&(e=D);var r=Te(n,e);return Zr((function(){return r}),t)}function jr(n){return void 0===n&&(n=D),(0,b.e)((function(e,t){var r=n.now();e.subscribe((0,p.x)(t,(function(e){var u=n.now(),i=u-r;r=u,t.next(new qr(e,i))})))}))}var qr=function(n,e){this.value=n,this.interval=e};function Nr(n,e,t){var r,u,i;if(t=null!=t?t:J,Xn(n)?r=n:"number"==typeof n&&(u=n),!e)throw new TypeError("No observable provided to switch to");if(i=function(){return e},null==r&&null==u)throw new TypeError("No timeout provided.");return Hn({first:r,each:u,scheduler:t,with:i})}function Pr(n){return void 0===n&&(n=R),(0,Jn.U)((function(e){return{value:e,timestamp:n.now()}}))}function Lr(n){return(0,b.e)((function(e,t){var r=new I;t.next(r.asObservable());var u=function(n){r.error(n),t.error(n)};return e.subscribe((0,p.x)(t,(function(n){return null==r?void 0:r.next(n)}),(function(){r.complete(),t.complete()}),u)),En(n).subscribe((0,p.x)(t,(function(){r.complete(),t.next(r=new I)}),Nn.Z,u)),function(){null==r||r.unsubscribe(),r=null}}))}function Wr(n,e){void 0===e&&(e=0);var t=e>0?e:n;return(0,b.e)((function(e,r){var u=[new I],i=0;r.next(u[0].asObservable()),e.subscribe((0,p.x)(r,(function(e){var o,c;try{for(var s=(0,d.XA)(u),f=s.next();!f.done;f=s.next())f.value.next(e)}catch(n){o={error:n}}finally{try{f&&!f.done&&(c=s.return)&&c.call(s)}finally{if(o)throw o.error}}var l=i-n+1;if(l>=0&&l%t==0&&u.shift().complete(),++i%t==0){var a=new I;u.push(a),r.next(a.asObservable())}}),(function(){for(;u.length>0;)u.shift().complete();r.complete()}),(function(n){for(;u.length>0;)u.shift().error(n);r.error(n)}),(function(){u=null})))}))}function zr(n){for(var e,t,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var o=null!==(e=ln(r))&&void 0!==e?e:D,c=null!==(t=r[0])&&void 0!==t?t:null,s=r[1]||1/0;return(0,b.e)((function(e,t){var r=[],i=!1,f=function(n){var e=n.window,t=n.subs;e.complete(),t.unsubscribe(),(0,T.P)(r,n),i&&l()},l=function(){if(r){var e=new u.w0;t.add(e);var i=new I,c={window:i,subs:e,seen:0};r.push(c),t.next(i.asObservable()),Cn(e,o,(function(){return f(c)}),n)}};null!==c&&c>=0?Cn(t,o,l,c,!0):i=!0,l();var a=function(n){return r.slice().forEach(n)},v=function(n){a((function(e){var t=e.window;return n(t)})),n(t),t.unsubscribe()};return e.subscribe((0,p.x)(t,(function(n){a((function(e){e.window.next(n),s<=++e.seen&&f(e)}))}),(function(){return v((function(n){return n.complete()}))}),(function(n){return v((function(e){return e.error(n)}))}))),function(){r=null}}))}function Mr(n,e){return(0,b.e)((function(t,r){var i=[],o=function(n){for(;0<i.length;)i.shift().error(n);r.error(n)};En(n).subscribe((0,p.x)(r,(function(n){var t=new I;i.push(t);var c,s=new u.w0;try{c=En(e(n))}catch(n){return void o(n)}r.next(t.asObservable()),s.add(c.subscribe((0,p.x)(r,(function(){(0,T.P)(i,t),t.complete(),s.unsubscribe()}),Nn.Z,o)))}),Nn.Z)),t.subscribe((0,p.x)(r,(function(n){var e,t,r=i.slice();try{for(var u=(0,d.XA)(r),o=u.next();!o.done;o=u.next())o.value.next(n)}catch(n){e={error:n}}finally{try{o&&!o.done&&(t=u.return)&&t.call(u)}finally{if(e)throw e.error}}}),(function(){for(;0<i.length;)i.shift().complete();r.complete()}),o,(function(){for(;0<i.length;)i.shift().unsubscribe()})))}))}function Ur(n){return(0,b.e)((function(e,t){var r,u,i=function(n){r.error(n),t.error(n)},o=function(){var e;null==u||u.unsubscribe(),null==r||r.complete(),r=new I,t.next(r.asObservable());try{e=En(n())}catch(n){return void i(n)}e.subscribe(u=(0,p.x)(t,o,o,i))};o(),e.subscribe((0,p.x)(t,(function(n){return r.next(n)}),(function(){r.complete(),t.complete()}),i,(function(){null==u||u.unsubscribe(),r=null})))}))}function Vr(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=fn(n);return(0,b.e)((function(e,r){for(var u=n.length,i=new Array(u),c=n.map((function(){return!1})),s=!1,f=function(e){En(n[e]).subscribe((0,p.x)(r,(function(n){i[e]=n,s||c[e]||(c[e]=!0,(s=c.every(o))&&(c=null))}),Nn.Z))},l=0;l<u;l++)f(l);e.subscribe((0,p.x)(r,(function(n){if(s){var e=(0,d.ev)([n],(0,d.CR)(i));r.next(t?t.apply(void 0,(0,d.ev)([],(0,d.CR)(e))):e)}})))}))}function Xr(n){return tt(Ve,n)}function Br(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return(0,b.e)((function(e,t){Ve.apply(void 0,(0,d.ev)([e],(0,d.CR)(n))).subscribe(t)}))}function Hr(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return Br.apply(void 0,(0,d.ev)([],(0,d.CR)(n)))}}}]);
package/dist/256.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_form_builder_app=globalThis.webpackChunk_openmrs_esm_form_builder_app||[]).push([[256],{32249:(e,l,o)=>{o.d(l,{Z:()=>r});var n=o(87537),s=o.n(n),a=o(23645),t=o.n(a)()(s());t.push([e.id,".-esm-form-builder__ohri-section-collapsible-toggle__toggleContainer___DwhXO{margin-right:.5rem}","",{version:3,sources:["webpack://./node_modules/@openmrs/openmrs-form-engine-lib/src/components/section-collapsible-toggle/ohri-section-collapsible-toggle.scss"],names:[],mappings:"AAAA,6EACE,kBAAA",sourceRoot:""}]),t.locals={toggleContainer:"-esm-form-builder__ohri-section-collapsible-toggle__toggleContainer___DwhXO"};const r=t},92256:(e,l,o)=>{o.r(l),o.d(l,{default:()=>E});var n=o(81672),s=o.n(n),a=o(63397),t=o(76208),r=o(81132),i=o(87410),g=o.n(i),c=o(44766),p=o.n(c),m=o(51991),d=o.n(m),_=o(33702),u=o.n(_),b=o(12434),h=o.n(b),A=o(81422),f=o.n(A),C=o(32249),v={};v.styleTagTransform=f(),v.setAttributes=u(),v.insert=d().bind(null,"head"),v.domAPI=p(),v.insertStyleElement=h(),g()(C.Z,v);const k=C.Z&&C.Z.locals?C.Z.locals:void 0,E=function(){var e,l=(0,a.useTranslation)().t,o=null===(e=(0,r.useExtensionSlotMeta)("patient-chart-workspace-header-slot")["ohri-form-header-toggle-ext"])||void 0===e?void 0:e.handleCollapse;return s().createElement("div",{className:k.toggleContainer},s().createElement(t.ZDl,{size:"sm","aria-label":"toggle button",defaultToggled:!0,id:"collapsable-toggle",labelA:l("expandAll","Expand all"),labelB:l("collapseAll","Collapse all"),onToggle:function(e){o&&o(e)}}))}}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_form_builder_app=globalThis.webpackChunk_openmrs_esm_form_builder_app||[]).push([[256],{32249:(e,l,o)=>{o.d(l,{Z:()=>r});var n=o(87537),s=o.n(n),a=o(23645),t=o.n(a)()(s());t.push([e.id,".-esm-form-builder__ohri-section-collapsible-toggle__toggleContainer___DwhXO{margin-right:.5rem}","",{version:3,sources:["webpack://./node_modules/@openmrs/openmrs-form-engine-lib/src/components/section-collapsible-toggle/ohri-section-collapsible-toggle.scss"],names:[],mappings:"AAAA,6EACE,kBAAA",sourceRoot:""}]),t.locals={toggleContainer:"-esm-form-builder__ohri-section-collapsible-toggle__toggleContainer___DwhXO"};const r=t},92256:(e,l,o)=>{o.r(l),o.d(l,{default:()=>E});var n=o(81672),s=o.n(n),a=o(63397),t=o(46878),r=o(81132),i=o(87410),g=o.n(i),c=o(44766),p=o.n(c),m=o(51991),d=o.n(m),_=o(33702),u=o.n(_),b=o(12434),h=o.n(b),A=o(81422),f=o.n(A),C=o(32249),v={};v.styleTagTransform=f(),v.setAttributes=u(),v.insert=d().bind(null,"head"),v.domAPI=p(),v.insertStyleElement=h(),g()(C.Z,v);const k=C.Z&&C.Z.locals?C.Z.locals:void 0,E=function(){var e,l=(0,a.useTranslation)().t,o=null===(e=(0,r.useExtensionSlotMeta)("patient-chart-workspace-header-slot")["ohri-form-header-toggle-ext"])||void 0===e?void 0:e.handleCollapse;return s().createElement("div",{className:k.toggleContainer},s().createElement(t.ZDl,{size:"sm","aria-label":"toggle button",defaultToggled:!0,id:"collapsable-toggle",labelA:l("expandAll","Expand all"),labelB:l("collapseAll","Collapse all"),onToggle:function(e){o&&o(e)}}))}}}]);
package/dist/319.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_form_builder_app=globalThis.webpackChunk_openmrs_esm_form_builder_app||[]).push([[319],{98319:e=>{e.exports=JSON.parse('{"addPage":"Add Page","addQuestion":"Add Question","addSection":"Add Section","cancel":"Cancel","cancelButtonText":"Cancel","checkFilters":"Check the filters above","chooseEncounterType":"Choose an encounter type to link your form to","chooseFieldType":"Choose a field type","chooseQuestionType":"Choose a question type","close":"Close","code":"Code","conceptSearchHelpText":"Can\'t find a concept?","createForm":"Create Form","createNewForm":"Create a new form","createNewPage":"Create a new page","createNewQuestion":"Create a new question","createNewSection":"Create a new section","delete":"Delete","deleteForm":"Delete form","deleteFormConfirmation":"Are you sure you want to delete this form?","deletePage":"Delete page","deletePageConfirmation":"Are you sure you want to delete this page?","deletePageExplainerText":"Deleting this page will delete all the sections and questions associated with it. This action cannot be undone.","deleteQuestion":"Delete question","deleteQuestionConfirmation":"Are you sure you want to delete this question?","deleteQuestionExplainerText":"This action cannot be undone.","deleteSchema":"Delete schema","deleteSection":"Delete section","deleteSectionConfirmation":"Are you sure you want to delete this section?","deleteSectionExplainerText":"Deleting this section will delete all the questions associated with it. This action cannot be undone.","deleting":"Deleting","description":"Description","descriptionPlaceholderText":"e.g. A form used to collect encounter data for clients in the Express Care program.","downloadSchema":"Download schema","duplicateQuestion":"Duplicate question","editButton":"Edit {elementType}","editQuestion":"Edit question","editSchema":"Edit schema","encounterType":"Encounter Type","enterPageTitle":"Enter a title for your new page","enterSectionTitle":"Enter a section title","error":"Error","errorCopy":"Sorry, there was a problem displaying this information. You can try to reload this page, or contact the site administrator and quote the error code above.","errorCreatingForm":"Error creating form","errorCreatingPage":"Error creating page","errorCreatingQuestion":"Error creating question","errorCreatingSection":"Error creating section","errorDeletingForm":"Error deleting form","errorDeletingPage":"Error deleting page","errorDeletingQuestion":"Error deleting question","errorDeletingSection":"Error deleting section","errorDuplicatingQuestion":"Error duplicating question","errorPublishingForm":"Error publishing form","errorRenamingForm":"Error renaming form","errorRenamingPage":"Error renaming page","errorRenamingSection":"Error renaming section","errorSavingForm":"Unable to save form","errorUnpublishingForm":"Error unpublishing form","errorUpdatingForm":"Error updating form","errorUpdatingQuestion":"Error updating question","expandSectionExplainer":"Below are the sections linked to this page. Expand each section to add questions to it.","fieldType":"Field type","filterByPublishedStatus":"Filter by publish status","formBuilder":"Form Builder","formBuilderDocs":"form builder documentation","formCreated":"New form created","formDeleted":"Form deleted","formDeletedSuccessfully":"deleted successfully","formError":"Error loading form metadata","formName":"Form name","formPublished":"Form published","formPublishedSuccessfully":"form was published successfully","formRenamed":"Form renamed","formRendererHelperText":"Load a form schema in the Schema Editor to the left to see it rendered here by the Form Engine.","forms":"Forms","formUnpublished":"Form unpublished","formUnpublishedSuccessfully":"form was unpublished successfully","import":"Import","inputDummySchema":"Input dummy schema","interactiveBuilder":"Interactive Builder","interactiveBuilderHelperText":"The Interactive Builder lets you build your form schema without writing JSON code. The Preview tab automatically updates as you build your form. When done, click Save Form to save your form.","invalidVersionWarning":"Version can only start with with a number","isQuestionRequiredOrOptional":"Is this question a required or optional field? Required fields must be answered before the form can be submitted.","labelPlaceholder":"e.g. Type of Anaesthesia","loadDraft":"Load draft","loading":"Loading","loadingSchema":"Loading schema","manageForms":"Manage Forms","mappings":"Mappings","name":"Name","no":"No","noFormsToDisplay":"There are no forms to display.","noMatchingConcepts":"No concepts were found that match","noMatchingFormsToDisplay":"No matching forms to display","noSchemaLoaded":"No schema loaded","optional":"Optional","pageCreated":"New page created","pageDeleted":"Page deleted","pageExplainer":"Pages typically have one or more sections. Click the button below to add a section to your page.","pageRenamed":"Page renamed","preview":"Preview","problemLoadingPreview":"There was a problem loading the schema preview","published":"Published","publishForm":"Publish form","publishing":"Publishing","questionCreated":"New question created","QuestionDeleted":"Question deleted","questionDuplicated":"Question duplicated. Please change the duplicated question\'s ID to a unique, camelcased value","questionId":"Question ID (prefer using camel-case for IDs)","questionIdExists":"This question ID already exists in your schema","questionIdPlaceholder":"Enter a unique ID e.g. \\"anaesthesiaType\\" for a question asking about the type of anaesthesia.","questionLabel":"Label","questionType":"Question type","questionUpdated":"Question updated","relationship":"Relationship","renderChanges":"Render changes","rendering":"Rendering","required":"Required","retired":"Retired","rows":"Rows","save":"Save","saveAsModal":"A version of the form you\'re working on already exists on the server. Do you want to update the form or to save it as a new version?","saveAsNewForm":"Save as a new","saveButtonText":"Save","saveConfirmation":"Save or Update form","saveError":"There was a problem saving your form. Try saving again. To ensure you don’t lose your changes, copy them, reload the page and then paste them back into the editor.","saveExplainerText":"Clicking the Save button saves your form schema to the database. To see your form in your frontend, you first need to publish it. Click the Publish button to publish your form.","saveForm":"Save form","saveFormToServer":"Save form to server","saveSuccess":"was updated successfully","saveSuccessMessage":"was created successfully. It is now visible on the Forms dashboard.","saving":"Saving","schemaActions":"Schema actions","schemaEditor":"Schema Editor","schemaError":"There\'s an error in your schema.","schemaLoadError":"Error loading schema","schemaNotFound":"Schema not found","schemaNotFoundText":"The schema originally associated with this form could not be found. A draft schema was found saved in your browser\'s local storage. Would you like to load it instead?","schemaSaveWarningMessage":"The dev3 server is ephemeral at best and can\'t be relied upon to save your schemas permanently. To avoid losing your work, please save your schemas to your local machine. Alternatively, upload your schema to the distro repo to have it persisted across server resets.","searchConcept":"Search using a concept name or UUID","searchForBackingConcept":"Search for a backing concept","searching":"Searching","searchInOCL":"Search in OCL","searchThisList":"Search this list","sectionCreated":"New section created","SectionDeleted":"Section deleted","sectionExplainer":"A section will typically contain one or more questions. Click the button below to add a question to this section.","sectionRenamed":"Section renamed","selectAnswersToDisplay":"Select answers to display","source":"Source","startBuilding":"Start building","success":"Success!","tryAgain":"Try again","typeRequired":"Type is required","unpublishConfirmation":"Are you sure you want to unpublish this form?","unpublishExplainerText":"Unpublishing a form means you can no longer access it from your frontend. Unpublishing forms does not delete their associated schemas, it only affects whether or not you can access them in your frontend.","unpublishForm":"Unpublish form","unpublishing":"Unpublishing","updateExistingForm":"Update existing version","validFieldTypeRequired":"A valid field type value is required","version":"Version","welcomeExplainer":"Add pages, sections and questions to your form. The Preview tab automatically updates as you build your form. For a detailed explanation of what constitutes an OpenMRS form schema, please read through the ","welcomeHeading":"Welcome to the Interactive Schema builder","yes":"Yes"}')}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_form_builder_app=globalThis.webpackChunk_openmrs_esm_form_builder_app||[]).push([[319],{98319:e=>{e.exports=JSON.parse('{"addPage":"Add Page","addQuestion":"Add Question","addSection":"Add Section","autogeneratedUuid":"UUID (auto-generated","cancel":"Cancel","cancelButtonText":"Cancel","checkFilters":"Check the filters above","chooseEncounterType":"Choose an encounter type to link your form to","chooseFieldType":"Choose a field type","chooseQuestionType":"Choose a question type","close":"Close","code":"Code","conceptDoesNotExist":"The linked concept does not exist in your dictionary.","conceptSearchHelpText":"Can\'t find a concept?","confirm":"Confirm","copySchema":"Copy schema","createForm":"Create Form","createNewForm":"Create a new form","createNewPage":"Create a new page","createNewQuestion":"Create a new question","createNewSection":"Create a new section","delete":"Delete","deleteForm":"Delete form","deleteFormConfirmation":"Are you sure you want to delete this form?","deletePage":"Delete page","deletePageConfirmation":"Are you sure you want to delete this page?","deletePageExplainerText":"Deleting this page will delete all the sections and questions associated with it. This action cannot be undone.","deleteQuestion":"Delete question","deleteQuestionConfirmation":"Are you sure you want to delete this question?","deleteQuestionExplainerText":"This action cannot be undone.","deleteSchema":"Delete schema","deleteSection":"Delete section","deleteSectionConfirmation":"Are you sure you want to delete this section?","deleteSectionExplainerText":"Deleting this section will delete all the questions associated with it. This action cannot be undone.","deleting":"Deleting","description":"Description","descriptionPlaceholderText":"e.g. A form used to collect encounter data for clients in the Express Care program.","downloadSchema":"Download schema","duplicated":"Duplicated","duplicateQuestion":"Duplicate question","editButton":"Edit {elementType}","editQuestion":"Edit question","editSchema":"Edit schema","encounterType":"Encounter Type","enterPageTitle":"Enter a title for your new page","enterSectionTitle":"Enter a section title","error":"Error","errorCopy":"Sorry, there was a problem displaying this information. You can try to reload this page, or contact the site administrator and quote the error code above.","errorCreatingForm":"Error creating form","errorCreatingPage":"Error creating page","errorCreatingQuestion":"Error creating question","errorCreatingSection":"Error creating section","errorDeletingForm":"Error deleting form","errorDeletingPage":"Error deleting page","errorDeletingQuestion":"Error deleting question","errorDeletingSection":"Error deleting section","errorDuplicatingQuestion":"Error duplicating question","errorFetchingConceptName":"Couldn\'t resolve concept name","errorPublishingForm":"Error publishing form","errorRenamingForm":"Error renaming form","errorRenamingPage":"Error renaming page","errorRenamingSection":"Error renaming section","errorSavingForm":"Unable to save form","errorUnpublishingForm":"Error unpublishing form","errorUpdatingForm":"Error updating form","errorUpdatingQuestion":"Error updating question","expandSectionExplainer":"Below are the sections linked to this page. Expand each section to add questions to it.","fieldType":"Field type","filterByPublishedStatus":"Filter by publish status","formBuilder":"Form Builder","formBuilderDocs":"form builder documentation","formCreated":"New form created","formDeleted":"Form deleted","formDeletedSuccessfully":"deleted successfully","formDescription":"Form description","formDescriptionPlaceholder":"A short description of the form e.g. A form for collecting COVID-19 symptoms","formError":"Error loading form metadata","formName":"Form name","formNamePlaceholder":"e.g. OHRI Express Care Patient Encounter Form","formPublished":"Form published","formPublishedSuccessfully":"form was published successfully","formRenamed":"Form renamed","formRendererHelperText":"Load a form schema in the Schema Editor to the left to see it rendered here by the Form Engine.","forms":"Forms","formUnpublished":"Form unpublished","formUnpublishedSuccessfully":"form was unpublished successfully","import":"Import","inputDummySchema":"Input dummy schema","interactiveBuilder":"Interactive Builder","interactiveBuilderHelperText":"The Interactive Builder lets you build your form schema without writing JSON code. The Preview tab automatically updates as you build your form. When done, click Save Form to save your form.","invalidVersionWarning":"Version can only start with with a number","isQuestionRequiredOrOptional":"Is this question a required or optional field? Required fields must be answered before the form can be submitted.","labelPlaceholder":"e.g. Type of Anaesthesia","loadDraft":"Load draft","loading":"Loading","loadingSchema":"Loading schema","manageForms":"Manage Forms","mappings":"Mappings","name":"Name","namePlaceholder":"What the form is called in the system","no":"No","noFormsToDisplay":"There are no forms to display.","noMatchingConcepts":"No concepts were found that match","noMatchingFormsToDisplay":"No matching forms to display","noSchemaLoaded":"No schema loaded","optional":"Optional","pageCreated":"New page created","pageDeleted":"Page deleted","pageExplainer":"Pages typically have one or more sections. Click the button below to add a section to your page.","pageRenamed":"Page renamed","preview":"Preview","problemLoadingPreview":"There was a problem loading the schema preview","published":"Published","publishForm":"Publish form","publishing":"Publishing","questionCreated":"New question created","QuestionDeleted":"Question deleted","questionDuplicated":"Question duplicated. Please change the duplicated question\'s ID to a unique, camelcased value","questionId":"Question ID (prefer using camel-case for IDs)","questionIdExists":"This question ID already exists in your schema","questionIdPlaceholder":"Enter a unique ID e.g. \\"anaesthesiaType\\" for a question asking about the type of anaesthesia.","questionLabel":"Label","questionType":"Question type","questionUpdated":"Question updated","relationship":"Relationship","renderChanges":"Render changes","required":"Required","retired":"Retired","rows":"Rows","save":"Save","saveAsModal":"A version of the form you\'re working on already exists on the server. Do you want to update the form or to save it as a new version?","saveAsNewForm":"Save as a new","saveButtonText":"Save","saveConfirmation":"Save or Update form","saveError":"There was a problem saving your form. Try saving again. To ensure you don’t lose your changes, copy them, reload the page and then paste them back into the editor.","saveExplainerText":"Clicking the Save button saves your form schema to the database. To see your form in your frontend, you first need to publish it. Click the Publish button to publish your form.","saveForm":"Save form","saveFormToServer":"Save form to server","saveSuccess":"was updated successfully","saveSuccessMessage":"was created successfully. It is now visible on the Forms dashboard.","saving":"Saving","schemaActions":"Schema actions","schemaEditor":"Schema Editor","schemaError":"There\'s an error in your schema.","schemaLoadError":"Error loading schema","schemaNotFound":"Schema not found","schemaNotFoundText":"The schema originally associated with this form could not be found. A draft schema was found saved in your browser\'s local storage. Would you like to load it instead?","schemaSaveWarningMessage":"The dev3 server is ephemeral at best and can\'t be relied upon to save your schemas permanently. To avoid losing your work, please save your schemas to your local machine. Alternatively, upload your schema to the distro repo to have it persisted across server resets.","searchConcept":"Search using a concept name or UUID","searchForBackingConcept":"Search for a backing concept","searching":"Searching","searchInOCL":"Search in OCL","searchThisList":"Search this list","sectionCreated":"New section created","SectionDeleted":"Section deleted","sectionExplainer":"A section will typically contain one or more questions. Click the button below to add a question to this section.","sectionRenamed":"Section renamed","selectAnswersToDisplay":"Select answers to display","source":"Source","startBuilding":"Start building","success":"Success!","tryAgain":"Try again","typeRequired":"Type is required","unpublishConfirmation":"Are you sure you want to unpublish this form?","unpublishExplainerText":"Unpublishing a form means you can no longer access it from your frontend. Unpublishing forms does not delete their associated schemas, it only affects whether or not you can access them in your frontend.","unpublishForm":"Unpublish form","unpublishing":"Unpublishing","updateExistingForm":"Update existing version","validFieldTypeRequired":"A valid field type value is required","version":"Version","welcomeExplainer":"Add pages, sections and questions to your form. The Preview tab automatically updates as you build your form. For a detailed explanation of what constitutes an OpenMRS form schema, please read through the ","welcomeHeading":"Welcome to the Interactive Schema builder","yes":"Yes"}')}}]);
package/dist/447.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_form_builder_app=globalThis.webpackChunk_openmrs_esm_form_builder_app||[]).push([[447],{31447:(e,r,a)=>{a.r(r),a.d(r,{default:()=>o});var n=a(81672),l=a.n(n),t=a(63397),m=a(76208),s=a(17141);const o=function(){var e=(0,t.useTranslation)().t,r=e("manageForms","Manage Forms");return l().createElement(m.mh4,null,l().createElement(m.Ohc,{href:"".concat(window.spaBase,"/form-builder"),target:"_blank",rel:"noopener noreferrer"},l().createElement("div",null,l().createElement("div",{className:"heading"},r),l().createElement("div",{className:"content"},e("formBuilder","Form Builder"))),l().createElement("div",{className:"iconWrapper"},l().createElement(s.ol,{size:16}))))}}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_form_builder_app=globalThis.webpackChunk_openmrs_esm_form_builder_app||[]).push([[447],{31447:(e,r,a)=>{a.r(r),a.d(r,{default:()=>o});var n=a(81672),l=a.n(n),t=a(63397),m=a(46878),s=a(17141);const o=function(){var e=(0,t.useTranslation)().t,r=e("manageForms","Manage Forms");return l().createElement(m.mh4,null,l().createElement(m.Ohc,{href:"".concat(window.spaBase,"/form-builder"),target:"_blank",rel:"noopener noreferrer"},l().createElement("div",null,l().createElement("div",{className:"heading"},r),l().createElement("div",{className:"content"},e("formBuilder","Form Builder"))),l().createElement("div",{className:"iconWrapper"},l().createElement(s.ol,{size:16}))))}}}]);
package/dist/447.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"447.js","mappings":"iPA2BA,QAtBsC,WACpC,IAAM,GAAQA,EAAAA,EAAAA,kBAANC,EACFC,EAASD,EAAE,cAAe,gBAChC,OACE,kBAACE,EAAAA,IAAKA,KACJ,kBAACC,EAAAA,IAAaA,CACZC,KAAM,GAAkB,OAAfC,OAAOC,QAAQ,iBACxBC,OAAO,SACPC,IAAI,uBAEJ,kBAACC,MAAAA,KACC,kBAACA,MAAAA,CAAIC,UAAU,WAAWT,GAC1B,kBAACQ,MAAAA,CAAIC,UAAU,WAAWV,EAAE,cAAe,kBAE7C,kBAACS,MAAAA,CAAIC,UAAU,eACb,kBAACC,EAAAA,GAAUA,CAACC,KAAM,OAK5B,C","sources":["webpack://@openmrs/esm-form-builder-app/./src/form-builder-admin-card-link.component.tsx"],"names":["useTranslation","t","header","Layer","ClickableTile","href","window","spaBase","target","rel","div","className","ArrowRight","size"],"sourceRoot":""}
1
+ {"version":3,"file":"447.js","mappings":"iPAuBA,QAlBsC,WACpC,IAAM,GAAQA,EAAAA,EAAAA,kBAANC,EACFC,EAASD,EAAE,cAAe,gBAChC,OACE,kBAACE,EAAAA,IAAKA,KACJ,kBAACC,EAAAA,IAAaA,CAACC,KAAM,GAAkB,OAAfC,OAAOC,QAAQ,iBAAgBC,OAAO,SAASC,IAAI,uBACzE,kBAACC,MAAAA,KACC,kBAACA,MAAAA,CAAIC,UAAU,WAAWT,GAC1B,kBAACQ,MAAAA,CAAIC,UAAU,WAAWV,EAAE,cAAe,kBAE7C,kBAACS,MAAAA,CAAIC,UAAU,eACb,kBAACC,EAAAA,GAAUA,CAACC,KAAM,OAK5B,C","sources":["webpack://@openmrs/esm-form-builder-app/./src/form-builder-admin-card-link.component.tsx"],"names":["useTranslation","t","header","Layer","ClickableTile","href","window","spaBase","target","rel","div","className","ArrowRight","size"],"sourceRoot":""}