formbuilder-lhcforms 9.6.3 → 9.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkformbuilder_lhcforms=self.webpackChunkformbuilder_lhcforms||[]).push([[461],{2260:()=>{const fe=globalThis;function le(t){return(fe.__Zone_symbol_prefix||"__zone_symbol__")+t}const Oe=Object.getOwnPropertyDescriptor,Ze=Object.defineProperty,Xe=Object.getPrototypeOf,$e=Object.create,Pt=Array.prototype.slice,Ye="addEventListener",it="removeEventListener",Ke=le(Ye),Je=le(it),Te="true",ge="false",De=le("");function Qe(t,r){return Zone.current.wrap(t,r)}function be(t,r,l,n,a){return Zone.current.scheduleMacroTask(t,r,l,n,a)}const z=le,Le=typeof window<"u",we=Le?window:void 0,ne=Le&&we||globalThis,ct="removeAttribute";function Me(t,r){for(let l=t.length-1;l>=0;l--)"function"==typeof t[l]&&(t[l]=Qe(t[l],r+"_"+l));return t}function at(t){return!t||!1!==t.writable&&!("function"==typeof t.get&&typeof t.set>"u")}const He=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Be=!("nw"in ne)&&typeof ne.process<"u"&&"[object process]"===ne.process.toString(),Ue=!Be&&!He&&!(!Le||!we.HTMLElement),lt=typeof ne.process<"u"&&"[object process]"===ne.process.toString()&&!He&&!(!Le||!we.HTMLElement),Ve={},ut=function(t){if(!(t=t||ne.event))return;let r=Ve[t.type];r||(r=Ve[t.type]=z("ON_PROPERTY"+t.type));const l=this||t.target||ne,n=l[r];let a;return Ue&&l===we&&"error"===t.type?(a=n&&n.call(this,t.message,t.filename,t.lineno,t.colno,t.error),!0===a&&t.preventDefault()):(a=n&&n.apply(this,arguments),null!=a&&!a&&t.preventDefault()),a};function ft(t,r,l){let n=Oe(t,r);if(!n&&l&&Oe(l,r)&&(n={enumerable:!0,configurable:!0}),!n||!n.configurable)return;const a=z("on"+r+"patched");if(t.hasOwnProperty(a)&&t[a])return;delete n.writable,delete n.value;const _=n.get,y=n.set,k=r.slice(2);let P=Ve[k];P||(P=Ve[k]=z("ON_PROPERTY"+k)),n.set=function(L){let v=this;!v&&t===ne&&(v=ne),v&&("function"==typeof v[P]&&v.removeEventListener(k,ut),y&&y.call(v,null),v[P]=L,"function"==typeof L&&v.addEventListener(k,ut,!1))},n.get=function(){let L=this;if(!L&&t===ne&&(L=ne),!L)return null;const v=L[P];if(v)return v;if(_){let B=_.call(this);if(B)return n.set.call(this,B),"function"==typeof L[ct]&&L.removeAttribute(r),B}return null},Ze(t,r,n),t[a]=!0}function et(t,r,l){if(r)for(let n=0;n<r.length;n++)ft(t,"on"+r[n],l);else{const n=[];for(const a in t)"on"==a.slice(0,2)&&n.push(a);for(let a=0;a<n.length;a++)ft(t,n[a],l)}}const de=z("originalInstance");function Ie(t){const r=ne[t];if(!r)return;ne[z(t)]=r,ne[t]=function(){const a=Me(arguments,t);switch(a.length){case 0:this[de]=new r;break;case 1:this[de]=new r(a[0]);break;case 2:this[de]=new r(a[0],a[1]);break;case 3:this[de]=new r(a[0],a[1],a[2]);break;case 4:this[de]=new r(a[0],a[1],a[2],a[3]);break;default:throw new Error("Arg list too long.")}},me(ne[t],r);const l=new r(function(){});let n;for(n in l)"XMLHttpRequest"===t&&"responseBlob"===n||function(a){"function"==typeof l[a]?ne[t].prototype[a]=function(){return this[de][a].apply(this[de],arguments)}:Ze(ne[t].prototype,a,{set:function(_){"function"==typeof _?(this[de][a]=Qe(_,t+"."+a),me(this[de][a],_)):this[de][a]=_},get:function(){return this[de][a]}})}(n);for(n in r)"prototype"!==n&&r.hasOwnProperty(n)&&(ne[t][n]=r[n])}function Ee(t,r,l){let n=t;for(;n&&!n.hasOwnProperty(r);)n=Xe(n);!n&&t[r]&&(n=t);const a=z(r);let _=null;if(n&&(!(_=n[a])||!n.hasOwnProperty(a))&&(_=n[a]=n[r],at(n&&Oe(n,r)))){const k=l(_,a,r);n[r]=function(){return k(this,arguments)},me(n[r],_)}return _}function Rt(t,r,l){let n=null;function a(_){const y=_.data;return y.args[y.cbIdx]=function(){_.invoke.apply(this,arguments)},n.apply(y.target,y.args),_}n=Ee(t,r,_=>function(y,k){const P=l(y,k);return P.cbIdx>=0&&"function"==typeof k[P.cbIdx]?be(P.name,k[P.cbIdx],P,a):_.apply(y,k)})}function me(t,r){t[z("OriginalDelegate")]=r}let ht=!1,dt=!1;function Tt(){if(ht)return dt;ht=!0;try{const t=we.navigator.userAgent;(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/")||-1!==t.indexOf("Edge/"))&&(dt=!0)}catch{}return dt}let Ae=!1;if(typeof window<"u")try{const t=Object.defineProperty({},"passive",{get:function(){Ae=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch{Ae=!1}const St={useG:!0},he={},ze={},gt=new RegExp("^"+De+"(\\w+)(true|false)$"),tt=z("propagationStopped");function kt(t,r){const l=(r?r(t):t)+ge,n=(r?r(t):t)+Te,a=De+l,_=De+n;he[t]={},he[t][ge]=a,he[t][Te]=_}function s(t,r,l,n){const a=n&&n.add||Ye,_=n&&n.rm||it,y=n&&n.listeners||"eventListeners",k=n&&n.rmAll||"removeAllListeners",P=z(a),L="."+a+":",v="prependListener",B="."+v+":",N=function(C,g,Y){if(C.isRemoved)return;const ee=C.callback;let se;"object"==typeof ee&&ee.handleEvent&&(C.callback=b=>ee.handleEvent(b),C.originalDelegate=ee);try{C.invoke(C,g,[Y])}catch(b){se=b}const K=C.options;return K&&"object"==typeof K&&K.once&&g[_].call(g,Y.type,C.originalDelegate?C.originalDelegate:C.callback,K),se};function V(C,g,Y){if(!(g=g||t.event))return;const ee=C||g.target||t,se=ee[he[g.type][Y?Te:ge]];if(se){const K=[];if(1===se.length){const b=N(se[0],ee,g);b&&K.push(b)}else{const b=se.slice();for(let J=0;J<b.length&&(!g||!0!==g[tt]);J++){const x=N(b[J],ee,g);x&&K.push(x)}}if(1===K.length)throw K[0];for(let b=0;b<K.length;b++){const J=K[b];r.nativeScheduleMicroTask(()=>{throw J})}}}const Q=function(C){return V(this,C,!1)},G=function(C){return V(this,C,!0)};function pe(C,g){if(!C)return!1;let Y=!0;g&&void 0!==g.useG&&(Y=g.useG);const ee=g&&g.vh;let se=!0;g&&void 0!==g.chkDup&&(se=g.chkDup);let K=!1;g&&void 0!==g.rt&&(K=g.rt);let b=C;for(;b&&!b.hasOwnProperty(a);)b=Xe(b);if(!b&&C[a]&&(b=C),!b||b[P])return!1;const J=g&&g.eventNameToString,x={},O=b[P]=b[a],I=b[z(_)]=b[_],M=b[z(y)]=b[y],ue=b[z(k)]=b[k];let te;g&&g.prepend&&(te=b[z(g.prepend)]=b[g.prepend]);const ie=Y?function(c){if(!x.isExisting)return O.call(x.target,x.eventName,x.capture?G:Q,x.options)}:function(c){return O.call(x.target,x.eventName,c.invoke,x.options)},U=Y?function(c){if(!c.isRemoved){const d=he[c.eventName];let S;d&&(S=d[c.capture?Te:ge]);const D=S&&c.target[S];if(D)for(let w=0;w<D.length;w++)if(D[w]===c){D.splice(w,1),c.isRemoved=!0,c.removeAbortListener&&(c.removeAbortListener(),c.removeAbortListener=null),0===D.length&&(c.allRemoved=!0,c.target[S]=null);break}}if(c.allRemoved)return I.call(c.target,c.eventName,c.capture?G:Q,c.options)}:function(c){return I.call(c.target,c.eventName,c.invoke,c.options)},rt=g&&g.diff?g.diff:function(c,d){const S=typeof d;return"function"===S&&c.callback===d||"object"===S&&c.originalDelegate===d},je=Zone[z("UNPATCHED_EVENTS")],pt=t[z("PASSIVE_EVENTS")],h=function(c,d,S,D,w=!1,Z=!1){return function(){const $=this||t;let H=arguments[0];g&&g.transferEventName&&(H=g.transferEventName(H));let q=arguments[1];if(!q)return c.apply(this,arguments);if(Be&&"uncaughtException"===H)return c.apply(this,arguments);let X=!1;if("function"!=typeof q){if(!q.handleEvent)return c.apply(this,arguments);X=!0}if(ee&&!ee(c,q,$,arguments))return;const Ce=Ae&&!!pt&&-1!==pt.indexOf(H),ke=function T(c){if("object"==typeof c&&null!==c){const d={...c};return c.signal&&(d.signal=c.signal),d}return c}(function j(c,d){return!Ae&&"object"==typeof c&&c?!!c.capture:Ae&&d?"boolean"==typeof c?{capture:c,passive:!0}:c?"object"==typeof c&&!1!==c.passive?{...c,passive:!0}:c:{passive:!0}:c}(arguments[2],Ce)),We=ke?.signal;if(We?.aborted)return;if(je)for(let ve=0;ve<je.length;ve++)if(H===je[ve])return Ce?c.call($,H,q,ke):c.apply(this,arguments);const bt=!!ke&&("boolean"==typeof ke||ke.capture),It=!(!ke||"object"!=typeof ke)&&ke.once,Lt=Zone.current;let wt=he[H];wt||(kt(H,J),wt=he[H]);const Ct=wt[bt?Te:ge];let yt,qe=$[Ct],Nt=!1;if(qe){if(Nt=!0,se)for(let ve=0;ve<qe.length;ve++)if(rt(qe[ve],q))return}else qe=$[Ct]=[];const Ot=$.constructor.name,Dt=ze[Ot];Dt&&(yt=Dt[H]),yt||(yt=Ot+d+(J?J(H):H)),x.options=ke,It&&(x.options.once=!1),x.target=$,x.capture=bt,x.eventName=H,x.isExisting=Nt;const ot=Y?St:void 0;ot&&(ot.taskData=x),We&&(x.options.signal=void 0);const ye=Lt.scheduleEventTask(yt,q,ot,S,D);if(We){x.options.signal=We;const ve=()=>ye.zone.cancelTask(ye);c.call(We,"abort",ve,{once:!0}),ye.removeAbortListener=()=>We.removeEventListener("abort",ve)}return x.target=null,ot&&(ot.taskData=null),It&&(x.options.once=!0),!Ae&&"boolean"==typeof ye.options||(ye.options=ke),ye.target=$,ye.capture=bt,ye.eventName=H,X&&(ye.originalDelegate=q),Z?qe.unshift(ye):qe.push(ye),w?$:void 0}};return b[a]=h(O,L,ie,U,K),te&&(b[v]=h(te,B,function(c){return te.call(x.target,x.eventName,c.invoke,x.options)},U,K,!0)),b[_]=function(){const c=this||t;let d=arguments[0];g&&g.transferEventName&&(d=g.transferEventName(d));const S=arguments[2],D=!!S&&("boolean"==typeof S||S.capture),w=arguments[1];if(!w)return I.apply(this,arguments);if(ee&&!ee(I,w,c,arguments))return;const Z=he[d];let $;Z&&($=Z[D?Te:ge]);const H=$&&c[$];if(H)for(let q=0;q<H.length;q++){const X=H[q];if(rt(X,w))return H.splice(q,1),X.isRemoved=!0,0!==H.length||(X.allRemoved=!0,c[$]=null,D||"string"!=typeof d)||(c[De+"ON_PROPERTY"+d]=null),X.zone.cancelTask(X),K?c:void 0}return I.apply(this,arguments)},b[y]=function(){const c=this||t;let d=arguments[0];g&&g.transferEventName&&(d=g.transferEventName(d));const S=[],D=i(c,J?J(d):d);for(let w=0;w<D.length;w++){const Z=D[w];S.push(Z.originalDelegate?Z.originalDelegate:Z.callback)}return S},b[k]=function(){const c=this||t;let d=arguments[0];if(d){g&&g.transferEventName&&(d=g.transferEventName(d));const S=he[d];if(S){const Z=c[S[ge]],$=c[S[Te]];if(Z){const H=Z.slice();for(let q=0;q<H.length;q++){const X=H[q];this[_].call(this,d,X.originalDelegate?X.originalDelegate:X.callback,X.options)}}if($){const H=$.slice();for(let q=0;q<H.length;q++){const X=H[q];this[_].call(this,d,X.originalDelegate?X.originalDelegate:X.callback,X.options)}}}}else{const S=Object.keys(c);for(let D=0;D<S.length;D++){const Z=gt.exec(S[D]);let $=Z&&Z[1];$&&"removeListener"!==$&&this[k].call(this,$)}this[k].call(this,"removeListener")}if(K)return this},me(b[a],O),me(b[_],I),ue&&me(b[k],ue),M&&me(b[y],M),!0}let oe=[];for(let C=0;C<l.length;C++)oe[C]=pe(l[C],n);return oe}function i(t,r){if(!r){const _=[];for(let y in t){const k=gt.exec(y);let P=k&&k[1];if(P&&(!r||P===r)){const L=t[y];if(L)for(let v=0;v<L.length;v++)_.push(L[v])}}return _}let l=he[r];l||(kt(r),l=he[r]);const n=t[l[ge]],a=t[l[Te]];return n?a?n.concat(a):n.slice():a?a.slice():[]}function u(t,r){const l=t.Event;l&&l.prototype&&r.patchMethod(l.prototype,"stopImmediatePropagation",n=>function(a,_){a[tt]=!0,n&&n.apply(a,_)})}const E=z("zoneTask");function m(t,r,l,n){let a=null,_=null;l+=n;const y={};function k(L){const v=L.data;return v.args[0]=function(){return L.invoke.apply(this,arguments)},v.handleId=a.apply(t,v.args),L}function P(L){return _.call(t,L.data.handleId)}a=Ee(t,r+=n,L=>function(v,B){if("function"==typeof B[0]){const N={isPeriodic:"Interval"===n,delay:"Timeout"===n||"Interval"===n?B[1]||0:void 0,args:B},V=B[0];B[0]=function(){try{return V.apply(this,arguments)}finally{N.isPeriodic||("number"==typeof N.handleId?delete y[N.handleId]:N.handleId&&(N.handleId[E]=null))}};const Q=be(r,B[0],N,k,P);if(!Q)return Q;const G=Q.data.handleId;return"number"==typeof G?y[G]=Q:G&&(G[E]=Q),G&&G.ref&&G.unref&&"function"==typeof G.ref&&"function"==typeof G.unref&&(Q.ref=G.ref.bind(G),Q.unref=G.unref.bind(G)),"number"==typeof G||G?G:Q}return L.apply(t,B)}),_=Ee(t,l,L=>function(v,B){const N=B[0];let V;"number"==typeof N?V=y[N]:(V=N&&N[E],V||(V=N)),V&&"string"==typeof V.type?"notScheduled"!==V.state&&(V.cancelFn&&V.data.isPeriodic||0===V.runCount)&&("number"==typeof N?delete y[N]:N&&(N[E]=null),V.zone.cancelTask(V)):L.apply(t,B)})}function ce(t,r,l){if(!l||0===l.length)return r;const n=l.filter(_=>_.target===t);if(!n||0===n.length)return r;const a=n[0].ignoreProperties;return r.filter(_=>-1===a.indexOf(_))}function Pe(t,r,l,n){t&&et(t,ce(t,r,l),n)}function Re(t){return Object.getOwnPropertyNames(t).filter(r=>r.startsWith("on")&&r.length>2).map(r=>r.substring(2))}function re(t,r,l,n,a){const _=Zone.__symbol__(n);if(r[_])return;const y=r[_]=r[n];r[n]=function(k,P,L){return P&&P.prototype&&a.forEach(function(v){const B=`${l}.${n}::`+v,N=P.prototype;try{if(N.hasOwnProperty(v)){const V=t.ObjectGetOwnPropertyDescriptor(N,v);V&&V.value?(V.value=t.wrapWithCurrentZone(V.value,B),t._redefineProperty(P.prototype,v,V)):N[v]&&(N[v]=t.wrapWithCurrentZone(N[v],B))}else N[v]&&(N[v]=t.wrapWithCurrentZone(N[v],B))}catch{}}),y.call(r,k,P,L)},t.attachOriginToPatched(r[n],y)}const Et=function Ne(){const t=globalThis,r=!0===t[le("forceDuplicateZoneCheck")];if(t.Zone&&(r||"function"!=typeof t.Zone.__symbol__))throw new Error("Zone already loaded.");return t.Zone??=function st(){const t=fe.performance;function r(j){t&&t.mark&&t.mark(j)}function l(j,p){t&&t.measure&&t.measure(j,p)}r("Zone");let n=(()=>{class j{static#e=this.__symbol__=le;static assertZonePatched(){if(fe.Promise!==x.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let e=j.current;for(;e.parent;)e=e.parent;return e}static get current(){return I.zone}static get currentTask(){return M}static __load_patch(e,o,R=!1){if(x.hasOwnProperty(e)){const A=!0===fe[le("forceDuplicateZoneCheck")];if(!R&&A)throw Error("Already loaded patch: "+e)}else if(!fe["__Zone_disable_"+e]){const A="Zone:"+e;r(A),x[e]=o(fe,j,O),l(A,A)}}get parent(){return this._parent}get name(){return this._name}constructor(e,o){this._parent=e,this._name=o?o.name||"unnamed":"<root>",this._properties=o&&o.properties||{},this._zoneDelegate=new _(this,this._parent&&this._parent._zoneDelegate,o)}get(e){const o=this.getZoneWith(e);if(o)return o._properties[e]}getZoneWith(e){let o=this;for(;o;){if(o._properties.hasOwnProperty(e))return o;o=o._parent}return null}fork(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)}wrap(e,o){if("function"!=typeof e)throw new Error("Expecting function got: "+e);const R=this._zoneDelegate.intercept(this,e,o),A=this;return function(){return A.runGuarded(R,this,arguments,o)}}run(e,o,R,A){I={parent:I,zone:this};try{return this._zoneDelegate.invoke(this,e,o,R,A)}finally{I=I.parent}}runGuarded(e,o=null,R,A){I={parent:I,zone:this};try{try{return this._zoneDelegate.invoke(this,e,o,R,A)}catch(ie){if(this._zoneDelegate.handleError(this,ie))throw ie}}finally{I=I.parent}}runTask(e,o,R){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||pe).name+"; Execution: "+this.name+")");if(e.state===oe&&(e.type===J||e.type===b))return;const A=e.state!=Y;A&&e._transitionTo(Y,g),e.runCount++;const ie=M;M=e,I={parent:I,zone:this};try{e.type==b&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,o,R)}catch(U){if(this._zoneDelegate.handleError(this,U))throw U}}finally{e.state!==oe&&e.state!==se&&(e.type==J||e.data&&e.data.isPeriodic?A&&e._transitionTo(g,Y):(e.runCount=0,this._updateTaskCount(e,-1),A&&e._transitionTo(oe,Y,oe))),I=I.parent,M=ie}}scheduleTask(e){if(e.zone&&e.zone!==this){let R=this;for(;R;){if(R===e.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${e.zone.name}`);R=R.parent}}e._transitionTo(C,oe);const o=[];e._zoneDelegates=o,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(R){throw e._transitionTo(se,C,oe),this._zoneDelegate.handleError(this,R),R}return e._zoneDelegates===o&&this._updateTaskCount(e,1),e.state==C&&e._transitionTo(g,C),e}scheduleMicroTask(e,o,R,A){return this.scheduleTask(new y(K,e,o,R,A,void 0))}scheduleMacroTask(e,o,R,A,ie){return this.scheduleTask(new y(b,e,o,R,A,ie))}scheduleEventTask(e,o,R,A,ie){return this.scheduleTask(new y(J,e,o,R,A,ie))}cancelTask(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||pe).name+"; Execution: "+this.name+")");if(e.state===g||e.state===Y){e._transitionTo(ee,g,Y);try{this._zoneDelegate.cancelTask(this,e)}catch(o){throw e._transitionTo(se,ee),this._zoneDelegate.handleError(this,o),o}return this._updateTaskCount(e,-1),e._transitionTo(oe,ee),e.runCount=0,e}}_updateTaskCount(e,o){const R=e._zoneDelegates;-1==o&&(e._zoneDelegates=null);for(let A=0;A<R.length;A++)R[A]._updateTaskCount(e.type,o)}}return j})();const a={name:"",onHasTask:(j,p,e,o)=>j.hasTask(e,o),onScheduleTask:(j,p,e,o)=>j.scheduleTask(e,o),onInvokeTask:(j,p,e,o,R,A)=>j.invokeTask(e,o,R,A),onCancelTask:(j,p,e,o)=>j.cancelTask(e,o)};class _{get zone(){return this._zone}constructor(p,e,o){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=p,this._parentDelegate=e,this._forkZS=o&&(o&&o.onFork?o:e._forkZS),this._forkDlgt=o&&(o.onFork?e:e._forkDlgt),this._forkCurrZone=o&&(o.onFork?this._zone:e._forkCurrZone),this._interceptZS=o&&(o.onIntercept?o:e._interceptZS),this._interceptDlgt=o&&(o.onIntercept?e:e._interceptDlgt),this._interceptCurrZone=o&&(o.onIntercept?this._zone:e._interceptCurrZone),this._invokeZS=o&&(o.onInvoke?o:e._invokeZS),this._invokeDlgt=o&&(o.onInvoke?e:e._invokeDlgt),this._invokeCurrZone=o&&(o.onInvoke?this._zone:e._invokeCurrZone),this._handleErrorZS=o&&(o.onHandleError?o:e._handleErrorZS),this._handleErrorDlgt=o&&(o.onHandleError?e:e._handleErrorDlgt),this._handleErrorCurrZone=o&&(o.onHandleError?this._zone:e._handleErrorCurrZone),this._scheduleTaskZS=o&&(o.onScheduleTask?o:e._scheduleTaskZS),this._scheduleTaskDlgt=o&&(o.onScheduleTask?e:e._scheduleTaskDlgt),this._scheduleTaskCurrZone=o&&(o.onScheduleTask?this._zone:e._scheduleTaskCurrZone),this._invokeTaskZS=o&&(o.onInvokeTask?o:e._invokeTaskZS),this._invokeTaskDlgt=o&&(o.onInvokeTask?e:e._invokeTaskDlgt),this._invokeTaskCurrZone=o&&(o.onInvokeTask?this._zone:e._invokeTaskCurrZone),this._cancelTaskZS=o&&(o.onCancelTask?o:e._cancelTaskZS),this._cancelTaskDlgt=o&&(o.onCancelTask?e:e._cancelTaskDlgt),this._cancelTaskCurrZone=o&&(o.onCancelTask?this._zone:e._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const R=o&&o.onHasTask;(R||e&&e._hasTaskZS)&&(this._hasTaskZS=R?o:a,this._hasTaskDlgt=e,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,o.onScheduleTask||(this._scheduleTaskZS=a,this._scheduleTaskDlgt=e,this._scheduleTaskCurrZone=this._zone),o.onInvokeTask||(this._invokeTaskZS=a,this._invokeTaskDlgt=e,this._invokeTaskCurrZone=this._zone),o.onCancelTask||(this._cancelTaskZS=a,this._cancelTaskDlgt=e,this._cancelTaskCurrZone=this._zone))}fork(p,e){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,p,e):new n(p,e)}intercept(p,e,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,p,e,o):e}invoke(p,e,o,R,A){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,p,e,o,R,A):e.apply(o,R)}handleError(p,e){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,p,e)}scheduleTask(p,e){let o=e;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,p,e),o||(o=e);else if(e.scheduleFn)e.scheduleFn(e);else{if(e.type!=K)throw new Error("Task is missing scheduleFn.");Q(e)}return o}invokeTask(p,e,o,R){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,p,e,o,R):e.callback.apply(o,R)}cancelTask(p,e){let o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,p,e);else{if(!e.cancelFn)throw Error("Task is not cancelable");o=e.cancelFn(e)}return o}hasTask(p,e){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,p,e)}catch(o){this.handleError(p,o)}}_updateTaskCount(p,e){const o=this._taskCounts,R=o[p],A=o[p]=R+e;if(A<0)throw new Error("More tasks executed then were scheduled.");0!=R&&0!=A||this.hasTask(this._zone,{microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:p})}}class y{constructor(p,e,o,R,A,ie){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=p,this.source=e,this.data=R,this.scheduleFn=A,this.cancelFn=ie,!o)throw new Error("callback is not defined");this.callback=o;const U=this;this.invoke=p===J&&R&&R.useG?y.invokeTask:function(){return y.invokeTask.call(fe,U,this,arguments)}}static invokeTask(p,e,o){p||(p=this),ue++;try{return p.runCount++,p.zone.runTask(p,e,o)}finally{1==ue&&G(),ue--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(oe,C)}_transitionTo(p,e,o){if(this._state!==e&&this._state!==o)throw new Error(`${this.type} '${this.source}': can not transition to '${p}', expecting state '${e}'${o?" or '"+o+"'":""}, was '${this._state}'.`);this._state=p,p==oe&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const k=le("setTimeout"),P=le("Promise"),L=le("then");let N,v=[],B=!1;function V(j){if(N||fe[P]&&(N=fe[P].resolve(0)),N){let p=N[L];p||(p=N.then),p.call(N,j)}else fe[k](j,0)}function Q(j){0===ue&&0===v.length&&V(G),j&&v.push(j)}function G(){if(!B){for(B=!0;v.length;){const j=v;v=[];for(let p=0;p<j.length;p++){const e=j[p];try{e.zone.runTask(e,null,null)}catch(o){O.onUnhandledError(o)}}}O.microtaskDrainDone(),B=!1}}const pe={name:"NO ZONE"},oe="notScheduled",C="scheduling",g="scheduled",Y="running",ee="canceling",se="unknown",K="microTask",b="macroTask",J="eventTask",x={},O={symbol:le,currentZoneFrame:()=>I,onUnhandledError:te,microtaskDrainDone:te,scheduleMicroTask:Q,showUncaughtError:()=>!n[le("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:te,patchMethod:()=>te,bindArguments:()=>[],patchThen:()=>te,patchMacroTask:()=>te,patchEventPrototype:()=>te,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>te,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>te,wrapWithCurrentZone:()=>te,filterProperties:()=>[],attachOriginToPatched:()=>te,_redefineProperty:()=>te,patchCallbacks:()=>te,nativeScheduleMicroTask:V};let I={parent:null,zone:new n(null,null)},M=null,ue=0;function te(){}return l("Zone","Zone"),n}(),t.Zone}();(function vt(t){(function _e(t){t.__load_patch("ZoneAwarePromise",(r,l,n)=>{const a=Object.getOwnPropertyDescriptor,_=Object.defineProperty,k=n.symbol,P=[],L=!1!==r[k("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=k("Promise"),B=k("then"),N="__creationTrace__";n.onUnhandledError=T=>{if(n.showUncaughtError()){const h=T&&T.rejection;h?console.error("Unhandled Promise rejection:",h instanceof Error?h.message:h,"; Zone:",T.zone.name,"; Task:",T.task&&T.task.source,"; Value:",h,h instanceof Error?h.stack:void 0):console.error(T)}},n.microtaskDrainDone=()=>{for(;P.length;){const T=P.shift();try{T.zone.runGuarded(()=>{throw T.throwOriginal?T.rejection:T})}catch(h){Q(h)}}};const V=k("unhandledPromiseRejectionHandler");function Q(T){n.onUnhandledError(T);try{const h=l[V];"function"==typeof h&&h.call(this,T)}catch{}}function G(T){return T&&T.then}function pe(T){return T}function oe(T){return U.reject(T)}const C=k("state"),g=k("value"),Y=k("finally"),ee=k("parentPromiseValue"),se=k("parentPromiseState"),K="Promise.then",b=null,J=!0,x=!1,O=0;function I(T,h){return c=>{try{j(T,h,c)}catch(d){j(T,!1,d)}}}const M=function(){let T=!1;return function(c){return function(){T||(T=!0,c.apply(null,arguments))}}},ue="Promise resolved with itself",te=k("currentTaskTrace");function j(T,h,c){const d=M();if(T===c)throw new TypeError(ue);if(T[C]===b){let S=null;try{("object"==typeof c||"function"==typeof c)&&(S=c&&c.then)}catch(D){return d(()=>{j(T,!1,D)})(),T}if(h!==x&&c instanceof U&&c.hasOwnProperty(C)&&c.hasOwnProperty(g)&&c[C]!==b)e(c),j(T,c[C],c[g]);else if(h!==x&&"function"==typeof S)try{S.call(c,d(I(T,h)),d(I(T,!1)))}catch(D){d(()=>{j(T,!1,D)})()}else{T[C]=h;const D=T[g];if(T[g]=c,T[Y]===Y&&h===J&&(T[C]=T[se],T[g]=T[ee]),h===x&&c instanceof Error){const w=l.currentTask&&l.currentTask.data&&l.currentTask.data[N];w&&_(c,te,{configurable:!0,enumerable:!1,writable:!0,value:w})}for(let w=0;w<D.length;)o(T,D[w++],D[w++],D[w++],D[w++]);if(0==D.length&&h==x){T[C]=O;let w=c;try{throw new Error("Uncaught (in promise): "+function y(T){return T&&T.toString===Object.prototype.toString?(T.constructor&&T.constructor.name||"")+": "+JSON.stringify(T):T?T.toString():Object.prototype.toString.call(T)}(c)+(c&&c.stack?"\n"+c.stack:""))}catch(Z){w=Z}L&&(w.throwOriginal=!0),w.rejection=c,w.promise=T,w.zone=l.current,w.task=l.currentTask,P.push(w),n.scheduleMicroTask()}}}return T}const p=k("rejectionHandledHandler");function e(T){if(T[C]===O){try{const h=l[p];h&&"function"==typeof h&&h.call(this,{rejection:T[g],promise:T})}catch{}T[C]=x;for(let h=0;h<P.length;h++)T===P[h].promise&&P.splice(h,1)}}function o(T,h,c,d,S){e(T);const D=T[C],w=D?"function"==typeof d?d:pe:"function"==typeof S?S:oe;h.scheduleMicroTask(K,()=>{try{const Z=T[g],$=!!c&&Y===c[Y];$&&(c[ee]=Z,c[se]=D);const H=h.run(w,void 0,$&&w!==oe&&w!==pe?[]:[Z]);j(c,!0,H)}catch(Z){j(c,!1,Z)}},c)}const A=function(){},ie=r.AggregateError;class U{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(h){return h instanceof U?h:j(new this(null),J,h)}static reject(h){return j(new this(null),x,h)}static withResolvers(){const h={};return h.promise=new U((c,d)=>{h.resolve=c,h.reject=d}),h}static any(h){if(!h||"function"!=typeof h[Symbol.iterator])return Promise.reject(new ie([],"All promises were rejected"));const c=[];let d=0;try{for(let w of h)d++,c.push(U.resolve(w))}catch{return Promise.reject(new ie([],"All promises were rejected"))}if(0===d)return Promise.reject(new ie([],"All promises were rejected"));let S=!1;const D=[];return new U((w,Z)=>{for(let $=0;$<c.length;$++)c[$].then(H=>{S||(S=!0,w(H))},H=>{D.push(H),d--,0===d&&(S=!0,Z(new ie(D,"All promises were rejected")))})})}static race(h){let c,d,S=new this((Z,$)=>{c=Z,d=$});function D(Z){c(Z)}function w(Z){d(Z)}for(let Z of h)G(Z)||(Z=this.resolve(Z)),Z.then(D,w);return S}static all(h){return U.allWithCallback(h)}static allSettled(h){return(this&&this.prototype instanceof U?this:U).allWithCallback(h,{thenCallback:d=>({status:"fulfilled",value:d}),errorCallback:d=>({status:"rejected",reason:d})})}static allWithCallback(h,c){let d,S,D=new this((H,q)=>{d=H,S=q}),w=2,Z=0;const $=[];for(let H of h){G(H)||(H=this.resolve(H));const q=Z;try{H.then(X=>{$[q]=c?c.thenCallback(X):X,w--,0===w&&d($)},X=>{c?($[q]=c.errorCallback(X),w--,0===w&&d($)):S(X)})}catch(X){S(X)}w++,Z++}return w-=2,0===w&&d($),D}constructor(h){const c=this;if(!(c instanceof U))throw new Error("Must be an instanceof Promise.");c[C]=b,c[g]=[];try{const d=M();h&&h(d(I(c,J)),d(I(c,x)))}catch(d){j(c,!1,d)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return U}then(h,c){let d=this.constructor?.[Symbol.species];(!d||"function"!=typeof d)&&(d=this.constructor||U);const S=new d(A),D=l.current;return this[C]==b?this[g].push(D,S,h,c):o(this,D,S,h,c),S}catch(h){return this.then(null,h)}finally(h){let c=this.constructor?.[Symbol.species];(!c||"function"!=typeof c)&&(c=U);const d=new c(A);d[Y]=Y;const S=l.current;return this[C]==b?this[g].push(S,d,h,h):o(this,S,d,h,h),d}}U.resolve=U.resolve,U.reject=U.reject,U.race=U.race,U.all=U.all;const mt=r[v]=r.Promise;r.Promise=U;const rt=k("thenPatched");function je(T){const h=T.prototype,c=a(h,"then");if(c&&(!1===c.writable||!c.configurable))return;const d=h.then;h[B]=d,T.prototype.then=function(S,D){return new U((Z,$)=>{d.call(this,Z,$)}).then(S,D)},T[rt]=!0}return n.patchThen=je,mt&&(je(mt),Ee(r,"fetch",T=>function pt(T){return function(h,c){let d=T.apply(h,c);if(d instanceof U)return d;let S=d.constructor;return S[rt]||je(S),d}}(T))),Promise[l.__symbol__("uncaughtPromiseErrors")]=P,U})})(t),function Fe(t){t.__load_patch("toString",r=>{const l=Function.prototype.toString,n=z("OriginalDelegate"),a=z("Promise"),_=z("Error"),y=function(){if("function"==typeof this){const v=this[n];if(v)return"function"==typeof v?l.call(v):Object.prototype.toString.call(v);if(this===Promise){const B=r[a];if(B)return l.call(B)}if(this===Error){const B=r[_];if(B)return l.call(B)}}return l.call(this)};y[n]=l,Function.prototype.toString=y;const k=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":k.call(this)}})}(t),function xe(t){t.__load_patch("util",(r,l,n)=>{const a=Re(r);n.patchOnProperties=et,n.patchMethod=Ee,n.bindArguments=Me,n.patchMacroTask=Rt;const _=l.__symbol__("BLACK_LISTED_EVENTS"),y=l.__symbol__("UNPATCHED_EVENTS");r[y]&&(r[_]=r[y]),r[_]&&(l[_]=l[y]=r[_]),n.patchEventPrototype=u,n.patchEventTarget=s,n.isIEOrEdge=Tt,n.ObjectDefineProperty=Ze,n.ObjectGetOwnPropertyDescriptor=Oe,n.ObjectCreate=$e,n.ArraySlice=Pt,n.patchClass=Ie,n.wrapWithCurrentZone=Qe,n.filterProperties=ce,n.attachOriginToPatched=me,n._redefineProperty=Object.defineProperty,n.patchCallbacks=re,n.getGlobalObjects=()=>({globalSources:ze,zoneSymbolEventNames:he,eventNames:a,isBrowser:Ue,isMix:lt,isNode:Be,TRUE_STR:Te,FALSE_STR:ge,ZONE_SYMBOL_PREFIX:De,ADD_EVENT_LISTENER_STR:Ye,REMOVE_EVENT_LISTENER_STR:it})})}(t)})(Et),function nt(t){t.__load_patch("legacy",r=>{const l=r[t.__symbol__("legacyPatch")];l&&l()}),t.__load_patch("timers",r=>{const l="set",n="clear";m(r,l,n,"Timeout"),m(r,l,n,"Interval"),m(r,l,n,"Immediate")}),t.__load_patch("requestAnimationFrame",r=>{m(r,"request","cancel","AnimationFrame"),m(r,"mozRequest","mozCancel","AnimationFrame"),m(r,"webkitRequest","webkitCancel","AnimationFrame")}),t.__load_patch("blocking",(r,l)=>{const n=["alert","prompt","confirm"];for(let a=0;a<n.length;a++)Ee(r,n[a],(y,k,P)=>function(L,v){return l.current.run(y,r,v,P)})}),t.__load_patch("EventTarget",(r,l,n)=>{(function F(t,r){r.patchEventPrototype(t,r)})(r,n),function W(t,r){if(Zone[r.symbol("patchEventTarget")])return;const{eventNames:l,zoneSymbolEventNames:n,TRUE_STR:a,FALSE_STR:_,ZONE_SYMBOL_PREFIX:y}=r.getGlobalObjects();for(let P=0;P<l.length;P++){const L=l[P],N=y+(L+_),V=y+(L+a);n[L]={},n[L][_]=N,n[L][a]=V}const k=t.EventTarget;k&&k.prototype&&r.patchEventTarget(t,r,[k&&k.prototype])}(r,n);const a=r.XMLHttpRequestEventTarget;a&&a.prototype&&n.patchEventTarget(r,n,[a.prototype])}),t.__load_patch("MutationObserver",(r,l,n)=>{Ie("MutationObserver"),Ie("WebKitMutationObserver")}),t.__load_patch("IntersectionObserver",(r,l,n)=>{Ie("IntersectionObserver")}),t.__load_patch("FileReader",(r,l,n)=>{Ie("FileReader")}),t.__load_patch("on_property",(r,l,n)=>{!function Ge(t,r){if(Be&&!lt||Zone[t.symbol("patchEvents")])return;const l=r.__Zone_ignore_on_properties;let n=[];if(Ue){const a=window;n=n.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const _=function _t(){try{const t=we.navigator.userAgent;if(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:a,ignoreProperties:["error"]}]:[];Pe(a,Re(a),l&&l.concat(_),Xe(a))}n=n.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let a=0;a<n.length;a++){const _=r[n[a]];_&&_.prototype&&Pe(_.prototype,Re(_.prototype),l)}}(n,r)}),t.__load_patch("customElements",(r,l,n)=>{!function ae(t,r){const{isBrowser:l,isMix:n}=r.getGlobalObjects();(l||n)&&t.customElements&&"customElements"in t&&r.patchCallbacks(r,t.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"])}(r,n)}),t.__load_patch("XHR",(r,l)=>{!function L(v){const B=v.XMLHttpRequest;if(!B)return;const N=B.prototype;let Q=N[Ke],G=N[Je];if(!Q){const O=v.XMLHttpRequestEventTarget;if(O){const I=O.prototype;Q=I[Ke],G=I[Je]}}const pe="readystatechange",oe="scheduled";function C(O){const I=O.data,M=I.target;M[y]=!1,M[P]=!1;const ue=M[_];Q||(Q=M[Ke],G=M[Je]),ue&&G.call(M,pe,ue);const te=M[_]=()=>{if(M.readyState===M.DONE)if(!I.aborted&&M[y]&&O.state===oe){const p=M[l.__symbol__("loadfalse")];if(0!==M.status&&p&&p.length>0){const e=O.invoke;O.invoke=function(){const o=M[l.__symbol__("loadfalse")];for(let R=0;R<o.length;R++)o[R]===O&&o.splice(R,1);!I.aborted&&O.state===oe&&e.call(O)},p.push(O)}else O.invoke()}else!I.aborted&&!1===M[y]&&(M[P]=!0)};return Q.call(M,pe,te),M[n]||(M[n]=O),J.apply(M,I.args),M[y]=!0,O}function g(){}function Y(O){const I=O.data;return I.aborted=!0,x.apply(I.target,I.args)}const ee=Ee(N,"open",()=>function(O,I){return O[a]=0==I[2],O[k]=I[1],ee.apply(O,I)}),K=z("fetchTaskAborting"),b=z("fetchTaskScheduling"),J=Ee(N,"send",()=>function(O,I){if(!0===l.current[b]||O[a])return J.apply(O,I);{const M={target:O,url:O[k],isPeriodic:!1,args:I,aborted:!1},ue=be("XMLHttpRequest.send",g,M,C,Y);O&&!0===O[P]&&!M.aborted&&ue.state===oe&&ue.invoke()}}),x=Ee(N,"abort",()=>function(O,I){const M=function V(O){return O[n]}(O);if(M&&"string"==typeof M.type){if(null==M.cancelFn||M.data&&M.data.aborted)return;M.zone.cancelTask(M)}else if(!0===l.current[K])return x.apply(O,I)})}(r);const n=z("xhrTask"),a=z("xhrSync"),_=z("xhrListener"),y=z("xhrScheduled"),k=z("xhrURL"),P=z("xhrErrorBeforeScheduled")}),t.__load_patch("geolocation",r=>{r.navigator&&r.navigator.geolocation&&function Se(t,r){const l=t.constructor.name;for(let n=0;n<r.length;n++){const a=r[n],_=t[a];if(_){if(!at(Oe(t,a)))continue;t[a]=(k=>{const P=function(){return k.apply(this,Me(arguments,l+"."+a))};return me(P,k),P})(_)}}}(r.navigator.geolocation,["getCurrentPosition","watchPosition"])}),t.__load_patch("PromiseRejectionEvent",(r,l)=>{function n(a){return function(_){i(r,a).forEach(k=>{const P=r.PromiseRejectionEvent;if(P){const L=new P(a,{promise:_.promise,reason:_.rejection});k.invoke(L)}})}}r.PromiseRejectionEvent&&(l[z("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),l[z("rejectionHandledHandler")]=n("rejectionhandled"))}),t.__load_patch("queueMicrotask",(r,l,n)=>{!function f(t,r){r.patchMethod(t,"queueMicrotask",l=>function(n,a){Zone.current.scheduleMicroTask("queueMicrotask",a[0])})}(r,n)})}(Et)},1152:(fe,le,st)=>{const Ne=":";Error;const ze=function(s,...i){if(ze.translate){const f=ze.translate(s,i);s=f[0],i=f[1]}let u=tt(s[0],s.raw[0]);for(let f=1;f<s.length;f++)u+=i[f-1]+tt(s[f],s.raw[f]);return u},gt=":";function tt(s,i){return i.charAt(0)===gt?s.substring(function Ie(s,i){for(let u=1,f=1;u<s.length;u++,f++)if("\\"===i[f])f++;else if(s[u]===Ne)return u;throw new Error(`Unterminated $localize metadata block in "${i}".`)}(s,i)+1):s}globalThis.$localize=ze,st(2260),window.global=window}},fe=>{fe(fe.s=1152)}]);
@@ -1 +0,0 @@
1
- (()=>{"use strict";var e,d={},h={};function a(e){var n=h[e];if(void 0!==n)return n.exports;var r=h[e]={id:e,loaded:!1,exports:{}};return d[e].call(r.exports,r,r.exports,a),r.loaded=!0,r.exports}a.m=d,a.amdD=function(){throw new Error("define cannot be used indirect")},e=[],a.O=(n,r,c,t)=>{if(!r){var s=1/0;for(f=0;f<e.length;f++){for(var[r,c,t]=e[f],u=!0,l=0;l<r.length;l++)(!1&t||s>=t)&&Object.keys(a.O).every(b=>a.O[b](r[l]))?r.splice(l--,1):(u=!1,t<s&&(s=t));if(u){e.splice(f--,1);var o=c();void 0!==o&&(n=o)}}return n}t=t||0;for(var f=e.length;f>0&&e[f-1][2]>t;f--)e[f]=e[f-1];e[f]=[r,c,t]},a.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return a.d(n,{a:n}),n},a.d=(e,n)=>{for(var r in n)a.o(n,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},a.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={121:0};a.O.j=c=>0===e[c];var n=(c,t)=>{var l,o,[f,s,u]=t,i=0;if(f.some(_=>0!==e[_])){for(l in s)a.o(s,l)&&(a.m[l]=s[l]);if(u)var v=u(a)}for(c&&c(t);i<f.length;i++)a.o(e,o=f[i])&&e[o]&&e[o][0](),e[o]=0;return a.O(v)},r=self.webpackChunkformbuilder_lhcforms=self.webpackChunkformbuilder_lhcforms||[];r.forEach(n.bind(null,0)),r.push=n.bind(null,r.push.bind(r))})()})();
@@ -1,99 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <title>Title</title>
6
- </head>
7
- <body>
8
- <div class="bg-body p-2" xmlns="http://www.w3.org/1999/html">
9
- <button id="openWin" class="btn btn-primary m-2" onClick="openFormBuilder()">Open form builder</button>
10
- <button id="sendQ" class="btn btn-primary m-2" onClick="sendQuestionnaire()">Post questionnaire</button>
11
- <button id="clear" class="btn btn-primary m-2" onClick="clearMessages()">Clear messages</button>
12
- <p class="m-1" id="url"></p>
13
- <h6 id="initH">initialized</h6>
14
- <pre class="m-1" id="initW"></pre>
15
- <h6 id="updateH">updateQuestionnaire</h6>
16
- <pre class="m-1" id="updateQ"></pre>
17
- <h6 id="closedH">closed</h6>
18
- <pre class="m-1" id="closedQ"></pre>
19
- </div>
20
-
21
- <script>
22
- // Sample questionnaire to be edited in form builder.
23
- const initialQ = {resourceType: 'Questionnaire', title: 'Form loaded from window-open-test.html', status: 'draft', item: [{text: 'q one', linkId: 'q-1'}]};
24
-
25
- let fbWindow = null;
26
- // Open the form builder window running on separate origin
27
- let fbUrl = 'http://localhost:9032';
28
-
29
- let initHeader = document.getElementById('initH');
30
- let updateHeader = document.getElementById('updateH');
31
- let closedHeader = document.getElementById('closedH');
32
- let initEl = document.getElementById('initW');
33
- let updateEl = document.getElementById('updateQ');
34
- let closedEl = document.getElementById('closedQ');
35
-
36
- let urlEl = document.getElementById('url');
37
- window.addEventListener('message', handleMessage, true);
38
-
39
-
40
- /**
41
- * Listen to messages from form builder.
42
- */
43
- function handleMessage(event) {
44
- const messageFromOpenedWindow = JSON.stringify(event.data, null, 2);
45
- if (!fbUrl.startsWith(event.origin)) {
46
- return;
47
- }
48
- switch (event.data?.type) {
49
- case 'initialized':
50
- // Wait for the child window to be ready, before sending initial questionnaire.
51
- initHeader.innerHTML = `${event.data?.type}: New window initialized (${new Date().toISOString()})`;
52
- initEl.innerHTML = `${messageFromOpenedWindow}`;
53
- sendQuestionnaire(); // Send initial questionnaire.
54
- break;
55
- case 'updateQuestionnaire':
56
- // Use this to get continuous updates. Wiil be triggered by every edit in
57
- // the form builder with about 0.5 second debounce.
58
- updateHeader.innerHTML = `${event.data?.type}: Updated questionnaire from opened window (${new Date().toISOString()})`;
59
- updateEl.innerHTML = `${messageFromOpenedWindow}`
60
- break;
61
- case 'closed':
62
- // Triggered when the window is closed. Use this to get last updated questionnaire
63
- closedHeader.innerHTML = `${event.data?.type}: Final questionnaire from opened window after it is closed (${new Date().toISOString()})`;
64
- closedEl.innerHTML = `${messageFromOpenedWindow}`;
65
- break;
66
- default:
67
- console.log(`Unknown message type ${event.data?.type} received from ${event.origin}`);
68
- }
69
- }
70
-
71
- /**
72
- * Open a child window to load form builder app.
73
- */
74
- function openFormBuilder() {
75
- fbWindow = window.open(fbUrl+'/window-open?referrer='+encodeURIComponent(window.location.href), 'formbuilder_window');
76
- fbWindow.focus();
77
- urlEl.innerHTML = 'Opened url: ' + fbUrl;
78
- }
79
-
80
- /**
81
- * Send questionnaire to form builder using window.postMessage()
82
- */
83
- function sendQuestionnaire() {
84
- if(fbWindow && !fbWindow.closed) {
85
- fbWindow?.postMessage({type: 'initialQuestionnaire', questionnaire: initialQ}, fbUrl);
86
- }
87
- }
88
-
89
- /**
90
- * Clear messages, typically to read fresh messages.
91
- */
92
- function clearMessages() {
93
- initEl.innerHTML = '';
94
- updateEl.innerHTML = '';
95
- closedEl.innerHTML = '';
96
- }
97
- </script>
98
- </body>
99
- </html>