ode-ts-client 1.1.3 → 1.1.4

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,4 +1,4 @@
1
- (()=>{var __webpack_modules__={9669:(e,t,n)=>{e.exports=n(1609)},5448:(e,t,n)=>{"use strict";var r=n(4867),o=n(6026),u=n(4372),i=n(5327),s=n(4097),a=n(4109),c=n(7985),l=n(5061);e.exports=function(e){return new Promise((function(t,n){var f=e.data,p=e.headers,d=e.responseType;r.isFormData(f)&&delete p["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var v=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";p.Authorization="Basic "+btoa(v+":"+b)}var y=s(e.baseURL,e.url);function m(){if(h){var r="getAllResponseHeaders"in h?a(h.getAllResponseHeaders()):null,u={data:d&&"text"!==d&&"json"!==d?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h};o(t,n,u),h=null}}if(h.open(e.method.toUpperCase(),i(y,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,"onloadend"in h?h.onloadend=m:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(m)},h.onabort=function(){h&&(n(l("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){n(l("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(l(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var g=(e.withCredentials||c(y))&&e.xsrfCookieName?u.read(e.xsrfCookieName):void 0;g&&(p[e.xsrfHeaderName]=g)}"setRequestHeader"in h&&r.forEach(p,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete p[t]:h.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),d&&"json"!==d&&(h.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),n(e),h=null)})),f||(f=null),h.send(f)}))}},1609:(e,t,n)=>{"use strict";var r=n(4867),o=n(1849),u=n(321),i=n(7185);function s(e){var t=new u(e),n=o(u.prototype.request,t);return r.extend(n,u.prototype,t),r.extend(n,t),n}var a=s(n(5655));a.Axios=u,a.create=function(e){return s(i(a.defaults,e))},a.Cancel=n(5263),a.CancelToken=n(4972),a.isCancel=n(6502),a.all=function(e){return Promise.all(e)},a.spread=n(8713),a.isAxiosError=n(6268),e.exports=a,e.exports.default=a},5263:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},4972:(e,t,n)=>{"use strict";var r=n(5263);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},6502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,n)=>{"use strict";var r=n(4867),o=n(5327),u=n(782),i=n(3572),s=n(7185),a=n(4875),c=a.validators;function l(e){this.defaults=e,this.interceptors={request:new u,response:new u}}l.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&a.assertOptions(t,{silentJSONParsing:c.transitional(c.boolean,"1.0.0"),forcedJSONParsing:c.transitional(c.boolean,"1.0.0"),clarifyTimeoutError:c.transitional(c.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var o,u=[];if(this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)})),!r){var l=[i,void 0];for(Array.prototype.unshift.apply(l,n),l=l.concat(u),o=Promise.resolve(e);l.length;)o=o.then(l.shift(),l.shift());return o}for(var f=e;n.length;){var p=n.shift(),d=n.shift();try{f=p(f)}catch(e){d(e);break}}try{o=i(f)}catch(e){return Promise.reject(e)}for(;u.length;)o=o.then(u.shift(),u.shift());return o},l.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=l},782:(e,t,n)=>{"use strict";var r=n(4867);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},4097:(e,t,n)=>{"use strict";var r=n(1793),o=n(7303);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},5061:(e,t,n)=>{"use strict";var r=n(481);e.exports=function(e,t,n,o,u){var i=new Error(e);return r(i,t,n,o,u)}},3572:(e,t,n)=>{"use strict";var r=n(4867),o=n(8527),u=n(6502),i=n(5655);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||i.adapter)(e).then((function(t){return s(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return u(t)||(s(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},481:e=>{"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},7185:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e,t){t=t||{};var n={},o=["url","method","data"],u=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function a(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function c(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=a(void 0,e[o])):n[o]=a(e[o],t[o])}r.forEach(o,(function(e){r.isUndefined(t[e])||(n[e]=a(void 0,t[e]))})),r.forEach(u,c),r.forEach(i,(function(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=a(void 0,e[o])):n[o]=a(void 0,t[o])})),r.forEach(s,(function(r){r in t?n[r]=a(e[r],t[r]):r in e&&(n[r]=a(void 0,e[r]))}));var l=o.concat(u).concat(i).concat(s),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===l.indexOf(e)}));return r.forEach(f,c),n}},6026:(e,t,n)=>{"use strict";var r=n(5061);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},8527:(e,t,n)=>{"use strict";var r=n(4867),o=n(5655);e.exports=function(e,t,n){var u=this||o;return r.forEach(n,(function(n){e=n.call(u,e,t)})),e}},5655:(e,t,n)=>{"use strict";var r=n(4867),o=n(6016),u=n(481),i={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var a,c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(a=n(5448)),a),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw u(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(i)})),e.exports=c},1849:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},5327:(e,t,n)=>{"use strict";var r=n(4867);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var u;if(n)u=n(t);else if(r.isURLSearchParams(t))u=t.toString();else{var i=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),i.push(o(t)+"="+o(e))})))})),u=i.join("&")}if(u){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+u}return e}},7303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:(e,t,n)=>{"use strict";var r=n(4867);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,u,i){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(u)&&s.push("domain="+u),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},6268:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},7985:(e,t,n)=>{"use strict";var r=n(4867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},6016:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},4109:(e,t,n)=>{"use strict";var r=n(4867),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,u,i={};return e?(r.forEach(e.split("\n"),(function(e){if(u=e.indexOf(":"),t=r.trim(e.substr(0,u)).toLowerCase(),n=r.trim(e.substr(u+1)),t){if(i[t]&&o.indexOf(t)>=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([n]):i[t]?i[t]+", "+n:n}})),i):i}},8713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},4875:(e,t,n)=>{"use strict";var r=n(696),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var u={},i=r.version.split(".");function s(e,t){for(var n=t?t.split("."):i,r=e.split("."),o=0;o<3;o++){if(n[o]>r[o])return!0;if(n[o]<r[o])return!1}return!1}o.transitional=function(e,t,n){var o=t&&s(t);function i(e,t){return"[Axios v"+r.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new Error(i(r," has been removed in "+t));return o&&!u[r]&&(u[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={isOlderVersion:s,assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var u=r[o],i=t[u];if(i){var s=e[u],a=void 0===s||i(s,u,e);if(!0!==a)throw new TypeError("option "+u+" must be "+a)}else if(!0!==n)throw Error("Unknown option "+u)}},validators:o}},4867:(e,t,n)=>{"use strict";var r=n(1849),o=Object.prototype.toString;function u(e){return"[object Array]"===o.call(e)}function i(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function a(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===o.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),u(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:u,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!i(e)&&null!==e.constructor&&!i(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isPlainObject:a,isUndefined:i,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:c,isStream:function(e){return s(e)&&c(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:l,merge:function e(){var t={};function n(n,r){a(t[r])&&a(n)?t[r]=e(t[r],n):a(n)?t[r]=e({},n):u(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)l(arguments[r],n);return t},extend:function(e,t,n){return l(t,(function(t,o){e[o]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},696:e=>{"use strict";e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')},7472:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ArgumentOutOfRangeError:()=>dt,AsyncSubject:()=>ue,BehaviorSubject:()=>ne,ConnectableObservable:()=>V,EMPTY:()=>Ie,EmptyError:()=>lt,NEVER:()=>rn,NotFoundError:()=>ht,Notification:()=>st,NotificationKind:()=>Le,ObjectUnsubscribedError:()=>Q,Observable:()=>M,ReplaySubject:()=>oe,Scheduler:()=>be,SequenceError:()=>vt,Subject:()=>ee,Subscriber:()=>T,Subscription:()=>y,TimeoutError:()=>yt,UnsubscriptionError:()=>v,VirtualAction:()=>Se,VirtualTimeScheduler:()=>Te,animationFrame:()=>Re,animationFrameScheduler:()=>Fe,animationFrames:()=>X,asap:()=>Ee,asapScheduler:()=>ge,async:()=>_e,asyncScheduler:()=>we,audit:()=>gn,auditTime:()=>En,bindCallback:()=>Ct,bindNodeCallback:()=>Pt,buffer:()=>wn,bufferCount:()=>_n,bufferTime:()=>An,bufferToggle:()=>xn,bufferWhen:()=>On,catchError:()=>Cn,combineAll:()=>kn,combineLatest:()=>Dt,combineLatestAll:()=>In,combineLatestWith:()=>Nn,concat:()=>Ht,concatAll:()=>Mt,concatMap:()=>jn,concatMapTo:()=>Ln,concatWith:()=>Un,config:()=>w,connect:()=>Hn,connectable:()=>Gt,count:()=>qn,debounce:()=>Wn,debounceTime:()=>Gn,defaultIfEmpty:()=>zn,defer:()=>qt,delay:()=>Kn,delayWhen:()=>Xn,dematerialize:()=>Zn,distinct:()=>$n,distinctUntilChanged:()=>Qn,distinctUntilKeyChanged:()=>tr,elementAt:()=>or,empty:()=>ke,endWith:()=>ur,every:()=>ir,exhaust:()=>ar,exhaustAll:()=>sr,exhaustMap:()=>cr,expand:()=>lr,filter:()=>pn,finalize:()=>fr,find:()=>pr,findIndex:()=>hr,first:()=>vr,firstValueFrom:()=>pt,flatMap:()=>Ar,forkJoin:()=>zt,from:()=>Xe,fromEvent:()=>Xt,fromEventPattern:()=>Zt,generate:()=>$t,groupBy:()=>br,identity:()=>L,ignoreElements:()=>Jn,iif:()=>Qt,interval:()=>tn,isEmpty:()=>mr,isObservable:()=>ct,last:()=>Er,lastValueFrom:()=>ft,map:()=>wt,mapTo:()=>Yn,materialize:()=>wr,max:()=>_r,merge:()=>nn,mergeAll:()=>Ut,mergeMap:()=>Bt,mergeMapTo:()=>xr,mergeScan:()=>Or,mergeWith:()=>Pr,min:()=>Fr,multicast:()=>Rr,never:()=>on,noop:()=>x,observable:()=>j,observeOn:()=>xt,of:()=>ut,onErrorResumeNext:()=>cn,pairs:()=>ln,pairwise:()=>Tr,partition:()=>dn,pipe:()=>B,pluck:()=>Sr,publish:()=>Ir,publishBehavior:()=>kr,publishLast:()=>Dr,publishReplay:()=>Nr,queue:()=>Oe,queueScheduler:()=>xe,race:()=>hn,raceWith:()=>jr,range:()=>bn,reduce:()=>Fn,refCount:()=>z,repeat:()=>Lr,repeatWhen:()=>Br,retry:()=>Ur,retryWhen:()=>Mr,sample:()=>Hr,sampleTime:()=>qr,scan:()=>Wr,scheduled:()=>Ye,sequenceEqual:()=>Gr,share:()=>zr,shareReplay:()=>Jr,single:()=>Yr,skip:()=>Xr,skipLast:()=>Kr,skipUntil:()=>Zr,skipWhile:()=>$r,startWith:()=>Qr,subscribeOn:()=>Et,switchAll:()=>to,switchMap:()=>eo,switchMapTo:()=>no,switchScan:()=>ro,take:()=>Vn,takeLast:()=>gr,takeUntil:()=>oo,takeWhile:()=>uo,tap:()=>io,throttle:()=>ao,throttleTime:()=>co,throwError:()=>it,throwIfEmpty:()=>nr,timeInterval:()=>lo,timeout:()=>mt,timeoutWith:()=>po,timer:()=>en,timestamp:()=>ho,toArray:()=>Tn,using:()=>yn,window:()=>vo,windowCount:()=>bo,windowTime:()=>yo,windowToggle:()=>mo,windowWhen:()=>go,withLatestFrom:()=>Eo,zip:()=>mn,zipAll:()=>wo,zipWith:()=>Ao});
1
+ (()=>{var __webpack_modules__={9669:(e,t,n)=>{e.exports=n(1609)},5448:(e,t,n)=>{"use strict";var r=n(4867),o=n(6026),u=n(4372),i=n(5327),s=n(4097),a=n(4109),c=n(7985),l=n(5061);e.exports=function(e){return new Promise((function(t,n){var f=e.data,p=e.headers,d=e.responseType;r.isFormData(f)&&delete p["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var v=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";p.Authorization="Basic "+btoa(v+":"+b)}var y=s(e.baseURL,e.url);function m(){if(h){var r="getAllResponseHeaders"in h?a(h.getAllResponseHeaders()):null,u={data:d&&"text"!==d&&"json"!==d?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h};o(t,n,u),h=null}}if(h.open(e.method.toUpperCase(),i(y,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,"onloadend"in h?h.onloadend=m:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(m)},h.onabort=function(){h&&(n(l("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){n(l("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(l(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var g=(e.withCredentials||c(y))&&e.xsrfCookieName?u.read(e.xsrfCookieName):void 0;g&&(p[e.xsrfHeaderName]=g)}"setRequestHeader"in h&&r.forEach(p,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete p[t]:h.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),d&&"json"!==d&&(h.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),n(e),h=null)})),f||(f=null),h.send(f)}))}},1609:(e,t,n)=>{"use strict";var r=n(4867),o=n(1849),u=n(321),i=n(7185);function s(e){var t=new u(e),n=o(u.prototype.request,t);return r.extend(n,u.prototype,t),r.extend(n,t),n}var a=s(n(5655));a.Axios=u,a.create=function(e){return s(i(a.defaults,e))},a.Cancel=n(5263),a.CancelToken=n(4972),a.isCancel=n(6502),a.all=function(e){return Promise.all(e)},a.spread=n(8713),a.isAxiosError=n(6268),e.exports=a,e.exports.default=a},5263:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},4972:(e,t,n)=>{"use strict";var r=n(5263);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},6502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,n)=>{"use strict";var r=n(4867),o=n(5327),u=n(782),i=n(3572),s=n(7185),a=n(4875),c=a.validators;function l(e){this.defaults=e,this.interceptors={request:new u,response:new u}}l.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&a.assertOptions(t,{silentJSONParsing:c.transitional(c.boolean,"1.0.0"),forcedJSONParsing:c.transitional(c.boolean,"1.0.0"),clarifyTimeoutError:c.transitional(c.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var o,u=[];if(this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)})),!r){var l=[i,void 0];for(Array.prototype.unshift.apply(l,n),l=l.concat(u),o=Promise.resolve(e);l.length;)o=o.then(l.shift(),l.shift());return o}for(var f=e;n.length;){var p=n.shift(),d=n.shift();try{f=p(f)}catch(e){d(e);break}}try{o=i(f)}catch(e){return Promise.reject(e)}for(;u.length;)o=o.then(u.shift(),u.shift());return o},l.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=l},782:(e,t,n)=>{"use strict";var r=n(4867);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},4097:(e,t,n)=>{"use strict";var r=n(1793),o=n(7303);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},5061:(e,t,n)=>{"use strict";var r=n(481);e.exports=function(e,t,n,o,u){var i=new Error(e);return r(i,t,n,o,u)}},3572:(e,t,n)=>{"use strict";var r=n(4867),o=n(8527),u=n(6502),i=n(5655);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||i.adapter)(e).then((function(t){return s(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return u(t)||(s(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},481:e=>{"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},7185:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e,t){t=t||{};var n={},o=["url","method","data"],u=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function a(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function c(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=a(void 0,e[o])):n[o]=a(e[o],t[o])}r.forEach(o,(function(e){r.isUndefined(t[e])||(n[e]=a(void 0,t[e]))})),r.forEach(u,c),r.forEach(i,(function(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=a(void 0,e[o])):n[o]=a(void 0,t[o])})),r.forEach(s,(function(r){r in t?n[r]=a(e[r],t[r]):r in e&&(n[r]=a(void 0,e[r]))}));var l=o.concat(u).concat(i).concat(s),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===l.indexOf(e)}));return r.forEach(f,c),n}},6026:(e,t,n)=>{"use strict";var r=n(5061);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},8527:(e,t,n)=>{"use strict";var r=n(4867),o=n(5655);e.exports=function(e,t,n){var u=this||o;return r.forEach(n,(function(n){e=n.call(u,e,t)})),e}},5655:(e,t,n)=>{"use strict";var r=n(4867),o=n(6016),u=n(481),i={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var a,c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(a=n(5448)),a),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw u(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(i)})),e.exports=c},1849:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},5327:(e,t,n)=>{"use strict";var r=n(4867);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var u;if(n)u=n(t);else if(r.isURLSearchParams(t))u=t.toString();else{var i=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),i.push(o(t)+"="+o(e))})))})),u=i.join("&")}if(u){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+u}return e}},7303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:(e,t,n)=>{"use strict";var r=n(4867);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,u,i){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(u)&&s.push("domain="+u),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},6268:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},7985:(e,t,n)=>{"use strict";var r=n(4867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},6016:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},4109:(e,t,n)=>{"use strict";var r=n(4867),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,u,i={};return e?(r.forEach(e.split("\n"),(function(e){if(u=e.indexOf(":"),t=r.trim(e.substr(0,u)).toLowerCase(),n=r.trim(e.substr(u+1)),t){if(i[t]&&o.indexOf(t)>=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([n]):i[t]?i[t]+", "+n:n}})),i):i}},8713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},4875:(e,t,n)=>{"use strict";var r=n(696),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var u={},i=r.version.split(".");function s(e,t){for(var n=t?t.split("."):i,r=e.split("."),o=0;o<3;o++){if(n[o]>r[o])return!0;if(n[o]<r[o])return!1}return!1}o.transitional=function(e,t,n){var o=t&&s(t);function i(e,t){return"[Axios v"+r.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new Error(i(r," has been removed in "+t));return o&&!u[r]&&(u[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={isOlderVersion:s,assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var u=r[o],i=t[u];if(i){var s=e[u],a=void 0===s||i(s,u,e);if(!0!==a)throw new TypeError("option "+u+" must be "+a)}else if(!0!==n)throw Error("Unknown option "+u)}},validators:o}},4867:(e,t,n)=>{"use strict";var r=n(1849),o=Object.prototype.toString;function u(e){return"[object Array]"===o.call(e)}function i(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function a(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===o.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),u(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:u,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!i(e)&&null!==e.constructor&&!i(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isPlainObject:a,isUndefined:i,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:c,isStream:function(e){return s(e)&&c(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:l,merge:function e(){var t={};function n(n,r){a(t[r])&&a(n)?t[r]=e(t[r],n):a(n)?t[r]=e({},n):u(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)l(arguments[r],n);return t},extend:function(e,t,n){return l(t,(function(t,o){e[o]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},696:e=>{"use strict";e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')},7472:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ArgumentOutOfRangeError:()=>pt,AsyncSubject:()=>oe,BehaviorSubject:()=>te,ConnectableObservable:()=>z,EMPTY:()=>Se,EmptyError:()=>ct,NEVER:()=>nn,NotFoundError:()=>dt,Notification:()=>it,NotificationKind:()=>je,ObjectUnsubscribedError:()=>$,Observable:()=>M,ReplaySubject:()=>re,Scheduler:()=>ve,SequenceError:()=>ht,Subject:()=>Q,Subscriber:()=>R,Subscription:()=>y,TimeoutError:()=>bt,UnsubscriptionError:()=>v,VirtualAction:()=>Te,VirtualTimeScheduler:()=>Re,animationFrame:()=>Fe,animationFrameScheduler:()=>Pe,animationFrames:()=>Y,asap:()=>ge,asapScheduler:()=>me,async:()=>we,asyncScheduler:()=>Ee,audit:()=>yn,auditTime:()=>mn,bindCallback:()=>Ot,bindNodeCallback:()=>Ct,buffer:()=>gn,bufferCount:()=>En,bufferTime:()=>wn,bufferToggle:()=>_n,bufferWhen:()=>An,catchError:()=>xn,combineAll:()=>Sn,combineLatest:()=>kt,combineLatestAll:()=>Tn,combineLatestWith:()=>kn,concat:()=>Ut,concatAll:()=>Mt,concatMap:()=>Dn,concatMapTo:()=>Nn,concatWith:()=>Ln,config:()=>w,connect:()=>Mn,connectable:()=>Wt,count:()=>Un,debounce:()=>Hn,debounceTime:()=>qn,defaultIfEmpty:()=>Wn,defer:()=>Ht,delay:()=>Yn,delayWhen:()=>Jn,dematerialize:()=>Xn,distinct:()=>Kn,distinctUntilChanged:()=>Zn,distinctUntilKeyChanged:()=>Qn,elementAt:()=>nr,empty:()=>Ie,endWith:()=>rr,every:()=>or,exhaust:()=>ir,exhaustAll:()=>ur,exhaustMap:()=>sr,expand:()=>ar,filter:()=>ln,finalize:()=>cr,find:()=>lr,findIndex:()=>pr,first:()=>dr,firstValueFrom:()=>ft,flatMap:()=>wr,forkJoin:()=>Gt,from:()=>Ye,fromEvent:()=>Yt,fromEventPattern:()=>Kt,generate:()=>Zt,groupBy:()=>hr,identity:()=>j,ignoreElements:()=>zn,iif:()=>$t,interval:()=>en,isEmpty:()=>br,isObservable:()=>at,last:()=>mr,lastValueFrom:()=>lt,map:()=>Et,mapTo:()=>Vn,materialize:()=>gr,max:()=>Er,merge:()=>tn,mergeAll:()=>Bt,mergeMap:()=>Lt,mergeMapTo:()=>_r,mergeScan:()=>Ar,mergeWith:()=>Or,min:()=>Cr,multicast:()=>Pr,never:()=>rn,noop:()=>x,observable:()=>N,observeOn:()=>At,of:()=>ot,onErrorResumeNext:()=>sn,pairs:()=>an,pairwise:()=>Fr,partition:()=>fn,pipe:()=>L,pluck:()=>Rr,publish:()=>Tr,publishBehavior:()=>Sr,publishLast:()=>Ir,publishReplay:()=>kr,queue:()=>xe,queueScheduler:()=>Ae,race:()=>pn,raceWith:()=>Dr,range:()=>hn,reduce:()=>Cn,refCount:()=>G,repeat:()=>Nr,repeatWhen:()=>jr,retry:()=>Lr,retryWhen:()=>Br,sample:()=>Mr,sampleTime:()=>Ur,scan:()=>Hr,scheduled:()=>Je,sequenceEqual:()=>qr,share:()=>Wr,shareReplay:()=>zr,single:()=>Vr,skip:()=>Jr,skipLast:()=>Yr,skipUntil:()=>Xr,skipWhile:()=>Kr,startWith:()=>Zr,subscribeOn:()=>gt,switchAll:()=>Qr,switchMap:()=>$r,switchMapTo:()=>eo,switchScan:()=>to,take:()=>Gn,takeLast:()=>yr,takeUntil:()=>no,takeWhile:()=>ro,tap:()=>oo,throttle:()=>io,throttleTime:()=>so,throwError:()=>ut,throwIfEmpty:()=>er,timeInterval:()=>ao,timeout:()=>yt,timeoutWith:()=>lo,timer:()=>Qt,timestamp:()=>fo,toArray:()=>Fn,using:()=>vn,window:()=>po,windowCount:()=>ho,windowTime:()=>vo,windowToggle:()=>bo,windowWhen:()=>yo,withLatestFrom:()=>mo,zip:()=>bn,zipAll:()=>go,zipWith:()=>wo});
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -13,5 +13,5 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
15
  ***************************************************************************** */
16
- var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function u(e,t,n,r){return new(n||(n=Promise))((function(o,u){function i(e){try{a(r.next(e))}catch(e){u(e)}}function s(e){try{a(r.throw(e))}catch(e){u(e)}}function a(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}a((r=r.apply(e,t||[])).next())}))}function i(e,t){var n,r,o,u,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function s(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}Object.create;function s(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function a(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,u=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=u.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=u.return)&&n.call(u)}finally{if(o)throw o.error}}return i}function c(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}function l(e){return this instanceof l?(this.v=e,this):new l(e)}function f(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),u=[];return r={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r;function i(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){u.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof l?Promise.resolve(n.value.v).then(a,c):f(u[0][2],n)}catch(e){f(u[0][3],e)}var n}function a(e){s("next",e)}function c(e){s("throw",e)}function f(e,t){e(t),u.shift(),u.length&&s(u[0][0],u[0][1])}}function p(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=s(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}Object.create;function d(e){return"function"==typeof e}function h(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var v=h((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function b(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var y=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}return e.prototype.unsubscribe=function(){var e,t,n,r,o;if(!this.closed){this.closed=!0;var u=this._parentage;if(u)if(this._parentage=null,Array.isArray(u))try{for(var i=s(u),l=i.next();!l.done;l=i.next()){l.value.remove(this)}}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}else u.remove(this);var f=this.initialTeardown;if(d(f))try{f()}catch(e){o=e instanceof v?e.errors:[e]}var p=this._teardowns;if(p){this._teardowns=null;try{for(var h=s(p),b=h.next();!b.done;b=h.next()){var y=b.value;try{E(y)}catch(e){o=null!=o?o:[],e instanceof v?o=c(c([],a(o)),a(e.errors)):o.push(e)}}}catch(e){n={error:e}}finally{try{b&&!b.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}}if(o)throw new v(o)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)E(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(n=this._teardowns)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&b(t,e)},e.prototype.remove=function(t){var n=this._teardowns;n&&b(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),m=y.EMPTY;function g(e){return e instanceof y||e&&"closed"in e&&d(e.remove)&&d(e.add)&&d(e.unsubscribe)}function E(e){d(e)?e():e.unsubscribe()}var w={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},_={setTimeout:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=_.delegate;return((null==n?void 0:n.setTimeout)||setTimeout).apply(void 0,c([],a(e)))},clearTimeout:function(e){var t=_.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function A(e){_.setTimeout((function(){var t=w.onUnhandledError;if(!t)throw e;t(e)}))}function x(){}var O=C("C",void 0,void 0);function C(e,t,n){return{kind:e,value:t,error:n}}var P=null;function F(e){if(w.useDeprecatedSynchronousErrorHandling){var t=!P;if(t&&(P={errorThrown:!1,error:null}),e(),t){var n=P,r=n.errorThrown,o=n.error;if(P=null,r)throw o}}else e()}function R(e){w.useDeprecatedSynchronousErrorHandling&&P&&(P.errorThrown=!0,P.error=e)}var T=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,g(t)&&t.add(n)):n.destination=N,n}return o(t,e),t.create=function(e,t,n){return new S(e,t,n)},t.prototype.next=function(e){this.isStopped?D(function(e){return C("N",e,void 0)}(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?D(C("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?D(O,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(y),S=function(e){function t(t,n,r){var o,u=e.call(this)||this;if(d(t))o=t;else if(t){var i;o=t.next,n=t.error,r=t.complete,u&&w.useDeprecatedNextContext?(i=Object.create(t)).unsubscribe=function(){return u.unsubscribe()}:i=t,o=null==o?void 0:o.bind(i),n=null==n?void 0:n.bind(i),r=null==r?void 0:r.bind(i)}return u.destination={next:o?I(o,u):x,error:I(null!=n?n:k,u),complete:r?I(r,u):x},u}return o(t,e),t}(T);function I(e,t){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{e.apply(void 0,c([],a(t)))}catch(e){w.useDeprecatedSynchronousErrorHandling?R(e):A(e)}}}function k(e){throw e}function D(e,t){var n=w.onStoppedNotification;n&&_.setTimeout((function(){return n(e,t)}))}var N={closed:!0,next:x,error:k,complete:x},j="function"==typeof Symbol&&Symbol.observable||"@@observable";function L(e){return e}function B(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return U(e)}function U(e){return 0===e.length?L:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var M=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r,o=this,u=(r=e)&&r instanceof T||function(e){return e&&d(e.next)&&d(e.error)&&d(e.complete)}(r)&&g(r)?e:new S(e,t,n);return F((function(){var e=o,t=e.operator,n=e.source;u.add(t?t.call(u,n):n?o._subscribe(u):o._trySubscribe(u))})),u},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=H(t))((function(t,r){var o;o=n.subscribe((function(t){try{e(t)}catch(e){r(e),null==o||o.unsubscribe()}}),r,t)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[j]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return U(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=H(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function H(e){var t;return null!==(t=null!=e?e:w.Promise)&&void 0!==t?t:Promise}function q(e){return d(null==e?void 0:e.lift)}function W(e){return function(t){if(q(t))return t.lift((function(t){try{return e(t,this)}catch(e){this.error(e)}}));throw new TypeError("Unable to lift unknown Observable type")}}var G=function(e){function t(t,n,r,o,u){var i=e.call(this,t)||this;return i.onFinalize=u,i._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,i._error=o?function(e){try{o(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,i._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,i}return o(t,e),t.prototype.unsubscribe=function(){var t,n=this.closed;e.prototype.unsubscribe.call(this),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))},t}(T);function z(){return W((function(e,t){var n=null;e._refCount++;var r=new G(t,void 0,void 0,void 0,(function(){if(!e||e._refCount<=0||0<--e._refCount)n=null;else{var r=e._connection,o=n;n=null,!r||o&&r!==o||r.unsubscribe(),t.unsubscribe()}}));e.subscribe(r),r.closed||(n=e.connect())}))}var V=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._subject=null,r._refCount=0,r._connection=null,q(t)&&(r.lift=t.lift),r}return o(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null,null==e||e.unsubscribe()},t.prototype.connect=function(){var e=this,t=this._connection;if(!t){t=this._connection=new y;var n=this.getSubject();t.add(this.source.subscribe(new G(n,void 0,(function(){e._teardown(),n.complete()}),(function(t){e._teardown(),n.error(t)}),(function(){return e._teardown()})))),t.closed&&(this._connection=null,t=y.EMPTY)}return t},t.prototype.refCount=function(){return z()(this)},t}(M),J={now:function(){return(J.delegate||performance).now()},delegate:void 0},Y={schedule:function(e){var t=requestAnimationFrame,n=cancelAnimationFrame,r=Y.delegate;r&&(t=r.requestAnimationFrame,n=r.cancelAnimationFrame);var o=t((function(t){n=void 0,e(t)}));return new y((function(){return null==n?void 0:n(o)}))},requestAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Y.delegate;return((null==n?void 0:n.requestAnimationFrame)||requestAnimationFrame).apply(void 0,c([],a(e)))},cancelAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Y.delegate;return((null==n?void 0:n.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,c([],a(e)))},delegate:void 0};function X(e){return e?K(e):$}function K(e){var t=Y.schedule;return new M((function(n){var r=new y,o=e||J,u=o.now(),i=function(s){var a=o.now();n.next({timestamp:e?a:s,elapsed:a-u}),n.closed||r.add(t(i))};return r.add(t(i)),r}))}var Z,$=K(),Q=h((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),ee=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return o(t,e),t.prototype.lift=function(e){var t=new te(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new Q},t.prototype.next=function(e){var t=this;F((function(){var n,r;if(t._throwIfClosed(),!t.isStopped){var o=t.observers.slice();try{for(var u=s(o),i=u.next();!i.done;i=u.next()){i.value.next(e)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}}))},t.prototype.error=function(e){var t=this;F((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}}))},t.prototype.complete=function(){var e=this;F((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=t.hasError,r=t.isStopped,o=t.observers;return n||r?m:(o.push(e),new y((function(){return b(o,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,o=t.isStopped;n?e.error(r):o&&e.complete()},t.prototype.asObservable=function(){var e=new M;return e.source=this,e},t.create=function(e,t){return new te(e,t)},t}(M),te=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return o(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:m},t}(ee),ne=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return o(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){var e=this,t=e.hasError,n=e.thrownError,r=e._value;if(t)throw n;return this._throwIfClosed(),r},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(ee),re={now:function(){return(re.delegate||Date).now()},delegate:void 0},oe=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=re);var o=e.call(this)||this;return o._bufferSize=t,o._windowTime=n,o._timestampProvider=r,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=n===1/0,o._bufferSize=Math.max(1,t),o._windowTime=Math.max(1,n),o}return o(t,e),t.prototype.next=function(t){var n=this,r=n.isStopped,o=n._buffer,u=n._infiniteTimeWindow,i=n._timestampProvider,s=n._windowTime;r||(o.push(t),!u&&o.push(i.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),o=0;o<r.length&&!e.closed;o+=n?1:2)e.next(r[o]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,n=e._timestampProvider,r=e._buffer,o=e._infiniteTimeWindow,u=(o?1:2)*t;if(t<1/0&&u<r.length&&r.splice(0,r.length-u),!o){for(var i=n.now(),s=0,a=1;a<r.length&&r[a]<=i;a+=2)s=a;s&&r.splice(0,s+1)}},t}(ee),ue=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._value=null,t._hasValue=!1,t._isComplete=!1,t}return o(t,e),t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t._hasValue,o=t._value,u=t.thrownError,i=t.isStopped,s=t._isComplete;n?e.error(u):(i||s)&&(r&&e.next(o),e.complete())},t.prototype.next=function(e){this.isStopped||(this._value=e,this._hasValue=!0)},t.prototype.complete=function(){var t=this,n=t._hasValue,r=t._value;t._isComplete||(this._isComplete=!0,n&&e.prototype.next.call(this,r),e.prototype.complete.call(this))},t}(ee),ie=function(e){function t(t,n){return e.call(this)||this}return o(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(y),se={setInterval:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=se.delegate;return((null==n?void 0:n.setInterval)||setInterval).apply(void 0,c([],a(e)))},clearInterval:function(e){var t=se.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},ae=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return o(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),se.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return t;se.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n,r=!1;try{this.work(e)}catch(e){r=!0,n=!!e&&e||new Error(e)}if(r)return this.unsubscribe(),n},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,n=this.scheduler,r=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,b(r,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(ie),ce=1,le={};function fe(e){return e in le&&(delete le[e],!0)}var pe=function(e){var t=ce++;return le[t]=!0,Z||(Z=Promise.resolve()),Z.then((function(){return fe(t)&&e()})),t},de=function(e){fe(e)},he={setImmediate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=he.delegate;return((null==n?void 0:n.setImmediate)||pe).apply(void 0,c([],a(e)))},clearImmediate:function(e){var t=he.delegate;return((null==t?void 0:t.clearImmediate)||de)(e)},delegate:void 0},ve=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return o(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=he.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(he.clearImmediate(n),t._scheduled=void 0)},t}(ae),be=function(){function e(t,n){void 0===n&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=re.now,e}(),ye=function(e){function t(t,n){void 0===n&&(n=be.now);var r=e.call(this,t,n)||this;return r.actions=[],r._active=!1,r._scheduled=void 0,r}return o(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var n;this._active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(be),me=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.flush=function(e){this._active=!0,this._scheduled=void 0;var t,n=this.actions,r=-1;e=e||n.shift();var o=n.length;do{if(t=e.execute(e.state,e.delay))break}while(++r<o&&(e=n.shift()));if(this._active=!1,t){for(;++r<o&&(e=n.shift());)e.unsubscribe();throw t}},t}(ye),ge=new me(ve),Ee=ge,we=new ye(ae),_e=we,Ae=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return o(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):t.flush(this)},t}(ae),xe=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(ye))(Ae),Oe=xe,Ce=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return o(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=Y.requestAnimationFrame((function(){return t.flush(void 0)}))))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(Y.cancelAnimationFrame(n),t._scheduled=void 0)},t}(ae),Pe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.flush=function(e){this._active=!0,this._scheduled=void 0;var t,n=this.actions,r=-1;e=e||n.shift();var o=n.length;do{if(t=e.execute(e.state,e.delay))break}while(++r<o&&(e=n.shift()));if(this._active=!1,t){for(;++r<o&&(e=n.shift());)e.unsubscribe();throw t}},t}(ye),Fe=new Pe(Ce),Re=Fe,Te=function(e){function t(t,n){void 0===t&&(t=Se),void 0===n&&(n=1/0);var r=e.call(this,t,(function(){return r.frame}))||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}return o(t,e),t.prototype.flush=function(){for(var e,t,n=this.actions,r=this.maxFrames;(t=n[0])&&t.delay<=r&&(n.shift(),this.frame=t.delay,!(e=t.execute(t.state,t.delay))););if(e){for(;t=n.shift();)t.unsubscribe();throw e}},t.frameTimeFactor=10,t}(ye),Se=function(e){function t(t,n,r){void 0===r&&(r=t.index+=1);var o=e.call(this,t,n)||this;return o.scheduler=t,o.work=n,o.index=r,o.active=!0,o.index=t.index=r,o}return o(t,e),t.prototype.schedule=function(n,r){if(void 0===r&&(r=0),Number.isFinite(r)){if(!this.id)return e.prototype.schedule.call(this,n,r);this.active=!1;var o=new t(this.scheduler,this.work);return this.add(o),o.schedule(n,r)}return y.EMPTY},t.prototype.requestAsyncId=function(e,n,r){void 0===r&&(r=0),this.delay=e.frame+r;var o=e.actions;return o.push(this),o.sort(t.sortActions),!0},t.prototype.recycleAsyncId=function(e,t,n){void 0===n&&(n=0)},t.prototype._execute=function(t,n){if(!0===this.active)return e.prototype._execute.call(this,t,n)},t.sortActions=function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1},t}(ae),Ie=new M((function(e){return e.complete()}));function ke(e){return e?function(e){return new M((function(t){return e.schedule((function(){return t.complete()}))}))}(e):Ie}function De(e,t){return new M((function(n){var r=0;return t.schedule((function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())}))}))}var Ne=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function je(e){return d(null==e?void 0:e.then)}var Le,Be="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function Ue(e,t,n,r){void 0===r&&(r=0);var o=t.schedule((function(){try{n.call(this)}catch(t){e.error(t)}}),r);return e.add(o),o}function Me(e,t){return new M((function(n){var r;return n.add(t.schedule((function(){r=e[Be](),Ue(n,t,(function(){var e=r.next(),t=e.value;e.done?n.complete():(n.next(t),this.schedule())}))}))),function(){return d(null==r?void 0:r.return)&&r.return()}}))}function He(e,t){if(!e)throw new Error("Iterable cannot be null");return new M((function(n){var r=new y;return r.add(t.schedule((function(){var o=e[Symbol.asyncIterator]();r.add(t.schedule((function(){var e=this;o.next().then((function(t){t.done?n.complete():(n.next(t.value),e.schedule())}))})))}))),r}))}function qe(e){return d(e[j])}function We(e){return d(null==e?void 0:e[Be])}function Ge(e){return Symbol.asyncIterator&&d(null==e?void 0:e[Symbol.asyncIterator])}function ze(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Ve(e){return f(this,arguments,(function(){var t,n,r;return i(this,(function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,l(t.read())];case 3:return n=o.sent(),r=n.value,n.done?[4,l(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,l(r)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}))}))}function Je(e){return d(null==e?void 0:e.getReader)}function Ye(e,t){if(null!=e){if(qe(e))return function(e,t){return new M((function(n){var r=new y;return r.add(t.schedule((function(){var o=e[j]();r.add(o.subscribe({next:function(e){r.add(t.schedule((function(){return n.next(e)})))},error:function(e){r.add(t.schedule((function(){return n.error(e)})))},complete:function(){r.add(t.schedule((function(){return n.complete()})))}}))}))),r}))}(e,t);if(Ne(e))return De(e,t);if(je(e))return function(e,t){return new M((function(n){return t.schedule((function(){return e.then((function(e){n.add(t.schedule((function(){n.next(e),n.add(t.schedule((function(){return n.complete()})))})))}),(function(e){n.add(t.schedule((function(){return n.error(e)})))}))}))}))}(e,t);if(Ge(e))return He(e,t);if(We(e))return Me(e,t);if(Je(e))return function(e,t){return He(Ve(e),t)}(e,t)}throw ze(e)}function Xe(e,t){return t?Ye(e,t):Ke(e)}function Ke(e){if(e instanceof M)return e;if(null!=e){if(qe(e))return r=e,new M((function(e){var t=r[j]();if(d(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")}));if(Ne(e))return Ze(e);if(je(e))return n=e,new M((function(e){n.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,A)}));if(Ge(e))return $e(e);if(We(e))return t=e,new M((function(e){var n,r;try{for(var o=s(t),u=o.next();!u.done;u=o.next()){var i=u.value;if(e.next(i),e.closed)return}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}e.complete()}));if(Je(e))return $e(Ve(e))}var t,n,r;throw ze(e)}function Ze(e){return new M((function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()}))}function $e(e){return new M((function(t){(function(e,t){var n,r,o,s;return u(this,void 0,void 0,(function(){var u,a;return i(this,(function(i){switch(i.label){case 0:i.trys.push([0,5,6,11]),n=p(e),i.label=1;case 1:return[4,n.next()];case 2:if((r=i.sent()).done)return[3,4];if(u=r.value,t.next(u),t.closed)return[2];i.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=i.sent(),o={error:a},[3,11];case 6:return i.trys.push([6,,9,10]),r&&!r.done&&(s=n.return)?[4,s.call(n)]:[3,8];case 7:i.sent(),i.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}}))}))})(e,t).catch((function(e){return t.error(e)}))}))}function Qe(e,t){return t?De(e,t):Ze(e)}function et(e){return e&&d(e.schedule)}function tt(e){return e[e.length-1]}function nt(e){return d(tt(e))?e.pop():void 0}function rt(e){return et(tt(e))?e.pop():void 0}function ot(e,t){return"number"==typeof tt(e)?e.pop():t}function ut(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=rt(e);return n?De(e,n):Qe(e)}function it(e,t){var n=d(e)?e:function(){return e},r=function(e){return e.error(n())};return new M(t?function(e){return t.schedule(r,0,e)}:r)}!function(e){e.NEXT="N",e.ERROR="E",e.COMPLETE="C"}(Le||(Le={}));var st=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){return at(this,e)},e.prototype.do=function(e,t,n){var r=this,o=r.kind,u=r.value,i=r.error;return"N"===o?null==e?void 0:e(u):"E"===o?null==t?void 0:t(i):null==n?void 0:n()},e.prototype.accept=function(e,t,n){var r;return d(null===(r=e)||void 0===r?void 0:r.next)?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){var e=this,t=e.kind,n=e.value,r=e.error,o="N"===t?ut(n):"E"===t?it((function(){return r})):"C"===t?Ie:0;if(!o)throw new TypeError("Unexpected notification kind "+t);return o},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}();function at(e,t){var n,r,o,u=e,i=u.kind,s=u.value,a=u.error;if("string"!=typeof i)throw new TypeError('Invalid notification, missing "kind"');"N"===i?null===(n=t.next)||void 0===n||n.call(t,s):"E"===i?null===(r=t.error)||void 0===r||r.call(t,a):null===(o=t.complete)||void 0===o||o.call(t)}function ct(e){return!!e&&(e instanceof M||d(e.lift)&&d(e.subscribe))}var lt=h((function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}}));function ft(e,t){var n="object"==typeof t;return new Promise((function(r,o){var u,i=!1;e.subscribe({next:function(e){u=e,i=!0},error:o,complete:function(){i?r(u):n?r(t.defaultValue):o(new lt)}})}))}function pt(e,t){var n="object"==typeof t;return new Promise((function(r,o){var u=new S({next:function(e){r(e),u.unsubscribe()},error:o,complete:function(){n?r(t.defaultValue):o(new lt)}});e.subscribe(u)}))}var dt=h((function(e){return function(){e(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})),ht=h((function(e){return function(t){e(this),this.name="NotFoundError",this.message=t}})),vt=h((function(e){return function(t){e(this),this.name="SequenceError",this.message=t}}));function bt(e){return e instanceof Date&&!isNaN(e)}var yt=h((function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}}));function mt(e,t){var n=bt(e)?{first:e}:"number"==typeof e?{each:e}:e,r=n.first,o=n.each,u=n.with,i=void 0===u?gt:u,s=n.scheduler,a=void 0===s?null!=t?t:we:s,c=n.meta,l=void 0===c?null:c;if(null==r&&null==o)throw new TypeError("No timeout provided.");return W((function(e,t){var n,u,s=null,c=0,f=function(e){u=Ue(t,a,(function(){n.unsubscribe(),Ke(i({meta:l,lastValue:s,seen:c})).subscribe(t)}),e)};n=e.subscribe(new G(t,(function(e){null==u||u.unsubscribe(),c++,t.next(s=e),o>0&&f(o)}),void 0,void 0,(function(){(null==u?void 0:u.closed)||null==u||u.unsubscribe(),s=null}))),f(null!=r?"number"==typeof r?r:+r-a.now():o)}))}function gt(e){throw new yt(e)}function Et(e,t){return void 0===t&&(t=0),W((function(n,r){r.add(e.schedule((function(){return n.subscribe(r)}),t))}))}function wt(e,t){return W((function(n,r){var o=0;n.subscribe(new G(r,(function(n){r.next(e.call(t,n,o++))})))}))}var _t=Array.isArray;function At(e){return wt((function(t){return function(e,t){return _t(t)?e.apply(void 0,c([],a(t))):e(t)}(e,t)}))}function xt(e,t){return void 0===t&&(t=0),W((function(n,r){n.subscribe(new G(r,(function(n){return r.add(e.schedule((function(){return r.next(n)}),t))}),(function(){return r.add(e.schedule((function(){return r.complete()}),t))}),(function(n){return r.add(e.schedule((function(){return r.error(n)}),t))})))}))}function Ot(e,t,n,r){if(n){if(!et(n))return function(){for(var o=[],u=0;u<arguments.length;u++)o[u]=arguments[u];return Ot(e,t,r).apply(this,o).pipe(At(n))};r=n}return r?function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];return Ot(e,t).apply(this,n).pipe(Et(r),xt(r))}:function(){for(var n=this,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var u=new ue,i=!0;return new M((function(o){var s=u.subscribe(o);if(i){i=!1;var l=!1,f=!1;t.apply(n,c(c([],a(r)),[function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(e){var r=t.shift();if(null!=r)return void u.error(r)}u.next(1<t.length?t:t[0]),f=!0,l&&u.complete()}])),f&&u.complete(),l=!0}return s}))}}function Ct(e,t,n){return Ot(!1,e,t,n)}function Pt(e,t,n){return Ot(!0,e,t,n)}var Ft=Array.isArray,Rt=Object.getPrototypeOf,Tt=Object.prototype,St=Object.keys;function It(e){if(1===e.length){var t=e[0];if(Ft(t))return{args:t,keys:null};if((r=t)&&"object"==typeof r&&Rt(r)===Tt){var n=St(t);return{args:n.map((function(e){return t[e]})),keys:n}}}var r;return{args:e,keys:null}}function kt(e,t){return e.reduce((function(e,n,r){return e[n]=t[r],e}),{})}function Dt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=rt(e),r=nt(e),o=It(e),u=o.args,i=o.keys;if(0===u.length)return Xe([],n);var s=new M(Nt(u,n,i?function(e){return kt(i,e)}:L));return r?s.pipe(At(r)):s}function Nt(e,t,n){return void 0===n&&(n=L),function(r){jt(t,(function(){for(var o=e.length,u=new Array(o),i=o,s=o,a=function(o){jt(t,(function(){var a=Xe(e[o],t),c=!1;a.subscribe(new G(r,(function(e){u[o]=e,c||(c=!0,s--),s||r.next(n(u.slice()))}),(function(){--i||r.complete()})))}),r)},c=0;c<o;c++)a(c)}),r)}}function jt(e,t,n){e?n.add(e.schedule(t)):t()}function Lt(e,t,n,r,o,u,i,s){var a=[],c=0,l=0,f=!1,p=function(){!f||a.length||c||t.complete()},d=function(e){return c<r?h(e):a.push(e)},h=function(e){u&&t.next(e),c++;var s=!1;Ke(n(e,l++)).subscribe(new G(t,(function(e){null==o||o(e),u?d(e):t.next(e)}),(function(){s=!0}),void 0,(function(){if(s)try{c--;for(var e=function(){var e=a.shift();i?t.add(i.schedule((function(){return h(e)}))):h(e)};a.length&&c<r;)e();p()}catch(e){t.error(e)}})))};return e.subscribe(new G(t,d,(function(){f=!0,p()}))),function(){null==s||s()}}function Bt(e,t,n){return void 0===n&&(n=1/0),d(t)?Bt((function(n,r){return wt((function(e,o){return t(n,e,r,o)}))(Ke(e(n,r)))}),n):("number"==typeof t&&(n=t),W((function(t,r){return Lt(t,r,e,n)})))}function Ut(e){return void 0===e&&(e=1/0),Bt(L,e)}function Mt(){return Ut(1)}function Ht(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Mt()(Qe(e,rt(e)))}function qt(e){return new M((function(t){Ke(e()).subscribe(t)}))}var Wt={connector:function(){return new ee},resetOnDisconnect:!0};function Gt(e,t){void 0===t&&(t=Wt);var n=null,r=t.connector,o=t.resetOnDisconnect,u=void 0===o||o,i=r(),s=new M((function(e){return i.subscribe(e)}));return s.connect=function(){return n&&!n.closed||(n=qt((function(){return e})).subscribe(i),u&&n.add((function(){return i=r()}))),n},s}function zt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=nt(e),r=It(e),o=r.args,u=r.keys,i=new M((function(e){var t=o.length;if(t)for(var n=new Array(t),r=t,i=t,s=function(t){var s=!1;Ke(o[t]).subscribe(new G(e,(function(e){s||(s=!0,i--),n[t]=e}),(function(){--r&&s||(i||e.next(u?kt(u,n):n),e.complete())})))},a=0;a<t;a++)s(a);else e.complete()}));return n?i.pipe(At(n)):i}var Vt=["addListener","removeListener"],Jt=["addEventListener","removeEventListener"],Yt=["on","off"];function Xt(e,t,n,r){if(d(n)&&(r=n,n=void 0),r)return Xt(e,t,n).pipe(At(r));var o=a(function(e){return d(e.addEventListener)&&d(e.removeEventListener)}(e)?Jt.map((function(r){return function(o){return e[r](t,o,n)}})):function(e){return d(e.addListener)&&d(e.removeListener)}(e)?Vt.map(Kt(e,t)):function(e){return d(e.on)&&d(e.off)}(e)?Yt.map(Kt(e,t)):[],2),u=o[0],i=o[1];if(!u&&Ne(e))return Bt((function(e){return Xt(e,t,n)}))(Qe(e));if(!u)throw new TypeError("Invalid event target");return new M((function(e){var t=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.next(1<t.length?t:t[0])};return u(t),function(){return i(t)}}))}function Kt(e,t){return function(n){return function(r){return e[n](t,r)}}}function Zt(e,t,n){return n?Zt(e,t).pipe(At(n)):new M((function(n){var r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.next(1===e.length?e[0]:e)},o=e(r);return d(t)?function(){return t(r,o)}:void 0}))}function $t(e,t,n,r,o){var u,s,a,c;function l(){var e;return i(this,(function(r){switch(r.label){case 0:e=c,r.label=1;case 1:return t&&!t(e)?[3,4]:[4,a(e)];case 2:r.sent(),r.label=3;case 3:return e=n(e),[3,1];case 4:return[2]}}))}return 1===arguments.length?(c=(u=e).initialState,t=u.condition,n=u.iterate,s=u.resultSelector,a=void 0===s?L:s,o=u.scheduler):(c=e,!r||et(r)?(a=L,o=r):a=r),qt(o?function(){return Me(l(),o)}:l)}function Qt(e,t,n){return qt((function(){return e()?t:n}))}function en(e,t,n){void 0===e&&(e=0),void 0===n&&(n=_e);var r=-1;return null!=t&&(et(t)?n=t:r=t),new M((function(t){var o=bt(e)?+e-n.now():e;o<0&&(o=0);var u=0;return n.schedule((function(){t.closed||(t.next(u++),0<=r?this.schedule(void 0,r):t.complete())}),o)}))}function tn(e,t){return void 0===e&&(e=0),void 0===t&&(t=we),e<0&&(e=0),en(e,e,t)}function nn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=rt(e),r=ot(e,1/0),o=e;return o.length?1===o.length?Ke(o[0]):Ut(r)(Qe(o,n)):Ie}var rn=new M(x);function on(){return rn}var un=Array.isArray;function sn(e){return 1===e.length&&un(e[0])?e[0]:e}function an(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=sn(e);return W((function(e,t){var r=c([e],a(n)),o=function(){if(!t.closed)if(r.length>0){var e=void 0;try{e=Ke(r.shift())}catch(e){return void o()}var n=new G(t,void 0,x,x);t.add(e.subscribe(n)),n.add(o)}else t.complete()};o()}))}function cn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return an(sn(e))(Ie)}function ln(e,t){return Xe(Object.entries(e),t)}function fn(e,t){return function(n,r){return!e.call(t,n,r)}}function pn(e,t){return W((function(n,r){var o=0;n.subscribe(new G(r,(function(n){return e.call(t,n,o++)&&r.next(n)})))}))}function dn(e,t,n){return[pn(t,n)(Ke(e)),pn(fn(t,n))(Ke(e))]}function hn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===(e=sn(e)).length?Ke(e[0]):new M(vn(e))}function vn(e){return function(t){for(var n=[],r=function(r){n.push(Ke(e[r]).subscribe(new G(t,(function(e){if(n){for(var o=0;o<n.length;o++)o!==r&&n[o].unsubscribe();n=null}t.next(e)}))))},o=0;n&&!t.closed&&o<e.length;o++)r(o)}}function bn(e,t,n){if(null==t&&(t=e,e=0),t<=0)return Ie;var r=t+e;return new M(n?function(t){var o=e;return n.schedule((function(){o<r?(t.next(o++),this.schedule()):t.complete()}))}:function(t){for(var n=e;n<r&&!t.closed;)t.next(n++);t.complete()})}function yn(e,t){return new M((function(n){var r=e(),o=t(r);return(o?Ke(o):Ie).subscribe(n),function(){r&&r.unsubscribe()}}))}function mn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=nt(e),r=sn(e);return r.length?new M((function(e){var t=r.map((function(){return[]})),o=r.map((function(){return!1}));e.add((function(){t=o=null}));for(var u=function(u){Ke(r[u]).subscribe(new G(e,(function(r){if(t[u].push(r),t.every((function(e){return e.length}))){var i=t.map((function(e){return e.shift()}));e.next(n?n.apply(void 0,c([],a(i))):i),t.some((function(e,t){return!e.length&&o[t]}))&&e.complete()}}),(function(){o[u]=!0,!t[u].length&&e.complete()})))},i=0;!e.closed&&i<r.length;i++)u(i);return function(){t=o=null}})):Ie}function gn(e){return W((function(t,n){var r=!1,o=null,u=null,i=!1,s=function(){if(null==u||u.unsubscribe(),u=null,r){r=!1;var e=o;o=null,n.next(e)}i&&n.complete()},a=function(){u=null,i&&n.complete()};t.subscribe(new G(n,(function(t){r=!0,o=t,u||Ke(e(t)).subscribe(u=new G(n,s,a))}),(function(){i=!0,(!r||!u||u.closed)&&n.complete()})))}))}function En(e,t){return void 0===t&&(t=_e),gn((function(){return en(e,t)}))}function wn(e){return W((function(t,n){var r=[];return t.subscribe(new G(n,(function(e){return r.push(e)}),(function(){n.next(r),n.complete()}))),e.subscribe(new G(n,(function(){var e=r;r=[],n.next(e)}),x)),function(){r=null}}))}function _n(e,t){return void 0===t&&(t=null),t=null!=t?t:e,W((function(n,r){var o=[],u=0;n.subscribe(new G(r,(function(n){var i,a,c,l,f=null;u++%t==0&&o.push([]);try{for(var p=s(o),d=p.next();!d.done;d=p.next()){(y=d.value).push(n),e<=y.length&&(f=null!=f?f:[]).push(y)}}catch(e){i={error:e}}finally{try{d&&!d.done&&(a=p.return)&&a.call(p)}finally{if(i)throw i.error}}if(f)try{for(var h=s(f),v=h.next();!v.done;v=h.next()){var y=v.value;b(o,y),r.next(y)}}catch(e){c={error:e}}finally{try{v&&!v.done&&(l=h.return)&&l.call(h)}finally{if(c)throw c.error}}}),(function(){var e,t;try{for(var n=s(o),u=n.next();!u.done;u=n.next()){var i=u.value;r.next(i)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}r.complete()}),void 0,(function(){o=null})))}))}function An(e){for(var t,n,r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];var u=null!==(t=rt(r))&&void 0!==t?t:we,i=null!==(n=r[0])&&void 0!==n?n:null,a=r[1]||1/0;return W((function(t,n){var r=[],o=!1,c=function(e){var t=e.buffer;e.subs.unsubscribe(),b(r,e),n.next(t),o&&l()},l=function(){if(r){var t=new y;n.add(t);var o={buffer:[],subs:t};r.push(o),t.add(u.schedule((function(){return c(o)}),e))}};null!==i&&i>=0?n.add(u.schedule((function(){l(),!this.closed&&n.add(this.schedule(null,i))}),i)):o=!0,l();var f=new G(n,(function(e){var t,n,o=r.slice();try{for(var u=s(o),i=u.next();!i.done;i=u.next()){var l=i.value,f=l.buffer;f.push(e),a<=f.length&&c(l)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}}),(function(){for(;null==r?void 0:r.length;)n.next(r.shift().buffer);null==f||f.unsubscribe(),n.complete(),n.unsubscribe()}),void 0,(function(){return r=null}));t.subscribe(f)}))}function xn(e,t){return W((function(n,r){var o=[];Ke(e).subscribe(new G(r,(function(e){var n=[];o.push(n);var u=new y;u.add(Ke(t(e)).subscribe(new G(r,(function(){b(o,n),r.next(n),u.unsubscribe()}),x)))}),x)),n.subscribe(new G(r,(function(e){var t,n;try{for(var r=s(o),u=r.next();!u.done;u=r.next()){u.value.push(e)}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}}),(function(){for(;o.length>0;)r.next(o.shift());r.complete()})))}))}function On(e){return W((function(t,n){var r=null,o=null,u=function(){null==o||o.unsubscribe();var t=r;r=[],t&&n.next(t),Ke(e()).subscribe(o=new G(n,u,x))};u(),t.subscribe(new G(n,(function(e){return null==r?void 0:r.push(e)}),(function(){r&&n.next(r),n.complete()}),void 0,(function(){return r=o=null})))}))}function Cn(e){return W((function(t,n){var r,o=null,u=!1;o=t.subscribe(new G(n,void 0,void 0,(function(i){r=Ke(e(i,Cn(e)(t))),o?(o.unsubscribe(),o=null,r.subscribe(n)):u=!0}))),u&&(o.unsubscribe(),o=null,r.subscribe(n))}))}function Pn(e,t,n,r,o){return function(u,i){var s=n,a=t,c=0;u.subscribe(new G(i,(function(t){var n=c++;a=s?e(a,t,n):(s=!0,t),r&&i.next(a)}),o&&function(){s&&i.next(a),i.complete()}))}}function Fn(e,t){return W(Pn(e,t,arguments.length>=2,!1,!0))}var Rn=function(e,t){return e.push(t),e};function Tn(){return W((function(e,t){Fn(Rn,[])(e).subscribe(t)}))}function Sn(e,t){return B(Tn(),Bt((function(t){return e(t)})),t?At(t):L)}function In(e){return Sn(Dt,e)}var kn=In;function Dn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=nt(e);return n?B(Dn.apply(void 0,c([],a(e))),At(n)):W((function(t,n){Nt(c([t],a(sn(e))))(n)}))}function Nn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Dn.apply(void 0,c([],a(e)))}function jn(e,t){return d(t)?Bt(e,t,1):Bt(e,1)}function Ln(e,t){return d(t)?jn((function(){return e}),t):jn((function(){return e}))}function Bn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=rt(e);return W((function(t,r){Mt()(Qe(c([t],a(e)),n)).subscribe(r)}))}function Un(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Bn.apply(void 0,c([],a(e)))}var Mn={connector:function(){return new ee}};function Hn(e,t){void 0===t&&(t=Mn);var n=t.connector;return W((function(t,r){var o,u=n();Xe(e((o=u,new M((function(e){return o.subscribe(e)}))))).subscribe(r),r.add(t.subscribe(u))}))}function qn(e){return Fn((function(t,n,r){return!e||e(n,r)?t+1:t}),0)}function Wn(e){return W((function(t,n){var r=!1,o=null,u=null,i=function(){if(null==u||u.unsubscribe(),u=null,r){r=!1;var e=o;o=null,n.next(e)}};t.subscribe(new G(n,(function(t){null==u||u.unsubscribe(),r=!0,o=t,u=new G(n,i,x),Ke(e(t)).subscribe(u)}),(function(){i(),n.complete()}),void 0,(function(){o=u=null})))}))}function Gn(e,t){return void 0===t&&(t=we),W((function(n,r){var o=null,u=null,i=null,s=function(){if(o){o.unsubscribe(),o=null;var e=u;u=null,r.next(e)}};function a(){var n=i+e,u=t.now();if(u<n)return o=this.schedule(void 0,n-u),void r.add(o);s()}n.subscribe(new G(r,(function(n){u=n,i=t.now(),o||(o=t.schedule(a,e),r.add(o))}),(function(){s(),r.complete()}),void 0,(function(){u=o=null})))}))}function zn(e){return W((function(t,n){var r=!1;t.subscribe(new G(n,(function(e){r=!0,n.next(e)}),(function(){r||n.next(e),n.complete()})))}))}function Vn(e){return e<=0?function(){return Ie}:W((function(t,n){var r=0;t.subscribe(new G(n,(function(t){++r<=e&&(n.next(t),e<=r&&n.complete())})))}))}function Jn(){return W((function(e,t){e.subscribe(new G(t,x))}))}function Yn(e){return wt((function(){return e}))}function Xn(e,t){return t?function(n){return Ht(t.pipe(Vn(1),Jn()),n.pipe(Xn(e)))}:Bt((function(t,n){return e(t,n).pipe(Vn(1),Yn(t))}))}function Kn(e,t){void 0===t&&(t=we);var n=en(e,t);return Xn((function(){return n}))}function Zn(){return W((function(e,t){e.subscribe(new G(t,(function(e){return at(e,t)})))}))}function $n(e,t){return W((function(n,r){var o=new Set;n.subscribe(new G(r,(function(t){var n=e?e(t):t;o.has(n)||(o.add(n),r.next(t))}))),null==t||t.subscribe(new G(r,(function(){return o.clear()}),x))}))}function Qn(e,t){return void 0===t&&(t=L),e=null!=e?e:er,W((function(n,r){var o,u=!0;n.subscribe(new G(r,(function(n){var i=t(n);!u&&e(o,i)||(u=!1,o=i,r.next(n))})))}))}function er(e,t){return e===t}function tr(e,t){return Qn((function(n,r){return t?t(n[e],r[e]):n[e]===r[e]}))}function nr(e){return void 0===e&&(e=rr),W((function(t,n){var r=!1;t.subscribe(new G(n,(function(e){r=!0,n.next(e)}),(function(){return r?n.complete():n.error(e())})))}))}function rr(){return new lt}function or(e,t){if(e<0)throw new dt;var n=arguments.length>=2;return function(r){return r.pipe(pn((function(t,n){return n===e})),Vn(1),n?zn(t):nr((function(){return new dt})))}}function ur(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return Ht(t,ut.apply(void 0,c([],a(e))))}}function ir(e,t){return W((function(n,r){var o=0;n.subscribe(new G(r,(function(u){e.call(t,u,o++,n)||(r.next(!1),r.complete())}),(function(){r.next(!0),r.complete()})))}))}function sr(){return W((function(e,t){var n=!1,r=null;e.subscribe(new G(t,(function(e){r||(r=Ke(e).subscribe(new G(t,void 0,(function(){r=null,n&&t.complete()}))))}),(function(){n=!0,!r&&t.complete()})))}))}var ar=sr;function cr(e,t){return t?function(n){return n.pipe(cr((function(n,r){return Ke(e(n,r)).pipe(wt((function(e,o){return t(n,e,r,o)})))})))}:W((function(t,n){var r=0,o=null,u=!1;t.subscribe(new G(n,(function(t){o||(o=new G(n,void 0,(function(){o=null,u&&n.complete()})),Ke(e(t,r++)).subscribe(o))}),(function(){u=!0,!o&&n.complete()})))}))}function lr(e,t,n){return void 0===t&&(t=1/0),t=(t||0)<1?1/0:t,W((function(r,o){return Lt(r,o,e,t,void 0,!0,n)}))}function fr(e){return W((function(t,n){try{t.subscribe(n)}finally{n.add(e)}}))}function pr(e,t){return W(dr(e,t,"value"))}function dr(e,t,n){var r="index"===n;return function(n,o){var u=0;n.subscribe(new G(o,(function(i){var s=u++;e.call(t,i,s,n)&&(o.next(r?s:i),o.complete())}),(function(){o.next(r?-1:void 0),o.complete()})))}}function hr(e,t){return W(dr(e,t,"index"))}function vr(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?pn((function(t,n){return e(t,n,r)})):L,Vn(1),n?zn(t):nr((function(){return new lt})))}}function br(e,t,n,r){return W((function(o,u){var i;t&&"function"!=typeof t?(n=t.duration,i=t.element,r=t.connector):i=t;var s=new Map,a=function(e){s.forEach(e),e(u)},c=function(e){return a((function(t){return t.error(e)}))},l=new yr(u,(function(t){try{var o=e(t),a=s.get(o);if(!a){s.set(o,a=r?r():new ee);var f=(d=o,h=a,(v=new M((function(e){l.activeGroups++;var t=h.subscribe(e);return function(){t.unsubscribe(),0==--l.activeGroups&&l.teardownAttempted&&l.unsubscribe()}}))).key=d,v);if(u.next(f),n){var p=new G(a,(function(){a.complete(),null==p||p.unsubscribe()}),void 0,void 0,(function(){return s.delete(o)}));l.add(Ke(n(f)).subscribe(p))}}a.next(i?i(t):t)}catch(e){c(e)}var d,h,v}),(function(){return a((function(e){return e.complete()}))}),c,(function(){return s.clear()}));o.subscribe(l)}))}var yr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.activeGroups=0,t.teardownAttempted=!1,t}return o(t,e),t.prototype.unsubscribe=function(){this.teardownAttempted=!0,0===this.activeGroups&&e.prototype.unsubscribe.call(this)},t}(G);function mr(){return W((function(e,t){e.subscribe(new G(t,(function(){t.next(!1),t.complete()}),(function(){t.next(!0),t.complete()})))}))}function gr(e){return e<=0?function(){return Ie}:W((function(t,n){var r=[];t.subscribe(new G(n,(function(t){r.push(t),e<r.length&&r.shift()}),(function(){var e,t;try{for(var o=s(r),u=o.next();!u.done;u=o.next()){var i=u.value;n.next(i)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}n.complete()}),void 0,(function(){r=null})))}))}function Er(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?pn((function(t,n){return e(t,n,r)})):L,gr(1),n?zn(t):nr((function(){return new lt})))}}function wr(){return W((function(e,t){e.subscribe(new G(t,(function(e){t.next(st.createNext(e))}),(function(){t.next(st.createComplete()),t.complete()}),(function(e){t.next(st.createError(e)),t.complete()})))}))}function _r(e){return Fn(d(e)?function(t,n){return e(t,n)>0?t:n}:function(e,t){return e>t?e:t})}var Ar=Bt;function xr(e,t,n){return void 0===n&&(n=1/0),d(t)?Bt((function(){return e}),t,n):("number"==typeof t&&(n=t),Bt((function(){return e}),n))}function Or(e,t,n){return void 0===n&&(n=1/0),W((function(r,o){var u=t;return Lt(r,o,(function(t,n){return e(u,t,n)}),n,(function(e){u=e}),!1,void 0,(function(){return u=null}))}))}function Cr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=rt(e),r=ot(e,1/0);return e=sn(e),W((function(t,o){Ut(r)(Qe(c([t],a(e)),n)).subscribe(o)}))}function Pr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Cr.apply(void 0,c([],a(e)))}function Fr(e){return Fn(d(e)?function(t,n){return e(t,n)<0?t:n}:function(e,t){return e<t?e:t})}function Rr(e,t){var n=d(e)?e:function(){return e};return d(t)?Hn(t,{connector:n}):function(e){return new V(e,n)}}function Tr(){return W((function(e,t){var n,r=!1;e.subscribe(new G(t,(function(e){var o=n;n=e,r&&t.next([o,e]),r=!0})))}))}function Sr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.length;if(0===n)throw new Error("list of properties cannot be empty.");return wt((function(t){for(var r=t,o=0;o<n;o++){var u=null==r?void 0:r[e[o]];if(void 0===u)return;r=u}return r}))}function Ir(e){return e?function(t){return Hn(e)(t)}:function(e){return Rr(new ee)(e)}}function kr(e){return function(t){var n=new ne(e);return new V(t,(function(){return n}))}}function Dr(){return function(e){var t=new ue;return new V(e,(function(){return t}))}}function Nr(e,t,n,r){n&&!d(n)&&(r=n);var o=d(n)?n:void 0;return function(n){return Rr(new oe(e,t,r),o)(n)}}function jr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length?W((function(t,n){vn(c([t],a(e)))(n)})):L}function Lr(e){return void 0===e&&(e=1/0),e<=0?function(){return Ie}:W((function(t,n){var r,o=0,u=function(){var i=!1;r=t.subscribe(new G(n,void 0,(function(){++o<e?r?(r.unsubscribe(),r=null,u()):i=!0:n.complete()}))),i&&(r.unsubscribe(),r=null,u())};u()}))}function Br(e){return W((function(t,n){var r,o,u=!1,i=!1,s=!1,a=function(){return s&&i&&(n.complete(),!0)},c=function(){s=!1,r=t.subscribe(new G(n,void 0,(function(){s=!0,!a()&&(o||(o=new ee,e(o).subscribe(new G(n,(function(){r?c():u=!0}),(function(){i=!0,a()})))),o).next()}))),u&&(r.unsubscribe(),r=null,u=!1,c())};c()}))}function Ur(e){var t;void 0===e&&(e=1/0);var n=(t=e&&"object"==typeof e?e:{count:e}).count,r=void 0===n?1/0:n,o=t.delay,u=t.resetOnSuccess,i=void 0!==u&&u;return r<=0?L:W((function(e,t){var n,u=0,s=function(){var a=!1;n=e.subscribe(new G(t,(function(e){i&&(u=0),t.next(e)}),void 0,(function(e){if(u++<r){var i=function(){n?(n.unsubscribe(),n=null,s()):a=!0};if(null!=o){var c="number"==typeof o?en(o):Ke(o(e,u)),l=new G(t,(function(){l.unsubscribe(),i()}),(function(){t.complete()}));c.subscribe(l)}else i()}else t.error(e)}))),a&&(n.unsubscribe(),n=null,s())};s()}))}function Mr(e){return W((function(t,n){var r,o,u=!1,i=function(){r=t.subscribe(new G(n,void 0,void 0,(function(t){o||(o=new ee,e(o).subscribe(new G(n,(function(){return r?i():u=!0})))),o&&o.next(t)}))),u&&(r.unsubscribe(),r=null,u=!1,i())};i()}))}function Hr(e){return W((function(t,n){var r=!1,o=null;t.subscribe(new G(n,(function(e){r=!0,o=e})));e.subscribe(new G(n,(function(){if(r){r=!1;var e=o;o=null,n.next(e)}}),x))}))}function qr(e,t){return void 0===t&&(t=we),Hr(tn(e,t))}function Wr(e,t){return W(Pn(e,t,arguments.length>=2,!0))}function Gr(e,t){return void 0===t&&(t=function(e,t){return e===t}),W((function(n,r){var o={buffer:[],complete:!1},u={buffer:[],complete:!1},i=function(e){r.next(e),r.complete()},s=function(e,n){var o=new G(r,(function(r){var o=n.buffer,u=n.complete;0===o.length?u?i(!1):e.buffer.push(r):!t(r,o.shift())&&i(!1)}),(function(){e.complete=!0;var t=n.complete,r=n.buffer;t&&i(0===r.length),null==o||o.unsubscribe()}));return o};n.subscribe(s(o,u)),e.subscribe(s(u,o))}))}function zr(e){void 0===e&&(e={});var t=e.connector,n=void 0===t?function(){return new ee}:t,r=e.resetOnError,o=void 0===r||r,u=e.resetOnComplete,i=void 0===u||u,s=e.resetOnRefCountZero,a=void 0===s||s;return function(e){var t=null,r=null,u=null,s=0,c=!1,l=!1,f=function(){null==r||r.unsubscribe(),r=null},p=function(){f(),t=u=null,c=l=!1},d=function(){var e=t;p(),null==e||e.unsubscribe()};return W((function(e,h){s++,l||c||f();var v=u=null!=u?u:n();h.add((function(){0!==--s||l||c||(r=Vr(d,a))})),v.subscribe(h),t||(t=new S({next:function(e){return v.next(e)},error:function(e){l=!0,f(),r=Vr(p,o,e),v.error(e)},complete:function(){c=!0,f(),r=Vr(p,i),v.complete()}}),Xe(e).subscribe(t))}))(e)}}function Vr(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return!0===t?(e(),null):!1===t?null:t.apply(void 0,c([],a(n))).pipe(Vn(1)).subscribe((function(){return e()}))}function Jr(e,t,n){var r,o,u,i=!1;return e&&"object"==typeof e?(u=null!==(r=e.bufferSize)&&void 0!==r?r:1/0,t=null!==(o=e.windowTime)&&void 0!==o?o:1/0,i=!!e.refCount,n=e.scheduler):u=null!=e?e:1/0,zr({connector:function(){return new oe(u,t,n)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}function Yr(e){return W((function(t,n){var r,o=!1,u=!1,i=0;t.subscribe(new G(n,(function(s){u=!0,e&&!e(s,i++,t)||(o&&n.error(new vt("Too many matching values")),o=!0,r=s)}),(function(){o?(n.next(r),n.complete()):n.error(u?new ht("No matching values"):new lt)})))}))}function Xr(e){return pn((function(t,n){return e<=n}))}function Kr(e){return e<=0?L:W((function(t,n){var r=new Array(e),o=0;return t.subscribe(new G(n,(function(t){var u=o++;if(u<e)r[u]=t;else{var i=u%e,s=r[i];r[i]=t,n.next(s)}}))),function(){r=null}}))}function Zr(e){return W((function(t,n){var r=!1,o=new G(n,(function(){null==o||o.unsubscribe(),r=!0}),x);Ke(e).subscribe(o),t.subscribe(new G(n,(function(e){return r&&n.next(e)})))}))}function $r(e){return W((function(t,n){var r=!1,o=0;t.subscribe(new G(n,(function(t){return(r||(r=!e(t,o++)))&&n.next(t)})))}))}function Qr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=rt(e);return W((function(t,r){(n?Ht(e,t,n):Ht(e,t)).subscribe(r)}))}function eo(e,t){return W((function(n,r){var o=null,u=0,i=!1,s=function(){return i&&!o&&r.complete()};n.subscribe(new G(r,(function(n){null==o||o.unsubscribe();var i=0,a=u++;Ke(e(n,a)).subscribe(o=new G(r,(function(e){return r.next(t?t(n,e,a,i++):e)}),(function(){o=null,s()})))}),(function(){i=!0,s()})))}))}function to(){return eo(L)}function no(e,t){return d(t)?eo((function(){return e}),t):eo((function(){return e}))}function ro(e,t){return W((function(n,r){var o=t;return eo((function(t,n){return e(o,t,n)}),(function(e,t){return o=t,t}))(n).subscribe(r),function(){o=null}}))}function oo(e){return W((function(t,n){Ke(e).subscribe(new G(n,(function(){return n.complete()}),x)),!n.closed&&t.subscribe(n)}))}function uo(e,t){return void 0===t&&(t=!1),W((function(n,r){var o=0;n.subscribe(new G(r,(function(n){var u=e(n,o++);(u||t)&&r.next(n),!u&&r.complete()})))}))}function io(e,t,n){var r=d(e)||t||n?{next:e,error:t,complete:n}:e;return r?W((function(e,t){var n;null===(n=r.subscribe)||void 0===n||n.call(r);var o=!0;e.subscribe(new G(t,(function(e){var n;null===(n=r.next)||void 0===n||n.call(r,e),t.next(e)}),(function(){var e;o=!1,null===(e=r.complete)||void 0===e||e.call(r),t.complete()}),(function(e){var n;o=!1,null===(n=r.error)||void 0===n||n.call(r,e),t.error(e)}),(function(){var e,t;o&&(null===(e=r.unsubscribe)||void 0===e||e.call(r)),null===(t=r.finalize)||void 0===t||t.call(r)})))})):L}var so={leading:!0,trailing:!1};function ao(e,t){var n=void 0===t?so:t,r=n.leading,o=n.trailing;return W((function(t,n){var u=!1,i=null,s=null,a=!1,c=function(){null==s||s.unsubscribe(),s=null,o&&(p(),a&&n.complete())},l=function(){s=null,a&&n.complete()},f=function(t){return s=Ke(e(t)).subscribe(new G(n,c,l))},p=function(){if(u){u=!1;var e=i;i=null,n.next(e),!a&&f(e)}};t.subscribe(new G(n,(function(e){u=!0,i=e,(!s||s.closed)&&(r?p():f(e))}),(function(){a=!0,(!(o&&u&&s)||s.closed)&&n.complete()})))}))}function co(e,t,n){void 0===t&&(t=we),void 0===n&&(n=so);var r=en(e,t);return ao((function(){return r}),n)}function lo(e){return void 0===e&&(e=_e),function(t){return qt((function(){return t.pipe(Wr((function(t,n){var r=t.current;return{value:n,current:e.now(),last:r}}),{current:e.now(),value:void 0,last:void 0}),wt((function(e){var t=e.current,n=e.last,r=e.value;return new fo(r,t-n)})))}))}}var fo=function(e,t){this.value=e,this.interval=t};function po(e,t,n){var r,o,u;if(n=null!=n?n:_e,bt(e)?r=e:"number"==typeof e&&(o=e),!t)throw new TypeError("No observable provided to switch to");if(u=function(){return t},null==r&&null==o)throw new TypeError("No timeout provided.");return mt({first:r,each:o,scheduler:n,with:u})}function ho(e){return void 0===e&&(e=re),wt((function(t){return{value:t,timestamp:e.now()}}))}function vo(e){return W((function(t,n){var r=new ee;n.next(r.asObservable());var o=function(e){r.error(e),n.error(e)};return t.subscribe(new G(n,(function(e){return null==r?void 0:r.next(e)}),(function(){r.complete(),n.complete()}),o)),e.subscribe(new G(n,(function(){r.complete(),n.next(r=new ee)}),x,o)),function(){null==r||r.unsubscribe(),r=null}}))}function bo(e,t){void 0===t&&(t=0);var n=t>0?t:e;return W((function(t,r){var o=[new ee],u=0;r.next(o[0].asObservable()),t.subscribe(new G(r,(function(t){var i,a;try{for(var c=s(o),l=c.next();!l.done;l=c.next()){l.value.next(t)}}catch(e){i={error:e}}finally{try{l&&!l.done&&(a=c.return)&&a.call(c)}finally{if(i)throw i.error}}var f=u-e+1;if(f>=0&&f%n==0&&o.shift().complete(),++u%n==0){var p=new ee;o.push(p),r.next(p.asObservable())}}),(function(){for(;o.length>0;)o.shift().complete();r.complete()}),(function(e){for(;o.length>0;)o.shift().error(e);r.error(e)}),(function(){null,o=null})))}))}function yo(e){for(var t,n,r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];var u=null!==(t=rt(r))&&void 0!==t?t:we,i=null!==(n=r[0])&&void 0!==n?n:null,s=r[1]||1/0;return W((function(t,n){var r=[],o=!1,a=function(e){var t=e.window,n=e.subs;t.complete(),n.unsubscribe(),b(r,e),o&&c()},c=function(){if(r){var t=new y;n.add(t);var o=new ee,i={window:o,subs:t,seen:0};r.push(i),n.next(o.asObservable()),t.add(u.schedule((function(){return a(i)}),e))}};null!==i&&i>=0?n.add(u.schedule((function(){c(),!this.closed&&n.add(this.schedule(null,i))}),i)):o=!0,c();var l=function(e){return r.slice().forEach(e)},f=function(e){l((function(t){var n=t.window;return e(n)})),e(n),n.unsubscribe()};return t.subscribe(new G(n,(function(e){l((function(t){t.window.next(e),s<=++t.seen&&a(t)}))}),(function(){return f((function(e){return e.complete()}))}),(function(e){return f((function(t){return t.error(e)}))}))),function(){r=null}}))}function mo(e,t){return W((function(n,r){var o=[],u=function(e){for(;0<o.length;)o.shift().error(e);r.error(e)};Ke(e).subscribe(new G(r,(function(e){var n=new ee;o.push(n);var i,s=new y;try{i=Ke(t(e))}catch(e){return void u(e)}r.next(n.asObservable()),s.add(i.subscribe(new G(r,(function(){b(o,n),n.complete(),s.unsubscribe()}),x,u)))}),x)),n.subscribe(new G(r,(function(e){var t,n,r=o.slice();try{for(var u=s(r),i=u.next();!i.done;i=u.next()){i.value.next(e)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}}),(function(){for(;0<o.length;)o.shift().complete();r.complete()}),u,(function(){for(;0<o.length;)o.shift().unsubscribe()})))}))}function go(e){return W((function(t,n){var r,o,u=function(e){r.error(e),n.error(e)},i=function(){var t;null==o||o.unsubscribe(),null==r||r.complete(),r=new ee,n.next(r.asObservable());try{t=Ke(e())}catch(e){return void u(e)}t.subscribe(o=new G(n,i,i,u))};i(),t.subscribe(new G(n,(function(e){return r.next(e)}),(function(){r.complete(),n.complete()}),u,(function(){null==o||o.unsubscribe(),r=null})))}))}function Eo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=nt(e);return W((function(t,r){for(var o=e.length,u=new Array(o),i=e.map((function(){return!1})),s=!1,l=function(t){Ke(e[t]).subscribe(new G(r,(function(e){u[t]=e,s||i[t]||(i[t]=!0,(s=i.every(L))&&(i=null))}),x))},f=0;f<o;f++)l(f);t.subscribe(new G(r,(function(e){if(s){var t=c([e],a(u));r.next(n?n.apply(void 0,c([],a(t))):t)}})))}))}function wo(e){return Sn(mn,e)}function _o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return W((function(t,n){mn.apply(void 0,c([t],a(e))).subscribe(n)}))}function Ao(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return _o.apply(void 0,c([],a(e)))}},3596:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimelineApp=void 0;var r=n(4744),o=n(2033),u=n(2431),i=n(4307),s=function(){function e(){this._notifications=[],this._notificationTypes=[],this._flashMessages=[],this._pageNumber=0,this._lastPage=!1,this._loading=!1,this.showMine=!1}return Object.defineProperty(e.prototype,"notifications",{get:function(){return this._notifications},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isLoading",{get:function(){return this._loading},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"page",{get:function(){return this._pageNumber},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasMorePage",{get:function(){return!this._lastPage},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"notificationTypes",{get:function(){return this._notificationTypes},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectedNotificationTypes",{get:function(){return this.preferences.type=this.preferences.type||[],this.preferences.type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"preferences",{get:function(){return o.configure.User.preferences.get(r.APP.TIMELINE)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"flashMessages",{get:function(){return this._flashMessages},enumerable:!1,configurable:!0}),e.prototype.savePreferences=function(){return o.configure.User.saveAppPrefs(r.APP.TIMELINE)},e.prototype.resetPagination=function(){this._pageNumber=0,this._lastPage=!1,this._loading=!1},e.prototype.initialize=function(){var e=this;return Promise.all([o.configure.User.loadAppPrefs(r.APP.TIMELINE),u.transport.http.get("/timeline/types")]).then((function(t){e._notificationTypes=t[1]}))},e.prototype.loadNotifications=function(e){var t=this;if(this._loading||this._lastPage)return Promise.resolve();e&&(this._pageNumber++,this._lastPage=!1);var n=this.selectedNotificationTypes;if(0===n.length)return this._lastPage=!0,Promise.resolve();var r={page:this.page,mine:1};return this.showMine||delete r.mine,this._loading=!0,u.transport.http.get("/timeline/lastNotifications?type="+n.join("&type="),{queryParams:r}).then((function(e){if(t._loading=!1,"ok"===e.status)if(e.number&&e.results){var n=e.results.filter((function(e){return-1===t._notifications.findIndex((function(t){return t._id===e._id}))})).map((function(e){return new i.Notification(e)}));t._notifications=t._notifications.concat(n),t._pageNumber++}else t._lastPage=!0})).catch((function(e){t._loading=!1}))},e.prototype.loadFlashMessages=function(){var e=this;return u.transport.http.get("/timeline/flashmsg/listuser").then((function(t){e._flashMessages=t}))},e.prototype.markAsRead=function(e){return u.transport.http.put("/timeline/flashmsg/"+e.id+"/markasread")},e}();t.TimelineApp=s},4307:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Notification=void 0;var r=n(5807),o=n(6485).TransportFrameworkFactory.instance().http,u=r.SessionFrameworkFactory.instance().session.user,i=function(){function e(e){e.reported=e.reporters&&e.reporters.length>0,this._id=e._id,this.model=e}return e.prototype.isUnread=function(){var e;return void 0!==(null===(e=this.model.recipients)||void 0===e?void 0:e.find((function(e){return e.userId===u.userId})))},e.prototype.delete=function(){return o.delete("/timeline/"+this._id)},e.prototype.discard=function(){return o.put("/timeline/"+this._id)},e.prototype.report=function(){return o.put("/timeline/"+this._id+"/report")},e}();t.Notification=i},6325:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ITimelineFactory=void 0;var r=n(3596),o=function(){function e(){}return e.createInstance=function(){return new r.TimelineApp},e}();t.ITimelineFactory=o},1090:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,u){function i(e){try{a(r.next(e))}catch(e){u(e)}}function s(e){try{a(r.throw(e))}catch(e){u(e)}}function a(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}a((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,u,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function s(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.Analytics=void 0;var u=n(2431),i=n(9294),s=n(5445),a=n(1381),c=n(2033),l=function(){function e(){this._status="void"}return Object.defineProperty(e.prototype,"status",{get:function(){return this._status},enumerable:!1,configurable:!0}),e.prototype.xiti=function(){return this.parametersWithCheck("xiti",!1)},e.prototype.parameters=function(e){return this.parametersWithCheck(e,!0)},e.prototype.parametersWithCheck=function(e,t){return r(this,void 0,void 0,(function(){return o(this,(function(n){return[2,this.initialize().promise.then((function(n){return t&&n.type!==e&&"multiple"!==n.type?void 0:n[e]}))]}))}))},e.prototype.initialize=function(){var e=this;return this._params||(this._params=a.notify.promisify(),this._status="pending",Promise.all([u.transport.http.get("/analyticsConf"),u.transport.http.get("/xiti/config")]).then((function(t){return r(e,void 0,void 0,(function(){var e,n;return o(this,(function(r){switch(r.label){case 0:if(!t||!t[0]||!t[0].type)throw i.ERROR_CODE.MALFORMED_DATA;return t[1]&&t[1].active?(e=t[0],[4,this.initializeXiti(t[1])]):[3,2];case 1:e.xiti=r.sent(),r.label=2;case 2:return null===(n=this._params)||void 0===n||n.resolve(t[0]),this._status="ready",[2]}}))}))})).catch((function(t){var n;throw e._status="failed",null===(n=e._params)||void 0===n||n.reject(),t}))),this._params},e.prototype.initializeXiti=function(e){var t;return r(this,void 0,void 0,(function(){function n(e){for(var t="",n=0;n<e.length;n++)t+=e.charCodeAt(n);return t}var r,u,i,l,f,p,d,h,v,b;return o(this,(function(o){switch(o.label){case 0:return e.structureMap&&c.configure.Platform.apps.currentApp?[4,a.notify.onSessionReady().promise]:[2];case 1:for(r=o.sent(),u=s.session.session.description,l=0,f=r.structures;l<f.length;l++)if(p=f[l],(d=e.structureMap[p])&&d.collectiviteId&&d.UAI){i=d;break}return i&&i.active?[4,c.configure.Platform.apps.getPublicConf(c.configure.Platform.apps.currentApp)]:[2];case 2:return(h=o.sent())&&((v=h.xiti)&&v.LIBELLE_SERVICE&&i.UAI)?(b={Student:"ELEVE",Teacher:"ENSEIGNANT",Relative:"PARENT",Personnel:"ADMIN_VIE_SCOL_TECH",Guest:"AUTRE"},[2,{LIBELLE_SERVICE:v.LIBELLE_SERVICE,TYPE:v.OUTIL?"TIERS":"NATIF",OUTIL:v.OUTIL?v.OUTIL:"",STRUCT_ID:i.collectiviteId,STRUCT_UAI:i.UAI,PROJET:i.projetId?i.projetId:e.ID_PROJET,EXPLOITANT:e.ID_EXPLOITANT,PLATFORME:i.plateformeId?i.plateformeId:e.ID_PLATEFORME,ID_PERSO:n(r.userId),PROFILE:u.profiles&&u.profiles.length>0&&null!==(t=b[u.profiles[0]])&&void 0!==t?t:""}]):[2]}}))}))},e}();t.Analytics=l},2827:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,u){function i(e){try{a(r.next(e))}catch(e){u(e)}}function s(e){try{a(r.throw(e))}catch(e){u(e)}}function a(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}a((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,u,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function s(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.AppConf=void 0;var u=n(2431),i=n(2033),s=n(1381),a=u.transport.http,c=function(){function e(){this._publicConf={}}return Object.defineProperty(e.prototype,"currentApp",{get:function(){var e;return null!==(e=this._currentApp)&&void 0!==e?e:null},enumerable:!1,configurable:!0}),e.prototype.setCurrentApp=function(e){return this._currentApp=e,this},e.prototype.initialize=function(e,t){return void 0===t&&(t=!1),r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return t||this.setCurrentApp(e),[4,Promise.all([this.getPublicConf(e),this.loadI18n(e)])];case 1:return n.sent(),[2]}}))}))},e.prototype.getPublicConf=function(e){return r(this,void 0,void 0,(function(){var t,n;return o(this,(function(r){switch(r.label){case 0:return this._publicConf[e]?[3,2]:(t=this._publicConf,n=e,[4,a.get("/"+e+"/conf/public",{queryParams:{_:i.configure.Platform.deploymentTag}})]);case 1:t[n]=r.sent(),r.label=2;case 2:return[2,this._publicConf[e]]}}))}))},e.prototype.loadI18n=function(e){return s.notify.onLangReady().promise.then((function(t){return i.configure.Platform.idiom.addBundlePromise("/"+e+"/i18n")}))},e}();t.AppConf=c},2033:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,u){function i(e){try{a(r.next(e))}catch(e){u(e)}}function s(e){try{a(r.throw(e))}catch(e){u(e)}}function a(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}a((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,u,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function s(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.configure=t.ConfigurationFramework=void 0;var u=n(270),i=n(6934),s=n(7144),a=n(2827),c=n(2431),l=n(1090),f=n(1381),p=function(){function e(){this.Platform={deploymentTag:"",cdnDomain:"",apps:new a.AppConf,theme:new u.Theme,analytics:new l.Analytics,idiom:new i.Idiom,listLanguages:function(){return c.transport.http.get("/languages")}},this.School={},this.User=new s.User}return e.prototype.initialize=function(e,t){return r(this,void 0,void 0,(function(){var n,r,u,i,s,a,l=this;return o(this,(function(o){switch(o.label){case 0:return e||(n=function(e){return(e<10?"0":"")+e.toFixed(0)},r=new Date,u=r.getFullYear(),i=r.getMonth()+1,s=r.getDate(),r.getMinutes()/10,e=""+u+n(i)+n(s)),a=e,this.Platform.deploymentTag=e,"string"==typeof t&&t.length>0&&(this.Platform.cdnDomain=t),c.transport.http.setCdn(this.Platform.cdnDomain),[4,Promise.all([this.Platform.theme.initialize(a),f.notify.onSessionReady().promise.then((function(e){return l.Platform.idiom.addBundlePromise("/i18n")})),this.User.initialize(a)])];case 1:return o.sent(),[2]}}))}))},e}();t.ConfigurationFramework=p,t.configure=new p},6934:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Idiom=void 0;var r=n(2431),o=n(1381),u=n(5445),i={},s={},a=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],c=function(){function e(){}return e.prototype.translate=function(e,t){var n=void 0===i[e=null!=e?e:""]?e:i[e];if(t&&"object"==typeof t)for(var r in t)void 0!==t[r]&&(n=n.replace(new RegExp("\\${"+r+"}","g"),""+t[r]));return n},e.prototype.addBundlePromise=function(e){return this.loadBundlePromise(u.session.session.currentLanguage,e)},e.prototype.addBundle=function(e,t){this.loadBundle(u.session.session.currentLanguage,e,t)},e.prototype.loadBundlePromise=function(e,t){return this.loadBundle(e,t),s[t]},e.prototype.loadBundle=function(e,t,n){var u=s[t];if(u)n&&u.then(n).catch(n);else{var a=new o.Promisified;s[t]=a.promise;var c={};e&&(c["Accept-Language"]=e),r.transport.http.get(t,{headers:c}).then((function(e){Object.assign(i,e),"function"==typeof n&&n(),a.resolve()})).catch((function(e){"function"==typeof n&&n(),a.reject()}))}},e.prototype.addTranslations=function(e,t){var n=this;o.notify.onLangReady().promise.then((function(r){n.loadBundle(r,e+"/"+r+".json",t)}))},e.prototype.addAllTranslations=function(e){var t=this;return e&&e.length>0?o.notify.onLangReady().promise.then((function(n){return Promise.all(e.map((function(e){return t.loadBundlePromise(n,e+"/"+n+".json")})))})).then((function(){})):Promise.reject()},e.prototype.addKeys=function(e){for(var t in e)"string"!=typeof i[t]&&(i[t]=e[t])},e.prototype.removeAccents=function(e){for(var t=0;t<a.length;t++)e=e.replace(a[t].letters,a[t].base);return e},e}();t.Idiom=c},270:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,u){function i(e){try{a(r.next(e))}catch(e){u(e)}}function s(e){try{a(r.throw(e))}catch(e){u(e)}}function a(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}a((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,u,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function s(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.Theme=void 0;var u=n(1381),i=n(5445),s=n(2431),a=n(2033),c=function(){function e(){this.skinName="",this.themeName="",this.skin="raw",this.themeUrl="/assets/themes/raw/default/",this.templateOverrides={},this.portalTemplate="/assets/themes/raw/portal.html",this.basePath="",this.logoutCallback="/",this.skins=[],this.is1D=!1,this.is2D=!1,this._onSkinReady=u.notify.onSkinReady(),this._onOverrideReady=u.notify.onOverridesReady()}return e.prototype.initialize=function(e){var t=this;return u.notify.onSessionReady().promise.then((function(){return t.load(e)}))},Object.defineProperty(e.prototype,"version",{get:function(){return a.configure.Platform.deploymentTag},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cdnDomain",{get:function(){return a.configure.Platform.cdnDomain},enumerable:!1,configurable:!0}),e.prototype.onFullyReady=function(){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this._loaded];case 1:return e.sent(),[2,this]}}))}))},e.prototype.onSkinReady=function(){return this._onSkinReady.promise},e.prototype.onOverrideReady=function(){return this._onOverrideReady.promise},e.prototype.getConf=function(e){var t;return r(this,void 0,void 0,(function(){var n,r;return o(this,(function(o){switch(o.label){case 0:return n=this,null===(t=this._conf)||void 0===t?[3,1]:(r=t,[3,3]);case 1:return[4,s.transport.http.getScript("/assets/theme-conf.js",{queryParams:{v:null!=e?e:this.version}},"exports.conf")];case 2:r=o.sent(),o.label=3;case 3:return n._conf=r,[2,this._conf]}}))}))},e.prototype.load=function(e){var t=this;return e=null!=e?e:this.version,this._loaded||(this._loaded=(i.session.session.notLoggedIn?this.loadDisconnected(e):this.loadConnected(e)).then((function(){return r(t,void 0,void 0,(function(){var e,t,n,r=this;return o(this,(function(o){switch(o.label){case 0:return[4,this.listSkins()];case 1:return e=o.sent(),this.is1D="panda"===(null===(t=e.find((function(e){return e.child===r.skin})))||void 0===t?void 0:t.parent),this.is2D="theme-open-ent"===(null===(n=e.find((function(e){return e.child===r.skin})))||void 0===n?void 0:n.parent),[2]}}))}))}))),this._loaded},e.prototype.loadDisconnected=function(e){var t=this;return new Promise((function(n,r){s.transport.http.get("/skin",{queryParams:{v:t.version}}).then((function(r){t.skin=r.skin,t.themeUrl=t.cdnDomain+"/assets/themes/"+r.skin+"/skins/default/",t.basePath=t.themeUrl+"../../",t._onSkinReady.resolve(t),s.transport.http.get("/assets/themes/"+r.skin+"/template/override.json",{disableNotifications:!0,queryParams:{v:e}}).then((function(e){t.templateOverrides=e,t._onOverrideReady.resolve(e),n()})).catch((function(e){if(404!==s.transport.http.latestResponse.status)throw e;n()}))})).catch((function(e){t._onSkinReady.reject(e),t._onOverrideReady.reject(e),r()}))}))},e.prototype.loadConnected=function(e){var t=this;return new Promise((function(n,r){t.loadDefaultTheme(e).then((function(){t._onSkinReady.resolve(t),s.transport.http.get("/assets/themes/"+t.skin+"/template/override.json",{disableNotifications:!0,queryParams:{v:e}}).then((function(e){t.templateOverrides=e,t._onOverrideReady.resolve(e),n()})).catch((function(e){if(404!==s.transport.http.latestResponse.status)throw e;n(),t._onSkinReady.reject(e),t._onOverrideReady.reject(e)}))}))}))},e.prototype.loadDefaultTheme=function(e){return r(this,void 0,void 0,(function(){var t=this;return o(this,(function(n){return i.session.session.notLoggedIn?[2,Promise.reject()]:[2,s.transport.http.get("/theme",{queryParams:{_:e}}).then((function(e){t.skinName=e.skinName,t.themeName=e.themeName,t.themeUrl=e.skin,t.basePath=""+t.cdnDomain+t.themeUrl+"../../",t.skin=t.themeUrl.split("/assets/themes/")[1].split("/")[0],t.portalTemplate=t.cdnDomain+"/assets/themes/"+t.skin+"/portal.html",t.logoutCallback=e.logoutCallback}))]}))}))},e.prototype.listThemes=function(){return s.transport.http.get("/themes")},e.prototype.setDefaultTheme=function(e){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,s.transport.http.get("/userbook/api/edit-userbook-info?prop=theme-"+this.skin+"&value="+e._id)];case 1:return t.sent(),[4,this.loadDefaultTheme(this.version)];case 2:return t.sent(),[2]}}))}))},e.prototype.listSkins=function(){var e=this;return this.skins.length>0?Promise.resolve(this.skins):this.getConf().then((function(t){var n=t.overriding.find((function(t){return t.child===e.skin}));return(null==n?void 0:n.group)?e.skins=e.skins.concat(t.overriding.filter((function(e){return e.group===n.group}))):e.skins=e.skins.concat(t.overriding),e.skins}))},e.prototype.getHelpPath=function(){var e;return r(this,void 0,void 0,(function(){var t,n,r=this;return o(this,(function(o){switch(o.label){case 0:return[4,this.listSkins()];case 1:return t=o.sent(),n=t.find((function(e){return e.child===r.skin})),[2,null!==(e=null==n?void 0:n.help)&&void 0!==e?e:"/help"]}}))}))},e}();t.Theme=c},7144:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,u){function i(e){try{a(r.next(e))}catch(e){u(e)}}function s(e){try{a(r.throw(e))}catch(e){u(e)}}function a(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}a((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,u,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function s(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.User=void 0;var u=n(2431),i=n(1381),s=n(5445),a=function(){function e(){this.data={}}return e.prototype.get=function(e){return this.data[e]},e.prototype.load=function(e,t){var n=this;return u.transport.http.get("/userbook/preference/"+e).then((function(e){try{return JSON.parse(e.preference)}catch(e){return null!=t?t:{}}})).then((function(t){return n.data[e]=null!=t?t:{},t}))},e.prototype.update=function(e,t){return void 0!==t&&(this.data[e]=t),this},e.prototype.save=function(e){return u.transport.http.putJson("/userbook/preference/"+e,this.data[e])},e}(),c=function(){function e(){this._me=null,this._keepOpenOnLogout=!1,this._preferences=new a,this._bookmarkedApps=[]}return Object.defineProperty(e.prototype,"keepOpenOnLogout",{get:function(){return this._keepOpenOnLogout},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"preferences",{get:function(){return this._preferences},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bookmarkedApps",{get:function(){return this._bookmarkedApps},enumerable:!1,configurable:!0}),e.prototype.initialize=function(e){var t=this;return this.loadPublicConf(),i.notify.onSessionReady().promise.then((function(e){e&&t.setCurrentModel(e)}))},e.prototype.setCurrentModel=function(e){this._me=e,this._preferences=new a,this.loadBookmarks()},e.prototype.loadPublicConf=function(){var e=this;return u.transport.http.get("/conf/public").then((function(t){return e._keepOpenOnLogout=(null==t?void 0:t.keepOpenOnLogout)||!1,t}))},e.prototype.loadBookmarks=function(){return r(this,void 0,void 0,(function(){var e=this;return o(this,(function(t){switch(t.label){case 0:return[4,u.transport.http.get("/userbook/preference/apps").then((function(t){t.preference||(t.preference=null);var n,r=JSON.parse(t.preference);if(r&&r.length&&"function"==typeof r.concat)return e._bookmarkedApps=r,n={bookmarks:r.map((function(e){return e.name})),applications:[]},void u.transport.http.putJson("/userbook/preference/apps",n);(n=r)||(n={bookmarks:[],applications:[]});var o=!0,i=[];n.bookmarks.forEach((function(t,n){var r=e._me.apps.find((function(e){return e.name===t}));if(r){var u=Object.assign({},r);e._bookmarkedApps.push(u)}else i.push(t),o=!1})),i.forEach((function(e){var t=n.bookmarks.indexOf(e);-1!==t&&n.bookmarks.splice(t,1)})),o||u.transport.http.putJson("/userbook/preference/apps",n)}))];case 1:return t.sent(),[2]}}))}))},e.prototype.loadAppPrefs=function(e){return this.preferences.load(e,{})},e.prototype.saveAppPrefs=function(e){return this.preferences.save(e)},e.prototype.loadLanguage=function(){return this.preferences.load("language",{"default-domain":s.session.session.currentLanguage}).then((function(e){return e["default-domain"]}))},e.prototype.saveLanguage=function(e){return this.preferences.update("language",{"default-domain":e}).save("language")},e}();t.User=c},4506:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigurationFrameworkFactory=void 0;var r=n(2033),o=function(){function e(){}return e.instance=function(){return r.configure},e}();t.ConfigurationFrameworkFactory=o},5046:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractBusAgent=void 0;var r=n(4744),o=n(9255),u=n(609),i=function(){function e(t){this.handlerFor={comment:e.defaultHandler,copy:e.defaultHandler,create:e.defaultHandler,delete:e.defaultHandler,export:e.defaultHandler,initialize:e.defaultHandler,manage:e.defaultHandler,properties:e.defaultHandler,move:e.defaultHandler,open:e.defaultHandler,print:e.defaultHandler,publish:e.defaultHandler,search:e.defaultHandler,share:e.defaultHandler},this.managedResource=t,this.initialize()}return e.prototype.initialize=function(){for(var t in Object.values(u.ACTION))this.handlerFor[t]=e.defaultHandler;this.registerHandlers()},e.prototype.setHandler=function(e,t){o.BusFactory.instance.setAgentFor(this.managedResource,e,this),this.handlerFor[e]=t},e.prototype.getHandler=function(e){return this.handlerFor[e]},e.prototype.activate=function(e,t,n){var r=this;return Promise.resolve().then((function(){return r.getHandler(t).bind(r)(n)}))},e.defaultHandler=function(e){throw new Error(r.ERROR_CODE.NOT_SUPPORTED)},e}();t.AbstractBusAgent=i},9506:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AgentLoader=void 0;var r=n(609),o=n(6389),u=function(){function e(){this.http=new o.Http}return e.prototype.load=function(e){var t=r.appNameForResource[e];if("string"!=typeof t)throw new Error("The resource type "+e+" is not supported yet.");return this.http.loadScript(t+"/public/js/explorer.agent.js")},e}();t.AgentLoader=u},9255:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BusFactory=void 0;var r=n(609),o=n(424),u=n(7472),i=function(){function e(){this.agents={},this.comm=new u.Subject}return e.prototype.setAgentFor=function(e,t,n){this.getActionMapping(e)[t]=n},e.prototype.getAgentFor=function(e,t){return this.getActionMapping(e)[t]},e.prototype.publish=function(e,t,n){var r=this;return Promise.resolve().then((function(){var n;return null!==(n=r.getAgentFor(e,t))&&void 0!==n?n:o.explorer.requestAgentFor(e,t)})).then((function(o){var u=o.activate(e,t,n);return r.comm.next({res:e,action:t,input:n,output:u}),u}))},e.prototype.subscribe=function(e,t){return this.comm.asObservable().pipe(u.filter((function(n){return n.res===e&&n.action===t})))},e.prototype.getActionMapping=function(e){var t=this.agents[e];if(void 0===t){t={};for(var n=0,o=Object.values(r.ACTION);n<o.length;n++){t[o[n]]=null}this.agents[e]=t}return t},e}(),s=function(){function e(){}return Object.defineProperty(e,"instance",{get:function(){return this._instance=this._instance||new i},enumerable:!1,configurable:!0}),e}();t.BusFactory=s},8390:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExplorerContext=void 0;var r=n(7472),o=n(4744),u=n(609),i=function(){function e(e,t){this.latestResults=new r.Subject,this.context=null,this.bus=u.ExplorerFrameworkFactory.instance().getBus(),this.searchParameters={types:e,app:t,filters:{},pagination:{startIdx:0,pageSize:20}}}return e.prototype.clear=function(){this.searchParameters.filters={owner:!0,shared:!0,public:!0},this.searchParameters.pagination.startIdx=0,this.searchParameters.pagination.pageSize=20,this.context=null},e.prototype.isInitialized=function(){return null!==this.context},e.prototype.getContext=function(){if(null!==this.context)return this.context},e.prototype.getSearchParameters=function(){return this.searchParameters},e.prototype.duplicateSearchParameters=function(){return JSON.parse(JSON.stringify(this.searchParameters))},e.prototype.latestResources=function(){return this.latestResults.asObservable()},e.prototype.initialize=function(){var e=this,t=this.duplicateSearchParameters();return Promise.resolve().then((function(){return e.bus.publish(u.RESOURCE.FOLDER,u.ACTION.INITIALIZE,t)})).then((function(n){if(e.context=n,!e.context)throw new Error(o.ERROR_CODE.UNKNOWN);return e.latestResults.next({input:t,output:e.context}),e.context}))},e.prototype.getResources=function(){var e=this,t=this.duplicateSearchParameters();return this.bus.publish(u.RESOURCE.FOLDER,u.ACTION.SEARCH,t).then((function(n){var r=n;if(!r)throw new Error(o.ERROR_CODE.UNKNOWN);return e.latestResults.next({input:t,output:r}),r}))},e.prototype.getSubFolders=function(e){throw new Error("Method not implemented.")},e.prototype.createFolder=function(e,t,n){var r={app:this.searchParameters.app,name:n,parentId:t,type:e};return this.bus.publish(u.RESOURCE.FOLDER,u.ACTION.CREATE,r).then((function(e){var t=e;if(!t)throw new Error(o.ERROR_CODE.UNKNOWN);return t}))},e.prototype.updateFolder=function(e,t,n,r){var i={folderId:e,app:this.searchParameters.app,name:r,parentId:n,type:t};return this.bus.publish(u.RESOURCE.FOLDER,u.ACTION.UPD_PROPS,i).then((function(e){var t=e;if(!t)throw new Error(o.ERROR_CODE.UNKNOWN);return t}))},e.prototype.copy=function(e,t,n){var r={folderId:e,resourceIds:t,folderIds:n};return this.bus.publish(u.RESOURCE.FOLDER,u.ACTION.COPY,r).then((function(e){}))},e.prototype.move=function(e,t,n){var r={folderId:e,resourceIds:t,folderIds:n};return this.bus.publish(u.RESOURCE.FOLDER,u.ACTION.MOVE,r).then((function(e){}))},e.prototype.delete=function(e,t){var n={resourceIds:e,folderIds:t};return this.bus.publish(u.RESOURCE.FOLDER,u.ACTION.DELETE,n).then((function(e){}))},e.prototype.manageProperties=function(e,t){var n={resources:t};return this.bus.publish(e,u.ACTION.MANAGE,n).then((function(e){var t=e;if(!t)throw new Error(o.ERROR_CODE.UNKNOWN);return t}))},e.prototype.updateProperties=function(e,t,n){var r={resources:t,props:n};return this.bus.publish(e,u.ACTION.UPD_PROPS,r).then((function(e){var t=e;if(!t)throw new Error(o.ERROR_CODE.UNKNOWN);return t}))},e}();t.ExplorerContext=i},424:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.explorer=t.ExplorerFramework=void 0;var r=n(4744),o=n(9506),u=n(9255),i=n(8390),s=function(){function e(){this.agentLoader=new o.AgentLoader}return e.prototype.setAgentLoader=function(e){e&&(this.agentLoader=e)},e.prototype.requestAgentFor=function(e,t){var n=this;return this.agentLoader.load(e).then((function(){var o=n.getBus().getAgentFor(e,t);if(!o)throw new Error(r.ERROR_CODE.AGENT_NOT_FOUND);return o}))},e.prototype.createContext=function(e,t){return new i.ExplorerContext(e,t)},e.prototype.getBus=function(){return u.BusFactory.instance},e}();t.ExplorerFramework=s,t.explorer=new s},609:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PROP_FORMAT=t.PROP_TYPE=t.PROP_MODE=t.PROP_KEY=t.SORT_BY=t.SORT_ORDER=t.STRING_FILTER=t.BOOLEAN_FILTER=t.FOLDER=t.ACTION=t.appNameForResource=t.RESOURCE=t.ExplorerFrameworkFactory=void 0;var r=n(4744),o=n(424),u=function(){function e(){}return e.instance=function(){return o.explorer},e}();t.ExplorerFrameworkFactory=u,t.RESOURCE={FOLDER:"folder",BLOG:"blog",EXERCISE:"exercise"},t.appNameForResource={folder:r.APP.EXPLORER,blog:r.APP.BLOG,exercise:r.APP.EXERCIZER},t.ACTION={INITIALIZE:"initialize",SEARCH:"search",CREATE:"create",OPEN:"open",MANAGE:"manage",UPD_PROPS:"properties",COMMENT:"comment",DELETE:"delete",MOVE:"move",COPY:"copy",EXPORT:"export",SHARE:"share",PUBLISH:"publish",PRINT:"print"},t.FOLDER={BIN:"bin",DEFAULT:"default"},t.BOOLEAN_FILTER={OWNER:"owner",SHARED:"shared",PUBLIC:"public",FAVORITE:"favorite"},t.STRING_FILTER={},t.SORT_ORDER={ASC:"asc",DESC:"desc"},t.SORT_BY={NAME:"name",MODIFY_DATE:"modifiedAt",VIEWS:"views"},t.PROP_KEY={TITLE:"title",IMAGE:"image",COLOR:"color",DESCRIPTION:"description",URL:"url"},t.PROP_MODE={READONLY:"RO",READWRITE:"RW"},t.PROP_TYPE={TEXT:"text",NUMBER:"number",DATE:"date",IMAGE:"image"},t.PROP_FORMAT={PLAIN:"plain"}},4744:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.USER_PREFS=t.APP=t.ERROR_CODE=void 0,t.ERROR_CODE={SUCCESS:"0000",UNKNOWN:"0010",NOT_INITIALIZED:"0020",NOT_SUPPORTED:"0030",APP_NOT_FOUND:"0040",AGENT_NOT_FOUND:"0050",TRANSPORT_ERROR:"0060",TIME_OUT:"0070",MALFORMED_DATA:"0080"},t.APP={EXPLORER:"explorer",PORTAL:"portal",BLOG:"blog",EXERCIZER:"exercizer",TIMELINE:"timeline",CAS:"cas",VIDEO:"video"},t.USER_PREFS={APPS:"apps",WIDGETS:"widgets",LANGUAGE:"language",AUTH_CONNECTOR_ACCESSED:"authenticatedConnectorsAccessed",CURSUS:"cursus",INFOTIP:"infotip",RGPD_COOKIES:"rgpdCookies"}},9294:function(e,t,n){"use strict";var r,o,u=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||u(t,e,n)},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&u(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.RxJS=t.AbstractBusAgent=t.explorer=void 0,s(n(4744),t),s(n(609),t);var c=n(424);Object.defineProperty(t,"explorer",{enumerable:!0,get:function(){return c.explorer}});var l=n(5046);Object.defineProperty(t,"AbstractBusAgent",{enumerable:!0,get:function(){return l.AbstractBusAgent}}),s(n(1056),t),t.RxJS=a(n(7472)),s(n(6485),t),s(n(4506),t),s(n(5807),t),s(n(2869),t),s(n(6325),t),"undefined"!=typeof window&&(window.entcore=null!==(r=window.entcore)&&void 0!==r?r:{},window.entcore["ode-ts-client"]=null!==(o=window.entcore["ode-ts-client"])&&void 0!==o?o:e.exports)},1381:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.notify=t.Promisified=void 0;var r=n(7472),o="sessionReady",u="langReady",i="skinReady",s="overrideReady",a=function(){function e(){var e=this;this._promise=new Promise((function(t,n){e._resolution=t,e._rejection=n}))}return Object.defineProperty(e.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),e.prototype.resolve=function(e){this._resolution&&this._resolution(e)},e.prototype.reject=function(e){this._rejection&&this._rejection(e)},e}();t.Promisified=a;var c=function(){function e(){this.promises={},this.subject=new r.Subject}return e.prototype.asyncData=function(e){return void 0===this.promises[e]&&(this.promises[e]=new a),this.promises[e]},e.prototype.onSessionReady=function(){return this.asyncData(o)},e.prototype.onLangReady=function(){return this.asyncData(u)},e.prototype.onSkinReady=function(){return this.asyncData(i)},e.prototype.onOverridesReady=function(){return this.asyncData(s)},e.prototype.promisify=function(){return new a},e.prototype.events=function(){return this.subject},e}();t.notify=new c},1056:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EVENT_NAME=t.LAYER_NAME=t.NotifyFrameworkFactory=void 0;var r=n(1381),o=function(){function e(){}return e.instance=function(){return r.notify},e}();t.NotifyFrameworkFactory=o,t.LAYER_NAME={WIDGETS:"widgets",EXPLORER:"explorer"},t.EVENT_NAME={USERPREF_CHANGED:"userprefChanged",SEARCH_RESULTED:"searchResulted"}},5445:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.session=t.SessionFramework=void 0;var r=n(5817),o=function(){function e(){this.session=new r.Session}return e.prototype.initialize=function(){return this.session.initialize()},e}();t.SessionFramework=o,t.session=new o},5817:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Session=void 0;var r=n(2431),o=n(1381),u=n(2033),i=n(4506),s=r.transport.http,a=function(){function e(){this._me=null,this._currentLanguage="",this._notLoggedIn=!0}return Object.defineProperty(e.prototype,"currentLanguage",{get:function(){return this._currentLanguage},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"notLoggedIn",{get:function(){return this._notLoggedIn},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"description",{get:function(){return this._description},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"avatarUrl",{get:function(){var e=this.description.photo;e&&"no-avatar.jpg"!==e&&"no-avatar.svg"!==e||(e=i.ConfigurationFrameworkFactory.instance().Platform.theme.basePath+"/img/illustrations/no-avatar.svg");return e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"user",{get:function(){return this._me},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentApp",{get:function(){return u.configure.Platform.apps.currentApp},enumerable:!1,configurable:!0}),e.prototype.initialize=function(){var e=this;return s.get("/auth/oauth2/userinfo").then((function(t){return e.setCurrentModel(t),e._notLoggedIn?e.loadDefaultLanguage():e.loadUserLanguage()})).then((function(t){return e.setCurrentLanguage(t),e.loadDescription()})).then((function(){o.notify.onSessionReady().resolve(e._me)})).catch((function(e){o.notify.onSessionReady().reject(e)}))},e.prototype.setCurrentModel=function(e){this._me=e,this._notLoggedIn=!(e&&e.sessionMetadata&&e.sessionMetadata.userId)},e.prototype.hasWorkflow=function(e){var t;return void 0===e||-1!==(null===(t=this._me)||void 0===t?void 0:t.authorizedActions.findIndex((function(t){return t.name===e})))},e.prototype.hasRight=function(e,t){var n=this;if("owner"===t)return e.owner&&e.owner.userId===this._me.userId;var r=t.right||t,o=void 0!==e.shared.filter((function(e){return-1!==(n._me.groupsIds||[]).indexOf(e.groupId)||e.userId===n._me.userId})).find((function(e){return e[r]||e.manager})),u=!t.workflow||this.hasWorkflow(t.workflow);return o&&u},Object.defineProperty(e.prototype,"latestQuotaAndUsage",{get:function(){var e=this;return s.get("/workspace/quota/user/"+this._me.userId).then((function(t){return e._description&&(e._description.quota=t.quota,e._description.storage=t.storage),t})).catch((function(){return{quota:0,storage:0}}))},enumerable:!1,configurable:!0}),e.prototype.setCurrentLanguage=function(e){this._currentLanguage=e,o.notify.onLangReady().resolve(e)},e.prototype.loadDefaultLanguage=function(){var e=this;return s.get("/locale").then((function(e){return e.locale})).catch((function(){return e._currentLanguage}))},e.prototype.loadUserLanguage=function(){var e=this;return s.get("/userbook/preference/language").then((function(t){try{return JSON.parse(t.preference)["default-domain"]}catch(t){return e.loadDefaultLanguage()}})).catch((function(){return e.loadDefaultLanguage()}))},e.prototype.loadDescription=function(){var e=this;return Promise.all([s.get("/userbook/api/person",{requestName:"refreshAvatar"}),s.get("/directory/userbook/"+this._me.userId)]).then((function(t){return"ok"===t[0].status&&t[0].result&&t[0].result.length>0?e._description=t[0].result[0]:e._description={},e._description.type&&!e._description.profiles&&(e._description.profiles=e._description.type),Object.assign(e._description,t[1]),e._description}))},e.prototype.getEmailValidationInfos=function(){return s.get("/directory/user/mailstate")},e.prototype.checkEmail=function(e){return s.put("/directory/user/mailstate",{email:e})},e.prototype.tryEmailValidation=function(e){return s.post("/directory/user/mailstate",{key:e})},e}();t.Session=a},5807:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WIDGET_POSITION=t.SessionFrameworkFactory=void 0;var r=n(5445),o=function(){function e(){}return e.instance=function(){return r.session},e}();t.SessionFrameworkFactory=o,t.WIDGET_POSITION={LEFT:"left",RIGHT:"right"}},2431:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transport=void 0;var r=n(6389),o=function(){function e(){this._http=new r.Http}return Object.defineProperty(e.prototype,"http",{get:function(){return this._http},enumerable:!1,configurable:!0}),e.prototype.newHttpInstance=function(e){return new r.Http(e)},e}();t.transport=new o},6389:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Http=void 0;var axios_1=__importDefault(__webpack_require__(9669)),__1=__webpack_require__(9294),globals_1=__webpack_require__(4744),loadedScripts={},Http=function(){function Http(e){this.axios=axios_1.default.create(e)}return Http.prototype.setCdn=function(e){e&&XMLHttpRequest&&!XMLHttpRequest.prototype.cdnUrl&&(XMLHttpRequest.prototype.cdnUrl=e,XMLHttpRequest.prototype.baseOpen=XMLHttpRequest.prototype.open,XMLHttpRequest.prototype.open=function(){var t=arguments[1];t.startsWith("/infra/public")&&(arguments[1]=e+t);var n=/^\/([^\/]*)\/public/.test(t);return n&&(arguments[1]=e+t),t.startsWith("/assets")&&(arguments[1]=e+t),"/conf/public"==t&&(arguments[1]=t),t.startsWith("http")&&(arguments[1]=t),this.baseOpen.apply(this,arguments)})},Http.prototype.toAxiosConfig=function(e){if(e){var t=Object.assign({},this.axios.defaults);return e.headers&&(t.headers=Object.assign({},this.axios.defaults.headers),Object.assign(t.headers,e.headers)),e.queryParams&&(t.params=Object.assign({},e.queryParams)),t}return this.axios.defaults},Http.prototype.toCdnUrl=function(e){var t=__1.ConfigurationFrameworkFactory.instance().Platform.cdnDomain;if((null==t?void 0:t.length)>0&&"/conf/public"!==e){var n=""+e;if(n.startsWith("/infra/public")||n.startsWith("/assets"))e=t+n;else/^\/([^\/]*)\/public/.test(n)&&(e=t+n)}return e},Http.prototype.mapAxiosError=function(e,t){return e.response?this._latestResponse=e.response:e.request?this._latestResponse={status:408,statusText:globals_1.ERROR_CODE.TIME_OUT}:this._latestResponse={status:500,statusText:globals_1.ERROR_CODE.UNKNOWN},!t||t.disableNotifications,this._latestResponse},Http.prototype.mapAxiosResponse=function(e,t){return this._latestResponse=e,e.data},Object.defineProperty(Http.prototype,"latestResponse",{get:function(){return this._latestResponse},enumerable:!1,configurable:!0}),Http.prototype.get=function(e,t){var n=this;return this.axios.get(this.toCdnUrl(e),this.toAxiosConfig(t)).then((function(e){return n.mapAxiosResponse(e,t)})).catch((function(e){return n.mapAxiosError(e,t)}))},Http.prototype.post=function(e,t,n){var r=this;return this.axios.post(e,t,this.toAxiosConfig(n)).then((function(e){return r.mapAxiosResponse(e,n)})).catch((function(e){return r.mapAxiosError(e,n)}))},Http.prototype.postFile=function(e,t,n){var r=this,o=this.toAxiosConfig(n);return o.headers["Content-Type"]&&delete o.headers["Content-Type"],this.axios.post(e,t,o).then((function(e){return r.mapAxiosResponse(e,n)})).catch((function(e){return r.mapAxiosError(e,n)}))},Http.prototype.postJson=function(e,t,n){var r=this;return this.toAxiosConfig().headers["Content-Type"]="application/json",this.axios.post(e,t,this.toAxiosConfig(n)).then((function(e){return r.mapAxiosResponse(e,n)})).catch((function(e){return r.mapAxiosError(e,n)}))},Http.prototype.put=function(e,t,n){var r=this;return this.axios.put(e,t,this.toAxiosConfig(n)).then((function(e){return r.mapAxiosResponse(e,n)})).catch((function(e){return r.mapAxiosError(e,n)}))},Http.prototype.putJson=function(e,t,n){var r=this,o=this.toAxiosConfig(n);return o.headers["Content-Type"]="application/json",this.axios.put(e,t,o).then((function(e){return r.mapAxiosResponse(e,n)})).catch((function(e){return r.mapAxiosError(e,n)}))},Http.prototype.delete=function(e,t){var n=this;return this.axios.delete(e,this.toAxiosConfig(t)).then((function(e){return n.mapAxiosResponse(e,t)})).catch((function(e){return n.mapAxiosError(e,t)}))},Http.prototype.deleteJson=function(e,t){var n=this;return this.axios.delete(e,t).then((function(e){return n.mapAxiosResponse(e)})).catch((function(e){return n.mapAxiosError(e)}))},Http.prototype.getScript=function(url,params,variableName){var _this=this,resultName=null!=variableName?variableName:"exports",p=this.toAxiosConfig(params);return p.headers.Accept="application/javascript",this.axios.get(this.toCdnUrl(url),p).then((function(e){return _this.mapAxiosResponse(e,params)})).then((function(r){try{var securedScript='"use strict";var '+resultName+";"+r+";return "+resultName+";",result=Function(securedScript)();return result}catch(e){var result=eval(r);return result}})).catch((function(e){throw _this.mapAxiosError(e,params),e}))},Http.prototype.loadScript=function(e,t){return loadedScripts[e]?Promise.resolve():this.getScript(e,t).then((function(t){loadedScripts[e]=!0}))},Http}();exports.Http=Http},6485:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransportFrameworkFactory=void 0;var r=n(2431),o=function(){function e(){}return e.instance=function(){return r.transport},e}();t.TransportFrameworkFactory=o},5748:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,u){function i(e){try{a(r.next(e))}catch(e){u(e)}}function s(e){try{a(r.throw(e))}catch(e){u(e)}}function a(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}a((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,u,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function s(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.widgets=t.WidgetFramework=void 0;var u=n(5807),i=n(1381),s=n(1056),a=n(2033),c=n(6934),l=["birthday","mood","calendar-widget","notes"],f=["agenda-widget","carnet-de-bord","my-apps","rss-widget","bookmark-widget","cursus-widget","maxicours-widget","school-widget"],p={"last-infos-widget":u.WIDGET_POSITION.LEFT,birthday:u.WIDGET_POSITION.LEFT,"calendar-widget":u.WIDGET_POSITION.RIGHT,"carnet-de-bord":u.WIDGET_POSITION.LEFT,"record-me":u.WIDGET_POSITION.RIGHT,mood:u.WIDGET_POSITION.LEFT,"my-apps":u.WIDGET_POSITION.RIGHT,notes:u.WIDGET_POSITION.RIGHT,"rss-widget":u.WIDGET_POSITION.LEFT,"bookmark-widget":u.WIDGET_POSITION.RIGHT,qwant:u.WIDGET_POSITION.RIGHT,"qwant-junior":u.WIDGET_POSITION.LEFT,"agenda-widget":u.WIDGET_POSITION.LEFT,"cursus-widget":u.WIDGET_POSITION.LEFT,"maxicours-widget":u.WIDGET_POSITION.RIGHT,"universalis-widget":u.WIDGET_POSITION.RIGHT,"briefme-widget":u.WIDGET_POSITION.LEFT,"school-widget":u.WIDGET_POSITION.LEFT},d={"school-widget":0,"my-apps":10,"record-me":15,"last-infos-widget":20,qwant:30,"qwant-junior":30,"universalis-widget":35,"agenda-widget":40,"bookmark-widget":50,"carnet-de-bord":60,"maxicours-widget":70,"cursus-widget":80,"briefme-widget":90,"rss-widget":100,mood:110,birthday:120,"calendar-widget":130,notes:140},h=function(){function e(){this._widgets=[],this._userPrefs={}}return e.prototype.initialize=function(e,t){var n=this;return this._initialized||(this._initialized=new i.Promisified,i.notify.onSessionReady().promise.then((function(e){var t;e&&e.widgets?(e.widgets.forEach((function(e){n._widgets.push(new v(e))})),n.loadUserPrefs().then((function(){var e;null===(e=n._initialized)||void 0===e||e.resolve()})).catch((function(e){var t;null===(t=n._initialized)||void 0===t||t.reject()}))):null===(t=n._initialized)||void 0===t||t.reject()}))),this._initialized.promise},Object.defineProperty(e.prototype,"list",{get:function(){return this._widgets},enumerable:!1,configurable:!0}),e.prototype.lookup=function(e){return this._widgets.find((function(t){return t.platformConf.name===e}))},e.prototype.lookupDefaultPosition=function(e){return p[e]},Object.defineProperty(e.prototype,"userPrefs",{get:function(){return this._userPrefs},enumerable:!1,configurable:!0}),e.prototype.loadUserPrefs=function(){return r(this,void 0,void 0,(function(){var e=this;return o(this,(function(t){switch(t.label){case 0:return[4,a.configure.User.preferences.load("widgets",{}).then((function(t){return e.applyUserPrefs(t)}))];case 1:return t.sent(),[2]}}))}))},e.prototype.saveUserPrefs=function(){return a.configure.User.preferences.update("widgets",this._userPrefs).save("widgets").then((function(){i.notify.events().next({name:s.EVENT_NAME.USERPREF_CHANGED,layer:s.LAYER_NAME.WIDGETS})}))},e.prototype.applyUserPrefs=function(e){return r(this,void 0,void 0,(function(){var t,n,r=this;return o(this,(function(o){return this._userPrefs=null!=e?e:this._userPrefs,t=a.configure.Platform.theme,n=[],t.listSkins().then((function(e){var o,u="panda"===(null===(o=e.find((function(e){return e.child===t.skin})))||void 0===o?void 0:o.parent)?f:l;r._widgets=r._widgets.filter((function(e,t){var o,i,s=e.platformConf.name;return-1===u.indexOf(s)&&(r._userPrefs[s]||(r._userPrefs[s]={index:null!==(o=d[s])&&void 0!==o?o:999,show:!0,position:e.platformConf.position}),e.platformConf.mandatory&&(r._userPrefs[s].show=!0,r._userPrefs[s].index=null!==(i=d[s])&&void 0!==i?i:999),e.platformConf.i18n&&n.push(e.platformConf.i18n),e.applyUserPref(r._userPrefs[s]),!0)}));var i=new c.Idiom;r._widgets=r._widgets.sort((function(e,t){var n=i.translate("timeline.settings."+e.platformConf.name).toLowerCase(),r=i.translate("timeline.settings."+t.platformConf.name).toLowerCase();return n<r?-1:n>r?1:0}))})),[2]}))}))},e}();t.WidgetFramework=h;var v=function(){function e(e){this._platformConf=e,this._schoolConf={},this._userPref=null}return Object.defineProperty(e.prototype,"platformConf",{get:function(){return this._platformConf},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schoolConf",{get:function(){return this._schoolConf},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"userPref",{get:function(){return this._userPref},enumerable:!1,configurable:!0}),e.prototype.applyUserPref=function(e){var n,r;this._userPref=e,this._userPref.position=null!==(r=null!==(n=this._userPref.position)&&void 0!==n?n:t.widgets.lookupDefaultPosition(this._platformConf.name))&&void 0!==r?r:"left"},e}();t.widgets=new h},4962:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LastInfosWidget=void 0;var r=n(2431),o=function(){function e(){}return e.prototype.loadInfos=function(e){return r.transport.http.get("/actualites/infos/last/"+e)},e.prototype.getMaxResults=function(){return r.transport.http.get("/userbook/preference/maxInfos").then((function(e){return e.preference?parseInt(e.preference):4}))},e.prototype.setMaxResults=function(e){return r.transport.http.putJson("/userbook/preference/maxInfos",'"'+e+'"')},e}();t.LastInfosWidget=o},2869:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetFrameworkFactory=t.WIDGET_NAME=void 0;var u=n(5748);t.WIDGET_NAME={LAST_INFOS:"last-infos-widget",BIRTHDAY:"birthday",CALENDAR:"calendar-widget",CARNET:"carnet-de-bord",RECORD:"record-me",MOOD:"mood",MY_APPS:"my-apps",NOTES:"notes",RSS:"rss-widget",BOOKMARK:"bookmark-widget",QWANT:"qwant",QWANT_JUNIOR:"qwant-junior",AGENDA:"agenda-widget",CURSUS:"cursus-widget",MAXICOURS:"maxicours-widget",UNIVERSALIS:"universalis-widget",BRIEFME:"briefme-widget",SCHOOL:"school-widget"};var i=function(){function e(){}return e.instance=function(){return u.widgets},e}();t.WidgetFrameworkFactory=i,o(n(4962),t)}},__webpack_module_cache__={};function __webpack_require__(e){if(__webpack_module_cache__[e])return __webpack_module_cache__[e].exports;var t=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(t.exports,t,t.exports,__webpack_require__),t.exports}__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__=__webpack_require__(9294)})();
16
+ var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function u(e,t,n,r){return new(n||(n=Promise))((function(o,u){function i(e){try{a(r.next(e))}catch(e){u(e)}}function s(e){try{a(r.throw(e))}catch(e){u(e)}}function a(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}a((r=r.apply(e,t||[])).next())}))}function i(e,t){var n,r,o,u,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function s(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}Object.create;function s(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function a(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,u=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=u.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=u.return)&&n.call(u)}finally{if(o)throw o.error}}return i}function c(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}function l(e){return this instanceof l?(this.v=e,this):new l(e)}function f(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),u=[];return r={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r;function i(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){u.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof l?Promise.resolve(n.value.v).then(a,c):f(u[0][2],n)}catch(e){f(u[0][3],e)}var n}function a(e){s("next",e)}function c(e){s("throw",e)}function f(e,t){e(t),u.shift(),u.length&&s(u[0][0],u[0][1])}}function p(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=s(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}Object.create;function d(e){return"function"==typeof e}function h(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var v=h((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function b(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var y=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}return e.prototype.unsubscribe=function(){var e,t,n,r,o;if(!this.closed){this.closed=!0;var u=this._parentage;if(u)if(this._parentage=null,Array.isArray(u))try{for(var i=s(u),l=i.next();!l.done;l=i.next()){l.value.remove(this)}}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}else u.remove(this);var f=this.initialTeardown;if(d(f))try{f()}catch(e){o=e instanceof v?e.errors:[e]}var p=this._teardowns;if(p){this._teardowns=null;try{for(var h=s(p),b=h.next();!b.done;b=h.next()){var y=b.value;try{E(y)}catch(e){o=null!=o?o:[],e instanceof v?o=c(c([],a(o)),a(e.errors)):o.push(e)}}}catch(e){n={error:e}}finally{try{b&&!b.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}}if(o)throw new v(o)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)E(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(n=this._teardowns)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&b(t,e)},e.prototype.remove=function(t){var n=this._teardowns;n&&b(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),m=y.EMPTY;function g(e){return e instanceof y||e&&"closed"in e&&d(e.remove)&&d(e.add)&&d(e.unsubscribe)}function E(e){d(e)?e():e.unsubscribe()}var w={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},_={setTimeout:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=_.delegate;return((null==n?void 0:n.setTimeout)||setTimeout).apply(void 0,c([],a(e)))},clearTimeout:function(e){var t=_.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function A(e){_.setTimeout((function(){var t=w.onUnhandledError;if(!t)throw e;t(e)}))}function x(){}var O=C("C",void 0,void 0);function C(e,t,n){return{kind:e,value:t,error:n}}var P=null;function F(e){if(w.useDeprecatedSynchronousErrorHandling){var t=!P;if(t&&(P={errorThrown:!1,error:null}),e(),t){var n=P,r=n.errorThrown,o=n.error;if(P=null,r)throw o}}else e()}var R=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,g(t)&&t.add(n)):n.destination=D,n}return o(t,e),t.create=function(e,t,n){return new T(e,t,n)},t.prototype.next=function(e){this.isStopped?k(function(e){return C("N",e,void 0)}(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?k(C("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?k(O,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(y),T=function(e){function t(t,n,r){var o,u=e.call(this)||this;if(d(t))o=t;else if(t){var i;o=t.next,n=t.error,r=t.complete,u&&w.useDeprecatedNextContext?(i=Object.create(t)).unsubscribe=function(){return u.unsubscribe()}:i=t,o=null==o?void 0:o.bind(i),n=null==n?void 0:n.bind(i),r=null==r?void 0:r.bind(i)}return u.destination={next:o?S(o,u):x,error:S(null!=n?n:I,u),complete:r?S(r,u):x},u}return o(t,e),t}(R);function S(e,t){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{e.apply(void 0,c([],a(t)))}catch(e){w.useDeprecatedSynchronousErrorHandling?function(e){w.useDeprecatedSynchronousErrorHandling&&P&&(P.errorThrown=!0,P.error=e)}(e):A(e)}}}function I(e){throw e}function k(e,t){var n=w.onStoppedNotification;n&&_.setTimeout((function(){return n(e,t)}))}var D={closed:!0,next:x,error:I,complete:x},N="function"==typeof Symbol&&Symbol.observable||"@@observable";function j(e){return e}function L(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return B(e)}function B(e){return 0===e.length?j:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var M=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r,o=this,u=(r=e)&&r instanceof R||function(e){return e&&d(e.next)&&d(e.error)&&d(e.complete)}(r)&&g(r)?e:new T(e,t,n);return F((function(){var e=o,t=e.operator,n=e.source;u.add(t?t.call(u,n):n?o._subscribe(u):o._trySubscribe(u))})),u},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=U(t))((function(t,r){var o;o=n.subscribe((function(t){try{e(t)}catch(e){r(e),null==o||o.unsubscribe()}}),r,t)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[N]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return B(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=U(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function U(e){var t;return null!==(t=null!=e?e:w.Promise)&&void 0!==t?t:Promise}function H(e){return d(null==e?void 0:e.lift)}function q(e){return function(t){if(H(t))return t.lift((function(t){try{return e(t,this)}catch(e){this.error(e)}}));throw new TypeError("Unable to lift unknown Observable type")}}var W=function(e){function t(t,n,r,o,u){var i=e.call(this,t)||this;return i.onFinalize=u,i._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,i._error=o?function(e){try{o(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,i._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,i}return o(t,e),t.prototype.unsubscribe=function(){var t,n=this.closed;e.prototype.unsubscribe.call(this),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))},t}(R);function G(){return q((function(e,t){var n=null;e._refCount++;var r=new W(t,void 0,void 0,void 0,(function(){if(!e||e._refCount<=0||0<--e._refCount)n=null;else{var r=e._connection,o=n;n=null,!r||o&&r!==o||r.unsubscribe(),t.unsubscribe()}}));e.subscribe(r),r.closed||(n=e.connect())}))}var z=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._subject=null,r._refCount=0,r._connection=null,H(t)&&(r.lift=t.lift),r}return o(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null,null==e||e.unsubscribe()},t.prototype.connect=function(){var e=this,t=this._connection;if(!t){t=this._connection=new y;var n=this.getSubject();t.add(this.source.subscribe(new W(n,void 0,(function(){e._teardown(),n.complete()}),(function(t){e._teardown(),n.error(t)}),(function(){return e._teardown()})))),t.closed&&(this._connection=null,t=y.EMPTY)}return t},t.prototype.refCount=function(){return G()(this)},t}(M),V={now:function(){return(V.delegate||performance).now()},delegate:void 0},J={schedule:function(e){var t=requestAnimationFrame,n=cancelAnimationFrame,r=J.delegate;r&&(t=r.requestAnimationFrame,n=r.cancelAnimationFrame);var o=t((function(t){n=void 0,e(t)}));return new y((function(){return null==n?void 0:n(o)}))},requestAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=J.delegate;return((null==n?void 0:n.requestAnimationFrame)||requestAnimationFrame).apply(void 0,c([],a(e)))},cancelAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=J.delegate;return((null==n?void 0:n.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,c([],a(e)))},delegate:void 0};function Y(e){return e?X(e):Z}function X(e){var t=J.schedule;return new M((function(n){var r=new y,o=e||V,u=o.now(),i=function(s){var a=o.now();n.next({timestamp:e?a:s,elapsed:a-u}),n.closed||r.add(t(i))};return r.add(t(i)),r}))}var K,Z=X(),$=h((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Q=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return o(t,e),t.prototype.lift=function(e){var t=new ee(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new $},t.prototype.next=function(e){var t=this;F((function(){var n,r;if(t._throwIfClosed(),!t.isStopped){var o=t.observers.slice();try{for(var u=s(o),i=u.next();!i.done;i=u.next()){i.value.next(e)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}}))},t.prototype.error=function(e){var t=this;F((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}}))},t.prototype.complete=function(){var e=this;F((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=t.hasError,r=t.isStopped,o=t.observers;return n||r?m:(o.push(e),new y((function(){return b(o,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,o=t.isStopped;n?e.error(r):o&&e.complete()},t.prototype.asObservable=function(){var e=new M;return e.source=this,e},t.create=function(e,t){return new ee(e,t)},t}(M),ee=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return o(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:m},t}(Q),te=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return o(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){var e=this,t=e.hasError,n=e.thrownError,r=e._value;if(t)throw n;return this._throwIfClosed(),r},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(Q),ne={now:function(){return(ne.delegate||Date).now()},delegate:void 0},re=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=ne);var o=e.call(this)||this;return o._bufferSize=t,o._windowTime=n,o._timestampProvider=r,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=n===1/0,o._bufferSize=Math.max(1,t),o._windowTime=Math.max(1,n),o}return o(t,e),t.prototype.next=function(t){var n=this,r=n.isStopped,o=n._buffer,u=n._infiniteTimeWindow,i=n._timestampProvider,s=n._windowTime;r||(o.push(t),!u&&o.push(i.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),o=0;o<r.length&&!e.closed;o+=n?1:2)e.next(r[o]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,n=e._timestampProvider,r=e._buffer,o=e._infiniteTimeWindow,u=(o?1:2)*t;if(t<1/0&&u<r.length&&r.splice(0,r.length-u),!o){for(var i=n.now(),s=0,a=1;a<r.length&&r[a]<=i;a+=2)s=a;s&&r.splice(0,s+1)}},t}(Q),oe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._value=null,t._hasValue=!1,t._isComplete=!1,t}return o(t,e),t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t._hasValue,o=t._value,u=t.thrownError,i=t.isStopped,s=t._isComplete;n?e.error(u):(i||s)&&(r&&e.next(o),e.complete())},t.prototype.next=function(e){this.isStopped||(this._value=e,this._hasValue=!0)},t.prototype.complete=function(){var t=this,n=t._hasValue,r=t._value;t._isComplete||(this._isComplete=!0,n&&e.prototype.next.call(this,r),e.prototype.complete.call(this))},t}(Q),ue=function(e){function t(t,n){return e.call(this)||this}return o(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(y),ie={setInterval:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=ie.delegate;return((null==n?void 0:n.setInterval)||setInterval).apply(void 0,c([],a(e)))},clearInterval:function(e){var t=ie.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},se=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return o(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),ie.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return t;ie.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n,r=!1;try{this.work(e)}catch(e){r=!0,n=!!e&&e||new Error(e)}if(r)return this.unsubscribe(),n},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,n=this.scheduler,r=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,b(r,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(ue),ae=1,ce={};function le(e){return e in ce&&(delete ce[e],!0)}var fe=function(e){var t=ae++;return ce[t]=!0,K||(K=Promise.resolve()),K.then((function(){return le(t)&&e()})),t},pe=function(e){le(e)},de={setImmediate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=de.delegate;return((null==n?void 0:n.setImmediate)||fe).apply(void 0,c([],a(e)))},clearImmediate:function(e){var t=de.delegate;return((null==t?void 0:t.clearImmediate)||pe)(e)},delegate:void 0},he=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return o(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=de.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(de.clearImmediate(n),t._scheduled=void 0)},t}(se),ve=function(){function e(t,n){void 0===n&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=ne.now,e}(),be=function(e){function t(t,n){void 0===n&&(n=ve.now);var r=e.call(this,t,n)||this;return r.actions=[],r._active=!1,r._scheduled=void 0,r}return o(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var n;this._active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(ve),ye=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.flush=function(e){this._active=!0,this._scheduled=void 0;var t,n=this.actions,r=-1;e=e||n.shift();var o=n.length;do{if(t=e.execute(e.state,e.delay))break}while(++r<o&&(e=n.shift()));if(this._active=!1,t){for(;++r<o&&(e=n.shift());)e.unsubscribe();throw t}},t}(be),me=new ye(he),ge=me,Ee=new be(se),we=Ee,_e=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return o(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):t.flush(this)},t}(se),Ae=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(be))(_e),xe=Ae,Oe=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return o(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=J.requestAnimationFrame((function(){return t.flush(void 0)}))))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(J.cancelAnimationFrame(n),t._scheduled=void 0)},t}(se),Ce=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.flush=function(e){this._active=!0,this._scheduled=void 0;var t,n=this.actions,r=-1;e=e||n.shift();var o=n.length;do{if(t=e.execute(e.state,e.delay))break}while(++r<o&&(e=n.shift()));if(this._active=!1,t){for(;++r<o&&(e=n.shift());)e.unsubscribe();throw t}},t}(be),Pe=new Ce(Oe),Fe=Pe,Re=function(e){function t(t,n){void 0===t&&(t=Te),void 0===n&&(n=1/0);var r=e.call(this,t,(function(){return r.frame}))||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}return o(t,e),t.prototype.flush=function(){for(var e,t,n=this.actions,r=this.maxFrames;(t=n[0])&&t.delay<=r&&(n.shift(),this.frame=t.delay,!(e=t.execute(t.state,t.delay))););if(e){for(;t=n.shift();)t.unsubscribe();throw e}},t.frameTimeFactor=10,t}(be),Te=function(e){function t(t,n,r){void 0===r&&(r=t.index+=1);var o=e.call(this,t,n)||this;return o.scheduler=t,o.work=n,o.index=r,o.active=!0,o.index=t.index=r,o}return o(t,e),t.prototype.schedule=function(n,r){if(void 0===r&&(r=0),Number.isFinite(r)){if(!this.id)return e.prototype.schedule.call(this,n,r);this.active=!1;var o=new t(this.scheduler,this.work);return this.add(o),o.schedule(n,r)}return y.EMPTY},t.prototype.requestAsyncId=function(e,n,r){void 0===r&&(r=0),this.delay=e.frame+r;var o=e.actions;return o.push(this),o.sort(t.sortActions),!0},t.prototype.recycleAsyncId=function(e,t,n){void 0===n&&(n=0)},t.prototype._execute=function(t,n){if(!0===this.active)return e.prototype._execute.call(this,t,n)},t.sortActions=function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1},t}(se),Se=new M((function(e){return e.complete()}));function Ie(e){return e?function(e){return new M((function(t){return e.schedule((function(){return t.complete()}))}))}(e):Se}function ke(e,t){return new M((function(n){var r=0;return t.schedule((function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())}))}))}var De=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function Ne(e){return d(null==e?void 0:e.then)}var je,Le="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function Be(e,t,n,r){void 0===r&&(r=0);var o=t.schedule((function(){try{n.call(this)}catch(t){e.error(t)}}),r);return e.add(o),o}function Me(e,t){return new M((function(n){var r;return n.add(t.schedule((function(){r=e[Le](),Be(n,t,(function(){var e=r.next(),t=e.value;e.done?n.complete():(n.next(t),this.schedule())}))}))),function(){return d(null==r?void 0:r.return)&&r.return()}}))}function Ue(e,t){if(!e)throw new Error("Iterable cannot be null");return new M((function(n){var r=new y;return r.add(t.schedule((function(){var o=e[Symbol.asyncIterator]();r.add(t.schedule((function(){var e=this;o.next().then((function(t){t.done?n.complete():(n.next(t.value),e.schedule())}))})))}))),r}))}function He(e){return d(e[N])}function qe(e){return d(null==e?void 0:e[Le])}function We(e){return Symbol.asyncIterator&&d(null==e?void 0:e[Symbol.asyncIterator])}function Ge(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function ze(e){return f(this,arguments,(function(){var t,n,r;return i(this,(function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,l(t.read())];case 3:return n=o.sent(),r=n.value,n.done?[4,l(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,l(r)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}))}))}function Ve(e){return d(null==e?void 0:e.getReader)}function Je(e,t){if(null!=e){if(He(e))return function(e,t){return new M((function(n){var r=new y;return r.add(t.schedule((function(){var o=e[N]();r.add(o.subscribe({next:function(e){r.add(t.schedule((function(){return n.next(e)})))},error:function(e){r.add(t.schedule((function(){return n.error(e)})))},complete:function(){r.add(t.schedule((function(){return n.complete()})))}}))}))),r}))}(e,t);if(De(e))return ke(e,t);if(Ne(e))return function(e,t){return new M((function(n){return t.schedule((function(){return e.then((function(e){n.add(t.schedule((function(){n.next(e),n.add(t.schedule((function(){return n.complete()})))})))}),(function(e){n.add(t.schedule((function(){return n.error(e)})))}))}))}))}(e,t);if(We(e))return Ue(e,t);if(qe(e))return Me(e,t);if(Ve(e))return function(e,t){return Ue(ze(e),t)}(e,t)}throw Ge(e)}function Ye(e,t){return t?Je(e,t):Xe(e)}function Xe(e){if(e instanceof M)return e;if(null!=e){if(He(e))return r=e,new M((function(e){var t=r[N]();if(d(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")}));if(De(e))return Ke(e);if(Ne(e))return n=e,new M((function(e){n.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,A)}));if(We(e))return Ze(e);if(qe(e))return t=e,new M((function(e){var n,r;try{for(var o=s(t),u=o.next();!u.done;u=o.next()){var i=u.value;if(e.next(i),e.closed)return}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}e.complete()}));if(Ve(e))return Ze(ze(e))}var t,n,r;throw Ge(e)}function Ke(e){return new M((function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()}))}function Ze(e){return new M((function(t){(function(e,t){var n,r,o,s;return u(this,void 0,void 0,(function(){var u,a;return i(this,(function(i){switch(i.label){case 0:i.trys.push([0,5,6,11]),n=p(e),i.label=1;case 1:return[4,n.next()];case 2:if((r=i.sent()).done)return[3,4];if(u=r.value,t.next(u),t.closed)return[2];i.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=i.sent(),o={error:a},[3,11];case 6:return i.trys.push([6,,9,10]),r&&!r.done&&(s=n.return)?[4,s.call(n)]:[3,8];case 7:i.sent(),i.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}}))}))})(e,t).catch((function(e){return t.error(e)}))}))}function $e(e,t){return t?ke(e,t):Ke(e)}function Qe(e){return e&&d(e.schedule)}function et(e){return e[e.length-1]}function tt(e){return d(et(e))?e.pop():void 0}function nt(e){return Qe(et(e))?e.pop():void 0}function rt(e,t){return"number"==typeof et(e)?e.pop():t}function ot(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=nt(e);return n?ke(e,n):$e(e)}function ut(e,t){var n=d(e)?e:function(){return e},r=function(e){return e.error(n())};return new M(t?function(e){return t.schedule(r,0,e)}:r)}!function(e){e.NEXT="N",e.ERROR="E",e.COMPLETE="C"}(je||(je={}));var it=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){return st(this,e)},e.prototype.do=function(e,t,n){var r=this,o=r.kind,u=r.value,i=r.error;return"N"===o?null==e?void 0:e(u):"E"===o?null==t?void 0:t(i):null==n?void 0:n()},e.prototype.accept=function(e,t,n){var r;return d(null===(r=e)||void 0===r?void 0:r.next)?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){var e=this,t=e.kind,n=e.value,r=e.error,o="N"===t?ot(n):"E"===t?ut((function(){return r})):"C"===t?Se:0;if(!o)throw new TypeError("Unexpected notification kind "+t);return o},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}();function st(e,t){var n,r,o,u=e,i=u.kind,s=u.value,a=u.error;if("string"!=typeof i)throw new TypeError('Invalid notification, missing "kind"');"N"===i?null===(n=t.next)||void 0===n||n.call(t,s):"E"===i?null===(r=t.error)||void 0===r||r.call(t,a):null===(o=t.complete)||void 0===o||o.call(t)}function at(e){return!!e&&(e instanceof M||d(e.lift)&&d(e.subscribe))}var ct=h((function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}}));function lt(e,t){var n="object"==typeof t;return new Promise((function(r,o){var u,i=!1;e.subscribe({next:function(e){u=e,i=!0},error:o,complete:function(){i?r(u):n?r(t.defaultValue):o(new ct)}})}))}function ft(e,t){var n="object"==typeof t;return new Promise((function(r,o){var u=new T({next:function(e){r(e),u.unsubscribe()},error:o,complete:function(){n?r(t.defaultValue):o(new ct)}});e.subscribe(u)}))}var pt=h((function(e){return function(){e(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})),dt=h((function(e){return function(t){e(this),this.name="NotFoundError",this.message=t}})),ht=h((function(e){return function(t){e(this),this.name="SequenceError",this.message=t}}));function vt(e){return e instanceof Date&&!isNaN(e)}var bt=h((function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}}));function yt(e,t){var n=vt(e)?{first:e}:"number"==typeof e?{each:e}:e,r=n.first,o=n.each,u=n.with,i=void 0===u?mt:u,s=n.scheduler,a=void 0===s?null!=t?t:Ee:s,c=n.meta,l=void 0===c?null:c;if(null==r&&null==o)throw new TypeError("No timeout provided.");return q((function(e,t){var n,u,s=null,c=0,f=function(e){u=Be(t,a,(function(){n.unsubscribe(),Xe(i({meta:l,lastValue:s,seen:c})).subscribe(t)}),e)};n=e.subscribe(new W(t,(function(e){null==u||u.unsubscribe(),c++,t.next(s=e),o>0&&f(o)}),void 0,void 0,(function(){(null==u?void 0:u.closed)||null==u||u.unsubscribe(),s=null}))),f(null!=r?"number"==typeof r?r:+r-a.now():o)}))}function mt(e){throw new bt(e)}function gt(e,t){return void 0===t&&(t=0),q((function(n,r){r.add(e.schedule((function(){return n.subscribe(r)}),t))}))}function Et(e,t){return q((function(n,r){var o=0;n.subscribe(new W(r,(function(n){r.next(e.call(t,n,o++))})))}))}var wt=Array.isArray;function _t(e){return Et((function(t){return function(e,t){return wt(t)?e.apply(void 0,c([],a(t))):e(t)}(e,t)}))}function At(e,t){return void 0===t&&(t=0),q((function(n,r){n.subscribe(new W(r,(function(n){return r.add(e.schedule((function(){return r.next(n)}),t))}),(function(){return r.add(e.schedule((function(){return r.complete()}),t))}),(function(n){return r.add(e.schedule((function(){return r.error(n)}),t))})))}))}function xt(e,t,n,r){if(n){if(!Qe(n))return function(){for(var o=[],u=0;u<arguments.length;u++)o[u]=arguments[u];return xt(e,t,r).apply(this,o).pipe(_t(n))};r=n}return r?function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];return xt(e,t).apply(this,n).pipe(gt(r),At(r))}:function(){for(var n=this,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var u=new oe,i=!0;return new M((function(o){var s=u.subscribe(o);if(i){i=!1;var l=!1,f=!1;t.apply(n,c(c([],a(r)),[function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(e){var r=t.shift();if(null!=r)return void u.error(r)}u.next(1<t.length?t:t[0]),f=!0,l&&u.complete()}])),f&&u.complete(),l=!0}return s}))}}function Ot(e,t,n){return xt(!1,e,t,n)}function Ct(e,t,n){return xt(!0,e,t,n)}var Pt=Array.isArray,Ft=Object.getPrototypeOf,Rt=Object.prototype,Tt=Object.keys;function St(e){if(1===e.length){var t=e[0];if(Pt(t))return{args:t,keys:null};if((r=t)&&"object"==typeof r&&Ft(r)===Rt){var n=Tt(t);return{args:n.map((function(e){return t[e]})),keys:n}}}var r;return{args:e,keys:null}}function It(e,t){return e.reduce((function(e,n,r){return e[n]=t[r],e}),{})}function kt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=nt(e),r=tt(e),o=St(e),u=o.args,i=o.keys;if(0===u.length)return Ye([],n);var s=new M(Dt(u,n,i?function(e){return It(i,e)}:j));return r?s.pipe(_t(r)):s}function Dt(e,t,n){return void 0===n&&(n=j),function(r){Nt(t,(function(){for(var o=e.length,u=new Array(o),i=o,s=o,a=function(o){Nt(t,(function(){var a=Ye(e[o],t),c=!1;a.subscribe(new W(r,(function(e){u[o]=e,c||(c=!0,s--),s||r.next(n(u.slice()))}),(function(){--i||r.complete()})))}),r)},c=0;c<o;c++)a(c)}),r)}}function Nt(e,t,n){e?n.add(e.schedule(t)):t()}function jt(e,t,n,r,o,u,i,s){var a=[],c=0,l=0,f=!1,p=function(){!f||a.length||c||t.complete()},d=function(e){return c<r?h(e):a.push(e)},h=function(e){u&&t.next(e),c++;var s=!1;Xe(n(e,l++)).subscribe(new W(t,(function(e){null==o||o(e),u?d(e):t.next(e)}),(function(){s=!0}),void 0,(function(){if(s)try{c--;for(var e=function(){var e=a.shift();i?t.add(i.schedule((function(){return h(e)}))):h(e)};a.length&&c<r;)e();p()}catch(e){t.error(e)}})))};return e.subscribe(new W(t,d,(function(){f=!0,p()}))),function(){null==s||s()}}function Lt(e,t,n){return void 0===n&&(n=1/0),d(t)?Lt((function(n,r){return Et((function(e,o){return t(n,e,r,o)}))(Xe(e(n,r)))}),n):("number"==typeof t&&(n=t),q((function(t,r){return jt(t,r,e,n)})))}function Bt(e){return void 0===e&&(e=1/0),Lt(j,e)}function Mt(){return Bt(1)}function Ut(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Mt()($e(e,nt(e)))}function Ht(e){return new M((function(t){Xe(e()).subscribe(t)}))}var qt={connector:function(){return new Q},resetOnDisconnect:!0};function Wt(e,t){void 0===t&&(t=qt);var n=null,r=t.connector,o=t.resetOnDisconnect,u=void 0===o||o,i=r(),s=new M((function(e){return i.subscribe(e)}));return s.connect=function(){return n&&!n.closed||(n=Ht((function(){return e})).subscribe(i),u&&n.add((function(){return i=r()}))),n},s}function Gt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=tt(e),r=St(e),o=r.args,u=r.keys,i=new M((function(e){var t=o.length;if(t)for(var n=new Array(t),r=t,i=t,s=function(t){var s=!1;Xe(o[t]).subscribe(new W(e,(function(e){s||(s=!0,i--),n[t]=e}),(function(){--r&&s||(i||e.next(u?It(u,n):n),e.complete())})))},a=0;a<t;a++)s(a);else e.complete()}));return n?i.pipe(_t(n)):i}var zt=["addListener","removeListener"],Vt=["addEventListener","removeEventListener"],Jt=["on","off"];function Yt(e,t,n,r){if(d(n)&&(r=n,n=void 0),r)return Yt(e,t,n).pipe(_t(r));var o=a(function(e){return d(e.addEventListener)&&d(e.removeEventListener)}(e)?Vt.map((function(r){return function(o){return e[r](t,o,n)}})):function(e){return d(e.addListener)&&d(e.removeListener)}(e)?zt.map(Xt(e,t)):function(e){return d(e.on)&&d(e.off)}(e)?Jt.map(Xt(e,t)):[],2),u=o[0],i=o[1];if(!u&&De(e))return Lt((function(e){return Yt(e,t,n)}))($e(e));if(!u)throw new TypeError("Invalid event target");return new M((function(e){var t=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.next(1<t.length?t:t[0])};return u(t),function(){return i(t)}}))}function Xt(e,t){return function(n){return function(r){return e[n](t,r)}}}function Kt(e,t,n){return n?Kt(e,t).pipe(_t(n)):new M((function(n){var r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.next(1===e.length?e[0]:e)},o=e(r);return d(t)?function(){return t(r,o)}:void 0}))}function Zt(e,t,n,r,o){var u,s,a,c;function l(){var e;return i(this,(function(r){switch(r.label){case 0:e=c,r.label=1;case 1:return t&&!t(e)?[3,4]:[4,a(e)];case 2:r.sent(),r.label=3;case 3:return e=n(e),[3,1];case 4:return[2]}}))}return 1===arguments.length?(c=(u=e).initialState,t=u.condition,n=u.iterate,s=u.resultSelector,a=void 0===s?j:s,o=u.scheduler):(c=e,!r||Qe(r)?(a=j,o=r):a=r),Ht(o?function(){return Me(l(),o)}:l)}function $t(e,t,n){return Ht((function(){return e()?t:n}))}function Qt(e,t,n){void 0===e&&(e=0),void 0===n&&(n=we);var r=-1;return null!=t&&(Qe(t)?n=t:r=t),new M((function(t){var o=vt(e)?+e-n.now():e;o<0&&(o=0);var u=0;return n.schedule((function(){t.closed||(t.next(u++),0<=r?this.schedule(void 0,r):t.complete())}),o)}))}function en(e,t){return void 0===e&&(e=0),void 0===t&&(t=Ee),e<0&&(e=0),Qt(e,e,t)}function tn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=nt(e),r=rt(e,1/0),o=e;return o.length?1===o.length?Xe(o[0]):Bt(r)($e(o,n)):Se}var nn=new M(x);function rn(){return nn}var on=Array.isArray;function un(e){return 1===e.length&&on(e[0])?e[0]:e}function sn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=un(e);return q((function(e,t){var r=c([e],a(n)),o=function(){if(!t.closed)if(r.length>0){var e=void 0;try{e=Xe(r.shift())}catch(e){return void o()}var n=new W(t,void 0,x,x);t.add(e.subscribe(n)),n.add(o)}else t.complete()};o()}))}(un(e))(Se)}function an(e,t){return Ye(Object.entries(e),t)}function cn(e,t){return function(n,r){return!e.call(t,n,r)}}function ln(e,t){return q((function(n,r){var o=0;n.subscribe(new W(r,(function(n){return e.call(t,n,o++)&&r.next(n)})))}))}function fn(e,t,n){return[ln(t,n)(Xe(e)),ln(cn(t,n))(Xe(e))]}function pn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===(e=un(e)).length?Xe(e[0]):new M(dn(e))}function dn(e){return function(t){for(var n=[],r=function(r){n.push(Xe(e[r]).subscribe(new W(t,(function(e){if(n){for(var o=0;o<n.length;o++)o!==r&&n[o].unsubscribe();n=null}t.next(e)}))))},o=0;n&&!t.closed&&o<e.length;o++)r(o)}}function hn(e,t,n){if(null==t&&(t=e,e=0),t<=0)return Se;var r=t+e;return new M(n?function(t){var o=e;return n.schedule((function(){o<r?(t.next(o++),this.schedule()):t.complete()}))}:function(t){for(var n=e;n<r&&!t.closed;)t.next(n++);t.complete()})}function vn(e,t){return new M((function(n){var r=e(),o=t(r);return(o?Xe(o):Se).subscribe(n),function(){r&&r.unsubscribe()}}))}function bn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=tt(e),r=un(e);return r.length?new M((function(e){var t=r.map((function(){return[]})),o=r.map((function(){return!1}));e.add((function(){t=o=null}));for(var u=function(u){Xe(r[u]).subscribe(new W(e,(function(r){if(t[u].push(r),t.every((function(e){return e.length}))){var i=t.map((function(e){return e.shift()}));e.next(n?n.apply(void 0,c([],a(i))):i),t.some((function(e,t){return!e.length&&o[t]}))&&e.complete()}}),(function(){o[u]=!0,!t[u].length&&e.complete()})))},i=0;!e.closed&&i<r.length;i++)u(i);return function(){t=o=null}})):Se}function yn(e){return q((function(t,n){var r=!1,o=null,u=null,i=!1,s=function(){if(null==u||u.unsubscribe(),u=null,r){r=!1;var e=o;o=null,n.next(e)}i&&n.complete()},a=function(){u=null,i&&n.complete()};t.subscribe(new W(n,(function(t){r=!0,o=t,u||Xe(e(t)).subscribe(u=new W(n,s,a))}),(function(){i=!0,(!r||!u||u.closed)&&n.complete()})))}))}function mn(e,t){return void 0===t&&(t=we),yn((function(){return Qt(e,t)}))}function gn(e){return q((function(t,n){var r=[];return t.subscribe(new W(n,(function(e){return r.push(e)}),(function(){n.next(r),n.complete()}))),e.subscribe(new W(n,(function(){var e=r;r=[],n.next(e)}),x)),function(){r=null}}))}function En(e,t){return void 0===t&&(t=null),t=null!=t?t:e,q((function(n,r){var o=[],u=0;n.subscribe(new W(r,(function(n){var i,a,c,l,f=null;u++%t==0&&o.push([]);try{for(var p=s(o),d=p.next();!d.done;d=p.next()){(y=d.value).push(n),e<=y.length&&(f=null!=f?f:[]).push(y)}}catch(e){i={error:e}}finally{try{d&&!d.done&&(a=p.return)&&a.call(p)}finally{if(i)throw i.error}}if(f)try{for(var h=s(f),v=h.next();!v.done;v=h.next()){var y=v.value;b(o,y),r.next(y)}}catch(e){c={error:e}}finally{try{v&&!v.done&&(l=h.return)&&l.call(h)}finally{if(c)throw c.error}}}),(function(){var e,t;try{for(var n=s(o),u=n.next();!u.done;u=n.next()){var i=u.value;r.next(i)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}r.complete()}),void 0,(function(){o=null})))}))}function wn(e){for(var t,n,r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];var u=null!==(t=nt(r))&&void 0!==t?t:Ee,i=null!==(n=r[0])&&void 0!==n?n:null,a=r[1]||1/0;return q((function(t,n){var r=[],o=!1,c=function(e){var t=e.buffer;e.subs.unsubscribe(),b(r,e),n.next(t),o&&l()},l=function(){if(r){var t=new y;n.add(t);var o={buffer:[],subs:t};r.push(o),t.add(u.schedule((function(){return c(o)}),e))}};null!==i&&i>=0?n.add(u.schedule((function(){l(),!this.closed&&n.add(this.schedule(null,i))}),i)):o=!0,l();var f=new W(n,(function(e){var t,n,o=r.slice();try{for(var u=s(o),i=u.next();!i.done;i=u.next()){var l=i.value,f=l.buffer;f.push(e),a<=f.length&&c(l)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}}),(function(){for(;null==r?void 0:r.length;)n.next(r.shift().buffer);null==f||f.unsubscribe(),n.complete(),n.unsubscribe()}),void 0,(function(){return r=null}));t.subscribe(f)}))}function _n(e,t){return q((function(n,r){var o=[];Xe(e).subscribe(new W(r,(function(e){var n=[];o.push(n);var u=new y;u.add(Xe(t(e)).subscribe(new W(r,(function(){b(o,n),r.next(n),u.unsubscribe()}),x)))}),x)),n.subscribe(new W(r,(function(e){var t,n;try{for(var r=s(o),u=r.next();!u.done;u=r.next()){u.value.push(e)}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}}),(function(){for(;o.length>0;)r.next(o.shift());r.complete()})))}))}function An(e){return q((function(t,n){var r=null,o=null,u=function(){null==o||o.unsubscribe();var t=r;r=[],t&&n.next(t),Xe(e()).subscribe(o=new W(n,u,x))};u(),t.subscribe(new W(n,(function(e){return null==r?void 0:r.push(e)}),(function(){r&&n.next(r),n.complete()}),void 0,(function(){return r=o=null})))}))}function xn(e){return q((function(t,n){var r,o=null,u=!1;o=t.subscribe(new W(n,void 0,void 0,(function(i){r=Xe(e(i,xn(e)(t))),o?(o.unsubscribe(),o=null,r.subscribe(n)):u=!0}))),u&&(o.unsubscribe(),o=null,r.subscribe(n))}))}function On(e,t,n,r,o){return function(u,i){var s=n,a=t,c=0;u.subscribe(new W(i,(function(t){var n=c++;a=s?e(a,t,n):(s=!0,t),r&&i.next(a)}),o&&function(){s&&i.next(a),i.complete()}))}}function Cn(e,t){return q(On(e,t,arguments.length>=2,!1,!0))}var Pn=function(e,t){return e.push(t),e};function Fn(){return q((function(e,t){Cn(Pn,[])(e).subscribe(t)}))}function Rn(e,t){return L(Fn(),Lt((function(t){return e(t)})),t?_t(t):j)}function Tn(e){return Rn(kt,e)}var Sn=Tn;function In(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=tt(e);return n?L(In.apply(void 0,c([],a(e))),_t(n)):q((function(t,n){Dt(c([t],a(un(e))))(n)}))}function kn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return In.apply(void 0,c([],a(e)))}function Dn(e,t){return d(t)?Lt(e,t,1):Lt(e,1)}function Nn(e,t){return d(t)?Dn((function(){return e}),t):Dn((function(){return e}))}function jn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=nt(e);return q((function(t,r){Mt()($e(c([t],a(e)),n)).subscribe(r)}))}function Ln(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return jn.apply(void 0,c([],a(e)))}var Bn={connector:function(){return new Q}};function Mn(e,t){void 0===t&&(t=Bn);var n=t.connector;return q((function(t,r){var o,u=n();Ye(e((o=u,new M((function(e){return o.subscribe(e)}))))).subscribe(r),r.add(t.subscribe(u))}))}function Un(e){return Cn((function(t,n,r){return!e||e(n,r)?t+1:t}),0)}function Hn(e){return q((function(t,n){var r=!1,o=null,u=null,i=function(){if(null==u||u.unsubscribe(),u=null,r){r=!1;var e=o;o=null,n.next(e)}};t.subscribe(new W(n,(function(t){null==u||u.unsubscribe(),r=!0,o=t,u=new W(n,i,x),Xe(e(t)).subscribe(u)}),(function(){i(),n.complete()}),void 0,(function(){o=u=null})))}))}function qn(e,t){return void 0===t&&(t=Ee),q((function(n,r){var o=null,u=null,i=null,s=function(){if(o){o.unsubscribe(),o=null;var e=u;u=null,r.next(e)}};function a(){var n=i+e,u=t.now();if(u<n)return o=this.schedule(void 0,n-u),void r.add(o);s()}n.subscribe(new W(r,(function(n){u=n,i=t.now(),o||(o=t.schedule(a,e),r.add(o))}),(function(){s(),r.complete()}),void 0,(function(){u=o=null})))}))}function Wn(e){return q((function(t,n){var r=!1;t.subscribe(new W(n,(function(e){r=!0,n.next(e)}),(function(){r||n.next(e),n.complete()})))}))}function Gn(e){return e<=0?function(){return Se}:q((function(t,n){var r=0;t.subscribe(new W(n,(function(t){++r<=e&&(n.next(t),e<=r&&n.complete())})))}))}function zn(){return q((function(e,t){e.subscribe(new W(t,x))}))}function Vn(e){return Et((function(){return e}))}function Jn(e,t){return t?function(n){return Ut(t.pipe(Gn(1),zn()),n.pipe(Jn(e)))}:Lt((function(t,n){return e(t,n).pipe(Gn(1),Vn(t))}))}function Yn(e,t){void 0===t&&(t=Ee);var n=Qt(e,t);return Jn((function(){return n}))}function Xn(){return q((function(e,t){e.subscribe(new W(t,(function(e){return st(e,t)})))}))}function Kn(e,t){return q((function(n,r){var o=new Set;n.subscribe(new W(r,(function(t){var n=e?e(t):t;o.has(n)||(o.add(n),r.next(t))}))),null==t||t.subscribe(new W(r,(function(){return o.clear()}),x))}))}function Zn(e,t){return void 0===t&&(t=j),e=null!=e?e:$n,q((function(n,r){var o,u=!0;n.subscribe(new W(r,(function(n){var i=t(n);!u&&e(o,i)||(u=!1,o=i,r.next(n))})))}))}function $n(e,t){return e===t}function Qn(e,t){return Zn((function(n,r){return t?t(n[e],r[e]):n[e]===r[e]}))}function er(e){return void 0===e&&(e=tr),q((function(t,n){var r=!1;t.subscribe(new W(n,(function(e){r=!0,n.next(e)}),(function(){return r?n.complete():n.error(e())})))}))}function tr(){return new ct}function nr(e,t){if(e<0)throw new pt;var n=arguments.length>=2;return function(r){return r.pipe(ln((function(t,n){return n===e})),Gn(1),n?Wn(t):er((function(){return new pt})))}}function rr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return Ut(t,ot.apply(void 0,c([],a(e))))}}function or(e,t){return q((function(n,r){var o=0;n.subscribe(new W(r,(function(u){e.call(t,u,o++,n)||(r.next(!1),r.complete())}),(function(){r.next(!0),r.complete()})))}))}function ur(){return q((function(e,t){var n=!1,r=null;e.subscribe(new W(t,(function(e){r||(r=Xe(e).subscribe(new W(t,void 0,(function(){r=null,n&&t.complete()}))))}),(function(){n=!0,!r&&t.complete()})))}))}var ir=ur;function sr(e,t){return t?function(n){return n.pipe(sr((function(n,r){return Xe(e(n,r)).pipe(Et((function(e,o){return t(n,e,r,o)})))})))}:q((function(t,n){var r=0,o=null,u=!1;t.subscribe(new W(n,(function(t){o||(o=new W(n,void 0,(function(){o=null,u&&n.complete()})),Xe(e(t,r++)).subscribe(o))}),(function(){u=!0,!o&&n.complete()})))}))}function ar(e,t,n){return void 0===t&&(t=1/0),t=(t||0)<1?1/0:t,q((function(r,o){return jt(r,o,e,t,void 0,!0,n)}))}function cr(e){return q((function(t,n){try{t.subscribe(n)}finally{n.add(e)}}))}function lr(e,t){return q(fr(e,t,"value"))}function fr(e,t,n){var r="index"===n;return function(n,o){var u=0;n.subscribe(new W(o,(function(i){var s=u++;e.call(t,i,s,n)&&(o.next(r?s:i),o.complete())}),(function(){o.next(r?-1:void 0),o.complete()})))}}function pr(e,t){return q(fr(e,t,"index"))}function dr(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?ln((function(t,n){return e(t,n,r)})):j,Gn(1),n?Wn(t):er((function(){return new ct})))}}function hr(e,t,n,r){return q((function(o,u){var i;t&&"function"!=typeof t?(n=t.duration,i=t.element,r=t.connector):i=t;var s=new Map,a=function(e){s.forEach(e),e(u)},c=function(e){return a((function(t){return t.error(e)}))},l=new vr(u,(function(t){try{var o=e(t),a=s.get(o);if(!a){s.set(o,a=r?r():new Q);var f=(d=o,h=a,(v=new M((function(e){l.activeGroups++;var t=h.subscribe(e);return function(){t.unsubscribe(),0==--l.activeGroups&&l.teardownAttempted&&l.unsubscribe()}}))).key=d,v);if(u.next(f),n){var p=new W(a,(function(){a.complete(),null==p||p.unsubscribe()}),void 0,void 0,(function(){return s.delete(o)}));l.add(Xe(n(f)).subscribe(p))}}a.next(i?i(t):t)}catch(e){c(e)}var d,h,v}),(function(){return a((function(e){return e.complete()}))}),c,(function(){return s.clear()}));o.subscribe(l)}))}var vr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.activeGroups=0,t.teardownAttempted=!1,t}return o(t,e),t.prototype.unsubscribe=function(){this.teardownAttempted=!0,0===this.activeGroups&&e.prototype.unsubscribe.call(this)},t}(W);function br(){return q((function(e,t){e.subscribe(new W(t,(function(){t.next(!1),t.complete()}),(function(){t.next(!0),t.complete()})))}))}function yr(e){return e<=0?function(){return Se}:q((function(t,n){var r=[];t.subscribe(new W(n,(function(t){r.push(t),e<r.length&&r.shift()}),(function(){var e,t;try{for(var o=s(r),u=o.next();!u.done;u=o.next()){var i=u.value;n.next(i)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}n.complete()}),void 0,(function(){r=null})))}))}function mr(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?ln((function(t,n){return e(t,n,r)})):j,yr(1),n?Wn(t):er((function(){return new ct})))}}function gr(){return q((function(e,t){e.subscribe(new W(t,(function(e){t.next(it.createNext(e))}),(function(){t.next(it.createComplete()),t.complete()}),(function(e){t.next(it.createError(e)),t.complete()})))}))}function Er(e){return Cn(d(e)?function(t,n){return e(t,n)>0?t:n}:function(e,t){return e>t?e:t})}var wr=Lt;function _r(e,t,n){return void 0===n&&(n=1/0),d(t)?Lt((function(){return e}),t,n):("number"==typeof t&&(n=t),Lt((function(){return e}),n))}function Ar(e,t,n){return void 0===n&&(n=1/0),q((function(r,o){var u=t;return jt(r,o,(function(t,n){return e(u,t,n)}),n,(function(e){u=e}),!1,void 0,(function(){return u=null}))}))}function xr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=nt(e),r=rt(e,1/0);return e=un(e),q((function(t,o){Bt(r)($e(c([t],a(e)),n)).subscribe(o)}))}function Or(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return xr.apply(void 0,c([],a(e)))}function Cr(e){return Cn(d(e)?function(t,n){return e(t,n)<0?t:n}:function(e,t){return e<t?e:t})}function Pr(e,t){var n=d(e)?e:function(){return e};return d(t)?Mn(t,{connector:n}):function(e){return new z(e,n)}}function Fr(){return q((function(e,t){var n,r=!1;e.subscribe(new W(t,(function(e){var o=n;n=e,r&&t.next([o,e]),r=!0})))}))}function Rr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.length;if(0===n)throw new Error("list of properties cannot be empty.");return Et((function(t){for(var r=t,o=0;o<n;o++){var u=null==r?void 0:r[e[o]];if(void 0===u)return;r=u}return r}))}function Tr(e){return e?function(t){return Mn(e)(t)}:function(e){return Pr(new Q)(e)}}function Sr(e){return function(t){var n=new te(e);return new z(t,(function(){return n}))}}function Ir(){return function(e){var t=new oe;return new z(e,(function(){return t}))}}function kr(e,t,n,r){n&&!d(n)&&(r=n);var o=d(n)?n:void 0;return function(n){return Pr(new re(e,t,r),o)(n)}}function Dr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length?q((function(t,n){dn(c([t],a(e)))(n)})):j}function Nr(e){return void 0===e&&(e=1/0),e<=0?function(){return Se}:q((function(t,n){var r,o=0,u=function(){var i=!1;r=t.subscribe(new W(n,void 0,(function(){++o<e?r?(r.unsubscribe(),r=null,u()):i=!0:n.complete()}))),i&&(r.unsubscribe(),r=null,u())};u()}))}function jr(e){return q((function(t,n){var r,o,u=!1,i=!1,s=!1,a=function(){return s&&i&&(n.complete(),!0)},c=function(){s=!1,r=t.subscribe(new W(n,void 0,(function(){s=!0,!a()&&(o||(o=new Q,e(o).subscribe(new W(n,(function(){r?c():u=!0}),(function(){i=!0,a()})))),o).next()}))),u&&(r.unsubscribe(),r=null,u=!1,c())};c()}))}function Lr(e){var t;void 0===e&&(e=1/0);var n=(t=e&&"object"==typeof e?e:{count:e}).count,r=void 0===n?1/0:n,o=t.delay,u=t.resetOnSuccess,i=void 0!==u&&u;return r<=0?j:q((function(e,t){var n,u=0,s=function(){var a=!1;n=e.subscribe(new W(t,(function(e){i&&(u=0),t.next(e)}),void 0,(function(e){if(u++<r){var i=function(){n?(n.unsubscribe(),n=null,s()):a=!0};if(null!=o){var c="number"==typeof o?Qt(o):Xe(o(e,u)),l=new W(t,(function(){l.unsubscribe(),i()}),(function(){t.complete()}));c.subscribe(l)}else i()}else t.error(e)}))),a&&(n.unsubscribe(),n=null,s())};s()}))}function Br(e){return q((function(t,n){var r,o,u=!1,i=function(){r=t.subscribe(new W(n,void 0,void 0,(function(t){o||(o=new Q,e(o).subscribe(new W(n,(function(){return r?i():u=!0})))),o&&o.next(t)}))),u&&(r.unsubscribe(),r=null,u=!1,i())};i()}))}function Mr(e){return q((function(t,n){var r=!1,o=null;t.subscribe(new W(n,(function(e){r=!0,o=e})));e.subscribe(new W(n,(function(){if(r){r=!1;var e=o;o=null,n.next(e)}}),x))}))}function Ur(e,t){return void 0===t&&(t=Ee),Mr(en(e,t))}function Hr(e,t){return q(On(e,t,arguments.length>=2,!0))}function qr(e,t){return void 0===t&&(t=function(e,t){return e===t}),q((function(n,r){var o={buffer:[],complete:!1},u={buffer:[],complete:!1},i=function(e){r.next(e),r.complete()},s=function(e,n){var o=new W(r,(function(r){var o=n.buffer,u=n.complete;0===o.length?u?i(!1):e.buffer.push(r):!t(r,o.shift())&&i(!1)}),(function(){e.complete=!0;var t=n.complete,r=n.buffer;t&&i(0===r.length),null==o||o.unsubscribe()}));return o};n.subscribe(s(o,u)),e.subscribe(s(u,o))}))}function Wr(e){void 0===e&&(e={});var t=e.connector,n=void 0===t?function(){return new Q}:t,r=e.resetOnError,o=void 0===r||r,u=e.resetOnComplete,i=void 0===u||u,s=e.resetOnRefCountZero,a=void 0===s||s;return function(e){var t=null,r=null,u=null,s=0,c=!1,l=!1,f=function(){null==r||r.unsubscribe(),r=null},p=function(){f(),t=u=null,c=l=!1},d=function(){var e=t;p(),null==e||e.unsubscribe()};return q((function(e,h){s++,l||c||f();var v=u=null!=u?u:n();h.add((function(){0!==--s||l||c||(r=Gr(d,a))})),v.subscribe(h),t||(t=new T({next:function(e){return v.next(e)},error:function(e){l=!0,f(),r=Gr(p,o,e),v.error(e)},complete:function(){c=!0,f(),r=Gr(p,i),v.complete()}}),Ye(e).subscribe(t))}))(e)}}function Gr(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return!0===t?(e(),null):!1===t?null:t.apply(void 0,c([],a(n))).pipe(Gn(1)).subscribe((function(){return e()}))}function zr(e,t,n){var r,o,u,i=!1;return e&&"object"==typeof e?(u=null!==(r=e.bufferSize)&&void 0!==r?r:1/0,t=null!==(o=e.windowTime)&&void 0!==o?o:1/0,i=!!e.refCount,n=e.scheduler):u=null!=e?e:1/0,Wr({connector:function(){return new re(u,t,n)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}function Vr(e){return q((function(t,n){var r,o=!1,u=!1,i=0;t.subscribe(new W(n,(function(s){u=!0,e&&!e(s,i++,t)||(o&&n.error(new ht("Too many matching values")),o=!0,r=s)}),(function(){o?(n.next(r),n.complete()):n.error(u?new dt("No matching values"):new ct)})))}))}function Jr(e){return ln((function(t,n){return e<=n}))}function Yr(e){return e<=0?j:q((function(t,n){var r=new Array(e),o=0;return t.subscribe(new W(n,(function(t){var u=o++;if(u<e)r[u]=t;else{var i=u%e,s=r[i];r[i]=t,n.next(s)}}))),function(){r=null}}))}function Xr(e){return q((function(t,n){var r=!1,o=new W(n,(function(){null==o||o.unsubscribe(),r=!0}),x);Xe(e).subscribe(o),t.subscribe(new W(n,(function(e){return r&&n.next(e)})))}))}function Kr(e){return q((function(t,n){var r=!1,o=0;t.subscribe(new W(n,(function(t){return(r||(r=!e(t,o++)))&&n.next(t)})))}))}function Zr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=nt(e);return q((function(t,r){(n?Ut(e,t,n):Ut(e,t)).subscribe(r)}))}function $r(e,t){return q((function(n,r){var o=null,u=0,i=!1,s=function(){return i&&!o&&r.complete()};n.subscribe(new W(r,(function(n){null==o||o.unsubscribe();var i=0,a=u++;Xe(e(n,a)).subscribe(o=new W(r,(function(e){return r.next(t?t(n,e,a,i++):e)}),(function(){o=null,s()})))}),(function(){i=!0,s()})))}))}function Qr(){return $r(j)}function eo(e,t){return d(t)?$r((function(){return e}),t):$r((function(){return e}))}function to(e,t){return q((function(n,r){var o=t;return $r((function(t,n){return e(o,t,n)}),(function(e,t){return o=t,t}))(n).subscribe(r),function(){o=null}}))}function no(e){return q((function(t,n){Xe(e).subscribe(new W(n,(function(){return n.complete()}),x)),!n.closed&&t.subscribe(n)}))}function ro(e,t){return void 0===t&&(t=!1),q((function(n,r){var o=0;n.subscribe(new W(r,(function(n){var u=e(n,o++);(u||t)&&r.next(n),!u&&r.complete()})))}))}function oo(e,t,n){var r=d(e)||t||n?{next:e,error:t,complete:n}:e;return r?q((function(e,t){var n;null===(n=r.subscribe)||void 0===n||n.call(r);var o=!0;e.subscribe(new W(t,(function(e){var n;null===(n=r.next)||void 0===n||n.call(r,e),t.next(e)}),(function(){var e;o=!1,null===(e=r.complete)||void 0===e||e.call(r),t.complete()}),(function(e){var n;o=!1,null===(n=r.error)||void 0===n||n.call(r,e),t.error(e)}),(function(){var e,t;o&&(null===(e=r.unsubscribe)||void 0===e||e.call(r)),null===(t=r.finalize)||void 0===t||t.call(r)})))})):j}var uo={leading:!0,trailing:!1};function io(e,t){var n=void 0===t?uo:t,r=n.leading,o=n.trailing;return q((function(t,n){var u=!1,i=null,s=null,a=!1,c=function(){null==s||s.unsubscribe(),s=null,o&&(p(),a&&n.complete())},l=function(){s=null,a&&n.complete()},f=function(t){return s=Xe(e(t)).subscribe(new W(n,c,l))},p=function(){if(u){u=!1;var e=i;i=null,n.next(e),!a&&f(e)}};t.subscribe(new W(n,(function(e){u=!0,i=e,(!s||s.closed)&&(r?p():f(e))}),(function(){a=!0,(!(o&&u&&s)||s.closed)&&n.complete()})))}))}function so(e,t,n){void 0===t&&(t=Ee),void 0===n&&(n=uo);var r=Qt(e,t);return io((function(){return r}),n)}function ao(e){return void 0===e&&(e=we),function(t){return Ht((function(){return t.pipe(Hr((function(t,n){var r=t.current;return{value:n,current:e.now(),last:r}}),{current:e.now(),value:void 0,last:void 0}),Et((function(e){var t=e.current,n=e.last,r=e.value;return new co(r,t-n)})))}))}}var co=function(e,t){this.value=e,this.interval=t};function lo(e,t,n){var r,o,u;if(n=null!=n?n:we,vt(e)?r=e:"number"==typeof e&&(o=e),!t)throw new TypeError("No observable provided to switch to");if(u=function(){return t},null==r&&null==o)throw new TypeError("No timeout provided.");return yt({first:r,each:o,scheduler:n,with:u})}function fo(e){return void 0===e&&(e=ne),Et((function(t){return{value:t,timestamp:e.now()}}))}function po(e){return q((function(t,n){var r=new Q;n.next(r.asObservable());var o=function(e){r.error(e),n.error(e)};return t.subscribe(new W(n,(function(e){return null==r?void 0:r.next(e)}),(function(){r.complete(),n.complete()}),o)),e.subscribe(new W(n,(function(){r.complete(),n.next(r=new Q)}),x,o)),function(){null==r||r.unsubscribe(),r=null}}))}function ho(e,t){void 0===t&&(t=0);var n=t>0?t:e;return q((function(t,r){var o=[new Q],u=0;r.next(o[0].asObservable()),t.subscribe(new W(r,(function(t){var i,a;try{for(var c=s(o),l=c.next();!l.done;l=c.next()){l.value.next(t)}}catch(e){i={error:e}}finally{try{l&&!l.done&&(a=c.return)&&a.call(c)}finally{if(i)throw i.error}}var f=u-e+1;if(f>=0&&f%n==0&&o.shift().complete(),++u%n==0){var p=new Q;o.push(p),r.next(p.asObservable())}}),(function(){for(;o.length>0;)o.shift().complete();r.complete()}),(function(e){for(;o.length>0;)o.shift().error(e);r.error(e)}),(function(){null,o=null})))}))}function vo(e){for(var t,n,r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];var u=null!==(t=nt(r))&&void 0!==t?t:Ee,i=null!==(n=r[0])&&void 0!==n?n:null,s=r[1]||1/0;return q((function(t,n){var r=[],o=!1,a=function(e){var t=e.window,n=e.subs;t.complete(),n.unsubscribe(),b(r,e),o&&c()},c=function(){if(r){var t=new y;n.add(t);var o=new Q,i={window:o,subs:t,seen:0};r.push(i),n.next(o.asObservable()),t.add(u.schedule((function(){return a(i)}),e))}};null!==i&&i>=0?n.add(u.schedule((function(){c(),!this.closed&&n.add(this.schedule(null,i))}),i)):o=!0,c();var l=function(e){return r.slice().forEach(e)},f=function(e){l((function(t){var n=t.window;return e(n)})),e(n),n.unsubscribe()};return t.subscribe(new W(n,(function(e){l((function(t){t.window.next(e),s<=++t.seen&&a(t)}))}),(function(){return f((function(e){return e.complete()}))}),(function(e){return f((function(t){return t.error(e)}))}))),function(){r=null}}))}function bo(e,t){return q((function(n,r){var o=[],u=function(e){for(;0<o.length;)o.shift().error(e);r.error(e)};Xe(e).subscribe(new W(r,(function(e){var n=new Q;o.push(n);var i,s=new y;try{i=Xe(t(e))}catch(e){return void u(e)}r.next(n.asObservable()),s.add(i.subscribe(new W(r,(function(){b(o,n),n.complete(),s.unsubscribe()}),x,u)))}),x)),n.subscribe(new W(r,(function(e){var t,n,r=o.slice();try{for(var u=s(r),i=u.next();!i.done;i=u.next()){i.value.next(e)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}}),(function(){for(;0<o.length;)o.shift().complete();r.complete()}),u,(function(){for(;0<o.length;)o.shift().unsubscribe()})))}))}function yo(e){return q((function(t,n){var r,o,u=function(e){r.error(e),n.error(e)},i=function(){var t;null==o||o.unsubscribe(),null==r||r.complete(),r=new Q,n.next(r.asObservable());try{t=Xe(e())}catch(e){return void u(e)}t.subscribe(o=new W(n,i,i,u))};i(),t.subscribe(new W(n,(function(e){return r.next(e)}),(function(){r.complete(),n.complete()}),u,(function(){null==o||o.unsubscribe(),r=null})))}))}function mo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=tt(e);return q((function(t,r){for(var o=e.length,u=new Array(o),i=e.map((function(){return!1})),s=!1,l=function(t){Xe(e[t]).subscribe(new W(r,(function(e){u[t]=e,s||i[t]||(i[t]=!0,(s=i.every(j))&&(i=null))}),x))},f=0;f<o;f++)l(f);t.subscribe(new W(r,(function(e){if(s){var t=c([e],a(u));r.next(n?n.apply(void 0,c([],a(t))):t)}})))}))}function go(e){return Rn(bn,e)}function Eo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return q((function(t,n){bn.apply(void 0,c([t],a(e))).subscribe(n)}))}function wo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Eo.apply(void 0,c([],a(e)))}},3596:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimelineApp=void 0;var r=n(4744),o=n(2033),u=n(2431),i=n(4307),s=function(){function e(){this._notifications=[],this._notificationTypes=[],this._flashMessages=[],this._pageNumber=0,this._lastPage=!1,this._loading=!1,this.showMine=!1}return Object.defineProperty(e.prototype,"notifications",{get:function(){return this._notifications},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isLoading",{get:function(){return this._loading},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"page",{get:function(){return this._pageNumber},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasMorePage",{get:function(){return!this._lastPage},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"notificationTypes",{get:function(){return this._notificationTypes},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectedNotificationTypes",{get:function(){return this.preferences.type=this.preferences.type||[],this.preferences.type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"preferences",{get:function(){return o.configure.User.preferences.get(r.APP.TIMELINE)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"flashMessages",{get:function(){return this._flashMessages},enumerable:!1,configurable:!0}),e.prototype.savePreferences=function(){return o.configure.User.saveAppPrefs(r.APP.TIMELINE)},e.prototype.resetPagination=function(){this._pageNumber=0,this._lastPage=!1,this._loading=!1},e.prototype.initialize=function(){var e=this;return Promise.all([o.configure.User.loadAppPrefs(r.APP.TIMELINE),u.transport.http.get("/timeline/types")]).then((function(t){e._notificationTypes=t[1]}))},e.prototype.loadNotifications=function(e){var t=this;if(this._loading||this._lastPage)return Promise.resolve();e&&(this._pageNumber++,this._lastPage=!1);var n=this.selectedNotificationTypes;if(0===n.length)return this._lastPage=!0,Promise.resolve();var r={page:this.page,mine:1};return this.showMine||delete r.mine,this._loading=!0,u.transport.http.get("/timeline/lastNotifications?type="+n.join("&type="),{queryParams:r}).then((function(e){if(t._loading=!1,"ok"===e.status)if(e.number&&e.results){var n=e.results.filter((function(e){return-1===t._notifications.findIndex((function(t){return t._id===e._id}))})).map((function(e){return new i.Notification(e)}));t._notifications=t._notifications.concat(n),t._pageNumber++}else t._lastPage=!0})).catch((function(e){t._loading=!1}))},e.prototype.loadFlashMessages=function(){var e=this;return u.transport.http.get("/timeline/flashmsg/listuser").then((function(t){e._flashMessages=t}))},e.prototype.markAsRead=function(e){return u.transport.http.put("/timeline/flashmsg/"+e.id+"/markasread")},e}();t.TimelineApp=s},4307:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Notification=void 0;var r=n(5807),o=n(6485).TransportFrameworkFactory.instance().http,u=r.SessionFrameworkFactory.instance().session.user,i=function(){function e(e){e.reported=e.reporters&&e.reporters.length>0,this._id=e._id,this.model=e}return e.prototype.isUnread=function(){var e;return void 0!==(null===(e=this.model.recipients)||void 0===e?void 0:e.find((function(e){return e.userId===u.userId})))},e.prototype.delete=function(){return o.delete("/timeline/"+this._id)},e.prototype.discard=function(){return o.put("/timeline/"+this._id)},e.prototype.report=function(){return o.put("/timeline/"+this._id+"/report")},e}();t.Notification=i},6325:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ITimelineFactory=void 0;var r=n(3596),o=function(){function e(){}return e.createInstance=function(){return new r.TimelineApp},e}();t.ITimelineFactory=o},1090:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,u){function i(e){try{a(r.next(e))}catch(e){u(e)}}function s(e){try{a(r.throw(e))}catch(e){u(e)}}function a(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}a((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,u,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function s(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.Analytics=void 0;var u=n(2431),i=n(9294),s=n(5445),a=n(1381),c=n(2033),l=function(){function e(){this._status="void"}return Object.defineProperty(e.prototype,"status",{get:function(){return this._status},enumerable:!1,configurable:!0}),e.prototype.xiti=function(){return this.parametersWithCheck("xiti",!1)},e.prototype.parameters=function(e){return this.parametersWithCheck(e,!0)},e.prototype.parametersWithCheck=function(e,t){return r(this,void 0,void 0,(function(){return o(this,(function(n){return[2,this.initialize().promise.then((function(n){return t&&n.type!==e&&"multiple"!==n.type?void 0:n[e]}))]}))}))},e.prototype.initialize=function(){var e=this;return this._params||(this._params=a.notify.promisify(),this._status="pending",Promise.all([u.transport.http.get("/analyticsConf"),u.transport.http.get("/xiti/config")]).then((function(t){return r(e,void 0,void 0,(function(){var e,n;return o(this,(function(r){switch(r.label){case 0:if(!t||!t[0]||!t[0].type)throw i.ERROR_CODE.MALFORMED_DATA;return t[1]&&t[1].active?(e=t[0],[4,this.initializeXiti(t[1])]):[3,2];case 1:e.xiti=r.sent(),r.label=2;case 2:return null===(n=this._params)||void 0===n||n.resolve(t[0]),this._status="ready",[2]}}))}))})).catch((function(t){var n;throw e._status="failed",null===(n=e._params)||void 0===n||n.reject(),t}))),this._params},e.prototype.initializeXiti=function(e){var t;return r(this,void 0,void 0,(function(){function n(e){for(var t="",n=0;n<e.length;n++)t+=e.charCodeAt(n);return t}var r,u,i,l,f,p,d,h,v,b;return o(this,(function(o){switch(o.label){case 0:return e.structureMap&&c.configure.Platform.apps.currentApp?[4,a.notify.onSessionReady().promise]:[2];case 1:for(r=o.sent(),u=s.session.session.description,l=0,f=r.structures;l<f.length;l++)if(p=f[l],(d=e.structureMap[p])&&d.collectiviteId&&d.UAI){i=d;break}return i&&i.active?[4,c.configure.Platform.apps.getPublicConf(c.configure.Platform.apps.currentApp)]:[2];case 2:return(h=o.sent())&&((v=h.xiti)&&v.LIBELLE_SERVICE&&i.UAI)?(b={Student:"ELEVE",Teacher:"ENSEIGNANT",Relative:"PARENT",Personnel:"ADMIN_VIE_SCOL_TECH",Guest:"AUTRE"},[2,{LIBELLE_SERVICE:v.LIBELLE_SERVICE,TYPE:v.OUTIL?"TIERS":"NATIF",OUTIL:v.OUTIL?v.OUTIL:"",STRUCT_ID:i.collectiviteId,STRUCT_UAI:i.UAI,PROJET:i.projetId?i.projetId:e.ID_PROJET,EXPLOITANT:e.ID_EXPLOITANT,PLATFORME:i.plateformeId?i.plateformeId:e.ID_PLATEFORME,ID_PERSO:n(r.userId),PROFILE:u.profiles&&u.profiles.length>0&&null!==(t=b[u.profiles[0]])&&void 0!==t?t:""}]):[2]}}))}))},e}();t.Analytics=l},2827:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,u){function i(e){try{a(r.next(e))}catch(e){u(e)}}function s(e){try{a(r.throw(e))}catch(e){u(e)}}function a(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}a((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,u,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function s(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.AppConf=void 0;var u=n(2431),i=n(2033),s=n(1381),a=u.transport.http,c=function(){function e(){this._publicConf={}}return Object.defineProperty(e.prototype,"currentApp",{get:function(){var e;return null!==(e=this._currentApp)&&void 0!==e?e:null},enumerable:!1,configurable:!0}),e.prototype.setCurrentApp=function(e){return this._currentApp=e,this},e.prototype.initialize=function(e,t){return void 0===t&&(t=!1),r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return t||this.setCurrentApp(e),[4,Promise.all([this.getPublicConf(e),this.loadI18n(e)])];case 1:return n.sent(),[2]}}))}))},e.prototype.getPublicConf=function(e){return r(this,void 0,void 0,(function(){var t,n;return o(this,(function(r){switch(r.label){case 0:return this._publicConf[e]?[3,2]:(t=this._publicConf,n=e,[4,a.get("/"+e+"/conf/public",{queryParams:{_:i.configure.Platform.deploymentTag}})]);case 1:t[n]=r.sent(),r.label=2;case 2:return[2,this._publicConf[e]]}}))}))},e.prototype.loadI18n=function(e){return s.notify.onLangReady().promise.then((function(t){return i.configure.Platform.idiom.addBundlePromise("/"+e+"/i18n")}))},e}();t.AppConf=c},2033:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,u){function i(e){try{a(r.next(e))}catch(e){u(e)}}function s(e){try{a(r.throw(e))}catch(e){u(e)}}function a(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}a((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,u,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function s(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.configure=t.ConfigurationFramework=void 0;var u=n(270),i=n(6934),s=n(7144),a=n(2827),c=n(2431),l=n(1090),f=n(1381),p=function(){function e(){this.Platform={deploymentTag:"",cdnDomain:"",apps:new a.AppConf,theme:new u.Theme,analytics:new l.Analytics,idiom:new i.Idiom,listLanguages:function(){return c.transport.http.get("/languages")}},this.School={},this.User=new s.User}return e.prototype.initialize=function(e,t){return r(this,void 0,void 0,(function(){var n,r,u,i,s,a,l=this;return o(this,(function(o){switch(o.label){case 0:return e||(n=function(e){return(e<10?"0":"")+e.toFixed(0)},r=new Date,u=r.getFullYear(),i=r.getMonth()+1,s=r.getDate(),r.getMinutes()/10,e=""+u+n(i)+n(s)),a=e,this.Platform.deploymentTag=e,"string"==typeof t&&t.length>0&&(this.Platform.cdnDomain=t),c.transport.http.setCdn(this.Platform.cdnDomain),[4,Promise.all([this.Platform.theme.initialize(a),f.notify.onSessionReady().promise.then((function(e){return l.Platform.idiom.addBundlePromise("/i18n")})),this.User.initialize(a)])];case 1:return o.sent(),[2]}}))}))},e}();t.ConfigurationFramework=p,t.configure=new p},6934:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Idiom=void 0;var r=n(2431),o=n(1381),u=n(5445),i={},s={},a=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],c=function(){function e(){}return e.prototype.translate=function(e,t){var n=void 0===i[e=null!=e?e:""]?e:i[e];if(t&&"object"==typeof t)for(var r in t)void 0!==t[r]&&(n=n.replace(new RegExp("\\${"+r+"}","g"),""+t[r]));return n},e.prototype.addBundlePromise=function(e){return this.loadBundlePromise(u.session.session.currentLanguage,e)},e.prototype.addBundle=function(e,t){this.loadBundle(u.session.session.currentLanguage,e,t)},e.prototype.loadBundlePromise=function(e,t){return this.loadBundle(e,t),s[t]},e.prototype.loadBundle=function(e,t,n){var u=s[t];if(u)n&&u.then(n).catch(n);else{var a=new o.Promisified;s[t]=a.promise;var c={};e&&(c["Accept-Language"]=e),r.transport.http.get(t,{headers:c}).then((function(e){Object.assign(i,e),"function"==typeof n&&n(),a.resolve()})).catch((function(e){"function"==typeof n&&n(),a.reject()}))}},e.prototype.addTranslations=function(e,t){var n=this;o.notify.onLangReady().promise.then((function(r){n.loadBundle(r,e+"/"+r+".json",t)}))},e.prototype.addAllTranslations=function(e){var t=this;return e&&e.length>0?o.notify.onLangReady().promise.then((function(n){return Promise.all(e.map((function(e){return t.loadBundlePromise(n,e+"/"+n+".json")})))})).then((function(){})):Promise.reject()},e.prototype.addKeys=function(e){for(var t in e)"string"!=typeof i[t]&&(i[t]=e[t])},e.prototype.removeAccents=function(e){for(var t=0;t<a.length;t++)e=e.replace(a[t].letters,a[t].base);return e},e}();t.Idiom=c},270:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,u){function i(e){try{a(r.next(e))}catch(e){u(e)}}function s(e){try{a(r.throw(e))}catch(e){u(e)}}function a(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}a((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,u,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function s(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.Theme=void 0;var u=n(1381),i=n(5445),s=n(2431),a=n(2033),c=function(){function e(){this.skinName="",this.themeName="",this.skin="raw",this.themeUrl="/assets/themes/raw/default/",this.templateOverrides={},this.portalTemplate="/assets/themes/raw/portal.html",this.basePath="",this.logoutCallback="/",this.skins=[],this.is1D=!1,this.is2D=!1,this._onSkinReady=u.notify.onSkinReady(),this._onOverrideReady=u.notify.onOverridesReady()}return e.prototype.initialize=function(e){var t=this;return u.notify.onSessionReady().promise.then((function(){return t.load(e)}))},Object.defineProperty(e.prototype,"version",{get:function(){return a.configure.Platform.deploymentTag},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cdnDomain",{get:function(){return a.configure.Platform.cdnDomain},enumerable:!1,configurable:!0}),e.prototype.onFullyReady=function(){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this._loaded];case 1:return e.sent(),[2,this]}}))}))},e.prototype.onSkinReady=function(){return this._onSkinReady.promise},e.prototype.onOverrideReady=function(){return this._onOverrideReady.promise},e.prototype.getConf=function(e){var t;return r(this,void 0,void 0,(function(){var n,r;return o(this,(function(o){switch(o.label){case 0:return n=this,null===(t=this._conf)||void 0===t?[3,1]:(r=t,[3,3]);case 1:return[4,s.transport.http.getScript("/assets/theme-conf.js",{queryParams:{v:null!=e?e:this.version}},"exports.conf")];case 2:r=o.sent(),o.label=3;case 3:return n._conf=r,[2,this._conf]}}))}))},e.prototype.load=function(e){var t=this;return e=null!=e?e:this.version,this._loaded||(this._loaded=(i.session.session.notLoggedIn?this.loadDisconnected(e):this.loadConnected(e)).then((function(){return r(t,void 0,void 0,(function(){var e,t,n,r=this;return o(this,(function(o){switch(o.label){case 0:return[4,this.listSkins()];case 1:return e=o.sent(),this.is1D="panda"===(null===(t=e.find((function(e){return e.child===r.skin})))||void 0===t?void 0:t.parent),this.is2D="theme-open-ent"===(null===(n=e.find((function(e){return e.child===r.skin})))||void 0===n?void 0:n.parent),[2]}}))}))}))),this._loaded},e.prototype.loadDisconnected=function(e){var t=this;return new Promise((function(n,r){s.transport.http.get("/skin",{queryParams:{v:t.version}}).then((function(r){t.skin=r.skin,t.themeUrl=t.cdnDomain+"/assets/themes/"+r.skin+"/skins/default/",t.basePath=t.themeUrl+"../../",t._onSkinReady.resolve(t),s.transport.http.get("/assets/themes/"+r.skin+"/template/override.json",{disableNotifications:!0,queryParams:{v:e}}).then((function(e){t.templateOverrides=e,t._onOverrideReady.resolve(e),n()})).catch((function(e){if(404!==s.transport.http.latestResponse.status)throw e;n()}))})).catch((function(e){t._onSkinReady.reject(e),t._onOverrideReady.reject(e),r()}))}))},e.prototype.loadConnected=function(e){var t=this;return new Promise((function(n,r){t.loadDefaultTheme(e).then((function(){t._onSkinReady.resolve(t),s.transport.http.get("/assets/themes/"+t.skin+"/template/override.json",{disableNotifications:!0,queryParams:{v:e}}).then((function(e){t.templateOverrides=e,t._onOverrideReady.resolve(e),n()})).catch((function(e){if(404!==s.transport.http.latestResponse.status)throw e;n(),t._onSkinReady.reject(e),t._onOverrideReady.reject(e)}))}))}))},e.prototype.loadDefaultTheme=function(e){return r(this,void 0,void 0,(function(){var t=this;return o(this,(function(n){return i.session.session.notLoggedIn?[2,Promise.reject()]:[2,s.transport.http.get("/theme",{queryParams:{_:e}}).then((function(e){t.skinName=e.skinName,t.themeName=e.themeName,t.themeUrl=e.skin,t.basePath=""+t.cdnDomain+t.themeUrl+"../../",t.skin=t.themeUrl.split("/assets/themes/")[1].split("/")[0],t.portalTemplate=t.cdnDomain+"/assets/themes/"+t.skin+"/portal.html",t.logoutCallback=e.logoutCallback}))]}))}))},e.prototype.listThemes=function(){return s.transport.http.get("/themes")},e.prototype.setDefaultTheme=function(e){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,s.transport.http.get("/userbook/api/edit-userbook-info?prop=theme-"+this.skin+"&value="+e._id)];case 1:return t.sent(),[4,this.loadDefaultTheme(this.version)];case 2:return t.sent(),[2]}}))}))},e.prototype.listSkins=function(){var e=this;return this.skins.length>0?Promise.resolve(this.skins):this.getConf().then((function(t){var n=t.overriding.find((function(t){return t.child===e.skin}));return(null==n?void 0:n.group)?e.skins=e.skins.concat(t.overriding.filter((function(e){return e.group===n.group}))):e.skins=e.skins.concat(t.overriding),e.skins}))},e.prototype.getHelpPath=function(){var e;return r(this,void 0,void 0,(function(){var t,n,r=this;return o(this,(function(o){switch(o.label){case 0:return[4,this.listSkins()];case 1:return t=o.sent(),n=t.find((function(e){return e.child===r.skin})),[2,null!==(e=null==n?void 0:n.help)&&void 0!==e?e:"/help"]}}))}))},e}();t.Theme=c},7144:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,u){function i(e){try{a(r.next(e))}catch(e){u(e)}}function s(e){try{a(r.throw(e))}catch(e){u(e)}}function a(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}a((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,u,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function s(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.User=void 0;var u=n(2431),i=n(1381),s=n(5445),a=function(){function e(){this.data={}}return e.prototype.get=function(e){return this.data[e]},e.prototype.load=function(e,t){var n=this;return u.transport.http.get("/userbook/preference/"+e).then((function(e){try{return JSON.parse(e.preference)}catch(e){return null!=t?t:{}}})).then((function(t){return n.data[e]=null!=t?t:{},t}))},e.prototype.update=function(e,t){return void 0!==t&&(this.data[e]=t),this},e.prototype.save=function(e){return u.transport.http.putJson("/userbook/preference/"+e,this.data[e])},e}(),c=function(){function e(){this._me=null,this._keepOpenOnLogout=!1,this._preferences=new a,this._bookmarkedApps=[]}return Object.defineProperty(e.prototype,"keepOpenOnLogout",{get:function(){return this._keepOpenOnLogout},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"preferences",{get:function(){return this._preferences},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bookmarkedApps",{get:function(){return this._bookmarkedApps},enumerable:!1,configurable:!0}),e.prototype.initialize=function(e){var t=this;return this.loadPublicConf(),i.notify.onSessionReady().promise.then((function(e){e&&t.setCurrentModel(e)}))},e.prototype.setCurrentModel=function(e){this._me=e,this._preferences=new a,this.loadBookmarks()},e.prototype.loadPublicConf=function(){var e=this;return u.transport.http.get("/conf/public").then((function(t){return e._keepOpenOnLogout=(null==t?void 0:t.keepOpenOnLogout)||!1,t}))},e.prototype.loadBookmarks=function(){return r(this,void 0,void 0,(function(){var e=this;return o(this,(function(t){switch(t.label){case 0:return[4,u.transport.http.get("/userbook/preference/apps").then((function(t){t.preference||(t.preference=null);var n,r=JSON.parse(t.preference);if(r&&r.length&&"function"==typeof r.concat)return e._bookmarkedApps=r,n={bookmarks:r.map((function(e){return e.name})),applications:[]},void u.transport.http.putJson("/userbook/preference/apps",n);(n=r)||(n={bookmarks:[],applications:[]});var o=!0,i=[];n.bookmarks.forEach((function(t,n){var r=e._me.apps.find((function(e){return e.name===t}));if(r){var u=Object.assign({},r);e._bookmarkedApps.push(u)}else i.push(t),o=!1})),i.forEach((function(e){var t=n.bookmarks.indexOf(e);-1!==t&&n.bookmarks.splice(t,1)})),o||u.transport.http.putJson("/userbook/preference/apps",n)}))];case 1:return t.sent(),[2]}}))}))},e.prototype.loadAppPrefs=function(e){return this.preferences.load(e,{})},e.prototype.saveAppPrefs=function(e){return this.preferences.save(e)},e.prototype.loadLanguage=function(){return this.preferences.load("language",{"default-domain":s.session.session.currentLanguage}).then((function(e){return e["default-domain"]}))},e.prototype.saveLanguage=function(e){return this.preferences.update("language",{"default-domain":e}).save("language")},e}();t.User=c},4506:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigurationFrameworkFactory=void 0;var r=n(2033),o=function(){function e(){}return e.instance=function(){return r.configure},e}();t.ConfigurationFrameworkFactory=o},5046:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractBusAgent=void 0;var r=n(4744),o=n(9255),u=n(609),i=function(){function e(t){this.handlerFor={comment:e.defaultHandler,copy:e.defaultHandler,create:e.defaultHandler,delete:e.defaultHandler,export:e.defaultHandler,initialize:e.defaultHandler,manage:e.defaultHandler,properties:e.defaultHandler,move:e.defaultHandler,open:e.defaultHandler,print:e.defaultHandler,publish:e.defaultHandler,search:e.defaultHandler,share:e.defaultHandler},this.managedResource=t,this.initialize()}return e.prototype.initialize=function(){for(var t in Object.values(u.ACTION))this.handlerFor[t]=e.defaultHandler;this.registerHandlers()},e.prototype.setHandler=function(e,t){o.BusFactory.instance.setAgentFor(this.managedResource,e,this),this.handlerFor[e]=t},e.prototype.getHandler=function(e){return this.handlerFor[e]},e.prototype.activate=function(e,t,n){var r=this;return Promise.resolve().then((function(){return r.getHandler(t).bind(r)(n)}))},e.defaultHandler=function(e){throw new Error(r.ERROR_CODE.NOT_SUPPORTED)},e}();t.AbstractBusAgent=i},9506:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AgentLoader=void 0;var r=n(609),o=n(6389),u=function(){function e(){this.http=new o.Http}return e.prototype.load=function(e){var t=r.appNameForResource[e];if("string"!=typeof t)throw new Error("The resource type "+e+" is not supported yet.");return this.http.loadScript(t+"/public/js/explorer.agent.js")},e}();t.AgentLoader=u},9255:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BusFactory=void 0;var r=n(609),o=n(424),u=n(7472),i=function(){function e(){this.agents={},this.comm=new u.Subject}return e.prototype.setAgentFor=function(e,t,n){this.getActionMapping(e)[t]=n},e.prototype.getAgentFor=function(e,t){return this.getActionMapping(e)[t]},e.prototype.publish=function(e,t,n){var r=this;return Promise.resolve().then((function(){var n;return null!==(n=r.getAgentFor(e,t))&&void 0!==n?n:o.explorer.requestAgentFor(e,t)})).then((function(o){var u=o.activate(e,t,n);return r.comm.next({res:e,action:t,input:n,output:u}),u}))},e.prototype.subscribe=function(e,t){return this.comm.asObservable().pipe(u.filter((function(n){return n.res===e&&n.action===t})))},e.prototype.getActionMapping=function(e){var t=this.agents[e];if(void 0===t){t={};for(var n=0,o=Object.values(r.ACTION);n<o.length;n++){t[o[n]]=null}this.agents[e]=t}return t},e}(),s=function(){function e(){}return Object.defineProperty(e,"instance",{get:function(){return this._instance=this._instance||new i},enumerable:!1,configurable:!0}),e}();t.BusFactory=s},8390:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExplorerContext=void 0;var r=n(7472),o=n(4744),u=n(609),i=function(){function e(e,t){this.latestResults=new r.Subject,this.context=null,this.bus=u.ExplorerFrameworkFactory.instance().getBus(),this.searchParameters={types:e,app:t,filters:{},pagination:{startIdx:0,pageSize:20}}}return e.prototype.clear=function(){this.searchParameters.filters={owner:!0,shared:!0,public:!0},this.searchParameters.pagination.startIdx=0,this.searchParameters.pagination.pageSize=20,this.context=null},e.prototype.isInitialized=function(){return null!==this.context},e.prototype.getContext=function(){if(null!==this.context)return this.context},e.prototype.getSearchParameters=function(){return this.searchParameters},e.prototype.duplicateSearchParameters=function(){return JSON.parse(JSON.stringify(this.searchParameters))},e.prototype.latestResources=function(){return this.latestResults.asObservable()},e.prototype.initialize=function(){var e=this,t=this.duplicateSearchParameters();return Promise.resolve().then((function(){return e.bus.publish(u.RESOURCE.FOLDER,u.ACTION.INITIALIZE,t)})).then((function(n){if(e.context=n,!e.context)throw new Error(o.ERROR_CODE.UNKNOWN);return e.latestResults.next({input:t,output:e.context}),e.context}))},e.prototype.getResources=function(){var e=this,t=this.duplicateSearchParameters();return this.bus.publish(u.RESOURCE.FOLDER,u.ACTION.SEARCH,t).then((function(n){var r=n;if(!r)throw new Error(o.ERROR_CODE.UNKNOWN);return e.latestResults.next({input:t,output:r}),r}))},e.prototype.getSubFolders=function(e){throw new Error("Method not implemented.")},e.prototype.createFolder=function(e,t,n){var r={app:this.searchParameters.app,name:n,parentId:t,type:e};return this.bus.publish(u.RESOURCE.FOLDER,u.ACTION.CREATE,r).then((function(e){var t=e;if(!t)throw new Error(o.ERROR_CODE.UNKNOWN);return t}))},e.prototype.updateFolder=function(e,t,n,r){var i={folderId:e,app:this.searchParameters.app,name:r,parentId:n,type:t};return this.bus.publish(u.RESOURCE.FOLDER,u.ACTION.UPD_PROPS,i).then((function(e){var t=e;if(!t)throw new Error(o.ERROR_CODE.UNKNOWN);return t}))},e.prototype.copy=function(e,t,n){var r={folderId:e,resourceIds:t,folderIds:n};return this.bus.publish(u.RESOURCE.FOLDER,u.ACTION.COPY,r).then((function(e){}))},e.prototype.move=function(e,t,n){var r={folderId:e,resourceIds:t,folderIds:n};return this.bus.publish(u.RESOURCE.FOLDER,u.ACTION.MOVE,r).then((function(e){}))},e.prototype.delete=function(e,t){var n={resourceIds:e,folderIds:t};return this.bus.publish(u.RESOURCE.FOLDER,u.ACTION.DELETE,n).then((function(e){}))},e.prototype.manageProperties=function(e,t){var n={resources:t};return this.bus.publish(e,u.ACTION.MANAGE,n).then((function(e){var t=e;if(!t)throw new Error(o.ERROR_CODE.UNKNOWN);return t}))},e.prototype.updateProperties=function(e,t,n){var r={resources:t,props:n};return this.bus.publish(e,u.ACTION.UPD_PROPS,r).then((function(e){var t=e;if(!t)throw new Error(o.ERROR_CODE.UNKNOWN);return t}))},e}();t.ExplorerContext=i},424:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.explorer=t.ExplorerFramework=void 0;var r=n(4744),o=n(9506),u=n(9255),i=n(8390),s=function(){function e(){this.agentLoader=new o.AgentLoader}return e.prototype.setAgentLoader=function(e){e&&(this.agentLoader=e)},e.prototype.requestAgentFor=function(e,t){var n=this;return this.agentLoader.load(e).then((function(){var o=n.getBus().getAgentFor(e,t);if(!o)throw new Error(r.ERROR_CODE.AGENT_NOT_FOUND);return o}))},e.prototype.createContext=function(e,t){return new i.ExplorerContext(e,t)},e.prototype.getBus=function(){return u.BusFactory.instance},e}();t.ExplorerFramework=s,t.explorer=new s},609:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PROP_FORMAT=t.PROP_TYPE=t.PROP_MODE=t.PROP_KEY=t.SORT_BY=t.SORT_ORDER=t.STRING_FILTER=t.BOOLEAN_FILTER=t.FOLDER=t.ACTION=t.appNameForResource=t.RESOURCE=t.ExplorerFrameworkFactory=void 0;var r=n(4744),o=n(424),u=function(){function e(){}return e.instance=function(){return o.explorer},e}();t.ExplorerFrameworkFactory=u,t.RESOURCE={FOLDER:"folder",BLOG:"blog",EXERCISE:"exercise"},t.appNameForResource={folder:r.APP.EXPLORER,blog:r.APP.BLOG,exercise:r.APP.EXERCIZER},t.ACTION={INITIALIZE:"initialize",SEARCH:"search",CREATE:"create",OPEN:"open",MANAGE:"manage",UPD_PROPS:"properties",COMMENT:"comment",DELETE:"delete",MOVE:"move",COPY:"copy",EXPORT:"export",SHARE:"share",PUBLISH:"publish",PRINT:"print"},t.FOLDER={BIN:"bin",DEFAULT:"default"},t.BOOLEAN_FILTER={OWNER:"owner",SHARED:"shared",PUBLIC:"public",FAVORITE:"favorite"},t.STRING_FILTER={},t.SORT_ORDER={ASC:"asc",DESC:"desc"},t.SORT_BY={NAME:"name",MODIFY_DATE:"modifiedAt",VIEWS:"views"},t.PROP_KEY={TITLE:"title",IMAGE:"image",COLOR:"color",DESCRIPTION:"description",URL:"url"},t.PROP_MODE={READONLY:"RO",READWRITE:"RW"},t.PROP_TYPE={TEXT:"text",NUMBER:"number",DATE:"date",IMAGE:"image"},t.PROP_FORMAT={PLAIN:"plain"}},4744:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.USER_PREFS=t.APP=t.ERROR_CODE=void 0,t.ERROR_CODE={SUCCESS:"0000",UNKNOWN:"0010",NOT_INITIALIZED:"0020",NOT_SUPPORTED:"0030",APP_NOT_FOUND:"0040",AGENT_NOT_FOUND:"0050",TRANSPORT_ERROR:"0060",TIME_OUT:"0070",MALFORMED_DATA:"0080"},t.APP={EXPLORER:"explorer",PORTAL:"portal",BLOG:"blog",EXERCIZER:"exercizer",TIMELINE:"timeline",CAS:"cas",VIDEO:"video"},t.USER_PREFS={APPS:"apps",WIDGETS:"widgets",LANGUAGE:"language",AUTH_CONNECTOR_ACCESSED:"authenticatedConnectorsAccessed",CURSUS:"cursus",INFOTIP:"infotip",RGPD_COOKIES:"rgpdCookies"}},9294:function(e,t,n){"use strict";var r,o,u=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||u(t,e,n)},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&u(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.RxJS=t.AbstractBusAgent=t.explorer=void 0,s(n(4744),t),s(n(609),t);var c=n(424);Object.defineProperty(t,"explorer",{enumerable:!0,get:function(){return c.explorer}});var l=n(5046);Object.defineProperty(t,"AbstractBusAgent",{enumerable:!0,get:function(){return l.AbstractBusAgent}}),s(n(1056),t),t.RxJS=a(n(7472)),s(n(6485),t),s(n(4506),t),s(n(5807),t),s(n(2869),t),s(n(6325),t),"undefined"!=typeof window&&(window.entcore=null!==(r=window.entcore)&&void 0!==r?r:{},window.entcore["ode-ts-client"]=null!==(o=window.entcore["ode-ts-client"])&&void 0!==o?o:e.exports)},1381:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.notify=t.Promisified=void 0;var r=n(7472),o="sessionReady",u="langReady",i="skinReady",s="overrideReady",a=function(){function e(){var e=this;this._promise=new Promise((function(t,n){e._resolution=t,e._rejection=n}))}return Object.defineProperty(e.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),e.prototype.resolve=function(e){this._resolution&&this._resolution(e)},e.prototype.reject=function(e){this._rejection&&this._rejection(e)},e}();t.Promisified=a;var c=function(){function e(){this.promises={},this.subject=new r.Subject}return e.prototype.asyncData=function(e){return void 0===this.promises[e]&&(this.promises[e]=new a),this.promises[e]},e.prototype.onSessionReady=function(){return this.asyncData(o)},e.prototype.onLangReady=function(){return this.asyncData(u)},e.prototype.onSkinReady=function(){return this.asyncData(i)},e.prototype.onOverridesReady=function(){return this.asyncData(s)},e.prototype.promisify=function(){return new a},e.prototype.events=function(){return this.subject},e}();t.notify=new c},1056:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EVENT_NAME=t.LAYER_NAME=t.NotifyFrameworkFactory=void 0;var r=n(1381),o=function(){function e(){}return e.instance=function(){return r.notify},e}();t.NotifyFrameworkFactory=o,t.LAYER_NAME={WIDGETS:"widgets",EXPLORER:"explorer"},t.EVENT_NAME={USERPREF_CHANGED:"userprefChanged",SEARCH_RESULTED:"searchResulted"}},5445:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.session=t.SessionFramework=void 0;var r=n(5817),o=function(){function e(){this.session=new r.Session}return e.prototype.initialize=function(){return this.session.initialize()},e}();t.SessionFramework=o,t.session=new o},5817:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Session=void 0;var r=n(2431),o=n(1381),u=n(2033),i=n(4506),s=r.transport.http,a=function(){function e(){this._me=null,this._currentLanguage="",this._notLoggedIn=!0}return Object.defineProperty(e.prototype,"currentLanguage",{get:function(){return this._currentLanguage},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"notLoggedIn",{get:function(){return this._notLoggedIn},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"description",{get:function(){return this._description},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"avatarUrl",{get:function(){var e=this.description.photo;e&&"no-avatar.jpg"!==e&&"no-avatar.svg"!==e||(e=i.ConfigurationFrameworkFactory.instance().Platform.theme.basePath+"/img/illustrations/no-avatar.svg");return e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"user",{get:function(){return this._me},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentApp",{get:function(){return u.configure.Platform.apps.currentApp},enumerable:!1,configurable:!0}),e.prototype.initialize=function(){var e=this;return s.get("/auth/oauth2/userinfo").then((function(t){return e.setCurrentModel(t),e._notLoggedIn?e.loadDefaultLanguage():e.loadUserLanguage()})).then((function(t){return e.setCurrentLanguage(t),e.loadDescription()})).then((function(){o.notify.onSessionReady().resolve(e._me)})).catch((function(e){o.notify.onSessionReady().reject(e)}))},e.prototype.setCurrentModel=function(e){this._me=e,this._notLoggedIn=!(e&&e.sessionMetadata&&e.sessionMetadata.userId)},e.prototype.hasWorkflow=function(e){var t;return void 0===e||-1!==(null===(t=this._me)||void 0===t?void 0:t.authorizedActions.findIndex((function(t){return t.name===e})))},e.prototype.hasRight=function(e,t){var n=this;if("owner"===t)return e.owner&&e.owner.userId===this._me.userId;var r=t.right||t,o=void 0!==e.shared.filter((function(e){return-1!==(n._me.groupsIds||[]).indexOf(e.groupId)||e.userId===n._me.userId})).find((function(e){return e[r]||e.manager})),u=!t.workflow||this.hasWorkflow(t.workflow);return o&&u},Object.defineProperty(e.prototype,"latestQuotaAndUsage",{get:function(){var e=this;return s.get("/workspace/quota/user/"+this._me.userId).then((function(t){return e._description&&(e._description.quota=t.quota,e._description.storage=t.storage),t})).catch((function(){return{quota:0,storage:0}}))},enumerable:!1,configurable:!0}),e.prototype.setCurrentLanguage=function(e){this._currentLanguage=e,o.notify.onLangReady().resolve(e)},e.prototype.loadDefaultLanguage=function(){var e=this;return s.get("/locale").then((function(e){return e.locale})).catch((function(){return e._currentLanguage}))},e.prototype.loadUserLanguage=function(){var e=this;return s.get("/userbook/preference/language").then((function(t){try{return JSON.parse(t.preference)["default-domain"]}catch(t){return e.loadDefaultLanguage()}})).catch((function(){return e.loadDefaultLanguage()}))},e.prototype.loadDescription=function(){var e=this;return Promise.all([s.get("/userbook/api/person",{requestName:"refreshAvatar"}),s.get("/directory/userbook/"+this._me.userId)]).then((function(t){return"ok"===t[0].status&&t[0].result&&t[0].result.length>0?e._description=t[0].result[0]:e._description={},e._description.type&&!e._description.profiles&&(e._description.profiles=e._description.type),Object.assign(e._description,t[1]),e._description}))},e.prototype.getEmailValidationInfos=function(){return s.get("/directory/user/mailstate")},e.prototype.checkEmail=function(e){return s.put("/directory/user/mailstate",{email:e})},e.prototype.tryEmailValidation=function(e){return s.post("/directory/user/mailstate",{key:e})},e.prototype.getMobileValidationInfos=function(){return s.get("/directory/user/mobilestate")},e.prototype.checkMobile=function(e){return s.put("/directory/user/mobilestate",{mobile:e})},e.prototype.tryMobileValidation=function(e){return s.post("/directory/user/mobilestate",{key:e})},e.prototype.getMfaInfos=function(){return s.get("/auth/user/mfa/code")},e.prototype.tryMfaCode=function(e){return s.post("/auth/user/mfa/code",{key:e})},e}();t.Session=a},5807:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WIDGET_POSITION=t.SessionFrameworkFactory=void 0;var r=n(5445),o=function(){function e(){}return e.instance=function(){return r.session},e}();t.SessionFrameworkFactory=o,t.WIDGET_POSITION={LEFT:"left",RIGHT:"right"}},2431:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transport=void 0;var r=n(6389),o=function(){function e(){this._http=new r.Http}return Object.defineProperty(e.prototype,"http",{get:function(){return this._http},enumerable:!1,configurable:!0}),e.prototype.newHttpInstance=function(e){return new r.Http(e)},e}();t.transport=new o},6389:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Http=void 0;var axios_1=__importDefault(__webpack_require__(9669)),__1=__webpack_require__(9294),globals_1=__webpack_require__(4744),loadedScripts={},Http=function(){function Http(e){this.axios=axios_1.default.create(e)}return Http.prototype.setCdn=function(e){e&&XMLHttpRequest&&!XMLHttpRequest.prototype.cdnUrl&&(XMLHttpRequest.prototype.cdnUrl=e,XMLHttpRequest.prototype.baseOpen=XMLHttpRequest.prototype.open,XMLHttpRequest.prototype.open=function(){var t=arguments[1];return t.startsWith("/infra/public")&&(arguments[1]=e+t),/^\/([^\/]*)\/public/.test(t)&&(arguments[1]=e+t),t.startsWith("/assets")&&(arguments[1]=e+t),"/conf/public"==t&&(arguments[1]=t),t.startsWith("http")&&(arguments[1]=t),this.baseOpen.apply(this,arguments)})},Http.prototype.toAxiosConfig=function(e){if(e){var t=Object.assign({},this.axios.defaults);return e.headers&&(t.headers=Object.assign({},this.axios.defaults.headers),Object.assign(t.headers,e.headers)),e.queryParams&&(t.params=Object.assign({},e.queryParams)),t}return this.axios.defaults},Http.prototype.toCdnUrl=function(e){var t=__1.ConfigurationFrameworkFactory.instance().Platform.cdnDomain;if((null==t?void 0:t.length)>0&&"/conf/public"!==e){var n=""+e;if(n.startsWith("/infra/public")||n.startsWith("/assets"))e=t+n;else/^\/([^\/]*)\/public/.test(n)&&(e=t+n)}return e},Http.prototype.mapAxiosError=function(e,t){return e.response?this._latestResponse=e.response:e.request?this._latestResponse={status:408,statusText:globals_1.ERROR_CODE.TIME_OUT}:this._latestResponse={status:500,statusText:globals_1.ERROR_CODE.UNKNOWN},!t||t.disableNotifications,this._latestResponse},Http.prototype.mapAxiosResponse=function(e,t){return this._latestResponse=e,e.data},Object.defineProperty(Http.prototype,"latestResponse",{get:function(){return this._latestResponse},enumerable:!1,configurable:!0}),Http.prototype.get=function(e,t){var n=this;return this.axios.get(this.toCdnUrl(e),this.toAxiosConfig(t)).then((function(e){return n.mapAxiosResponse(e,t)})).catch((function(e){return n.mapAxiosError(e,t)}))},Http.prototype.post=function(e,t,n){var r=this;return this.axios.post(e,t,this.toAxiosConfig(n)).then((function(e){return r.mapAxiosResponse(e,n)})).catch((function(e){return r.mapAxiosError(e,n)}))},Http.prototype.postFile=function(e,t,n){var r=this,o=this.toAxiosConfig(n);return o.headers["Content-Type"]&&delete o.headers["Content-Type"],this.axios.post(e,t,o).then((function(e){return r.mapAxiosResponse(e,n)})).catch((function(e){return r.mapAxiosError(e,n)}))},Http.prototype.postJson=function(e,t,n){var r=this;return this.toAxiosConfig().headers["Content-Type"]="application/json",this.axios.post(e,t,this.toAxiosConfig(n)).then((function(e){return r.mapAxiosResponse(e,n)})).catch((function(e){return r.mapAxiosError(e,n)}))},Http.prototype.put=function(e,t,n){var r=this;return this.axios.put(e,t,this.toAxiosConfig(n)).then((function(e){return r.mapAxiosResponse(e,n)})).catch((function(e){return r.mapAxiosError(e,n)}))},Http.prototype.putJson=function(e,t,n){var r=this,o=this.toAxiosConfig(n);return o.headers["Content-Type"]="application/json",this.axios.put(e,t,o).then((function(e){return r.mapAxiosResponse(e,n)})).catch((function(e){return r.mapAxiosError(e,n)}))},Http.prototype.delete=function(e,t){var n=this;return this.axios.delete(e,this.toAxiosConfig(t)).then((function(e){return n.mapAxiosResponse(e,t)})).catch((function(e){return n.mapAxiosError(e,t)}))},Http.prototype.deleteJson=function(e,t){var n=this;return this.axios.delete(e,t).then((function(e){return n.mapAxiosResponse(e)})).catch((function(e){return n.mapAxiosError(e)}))},Http.prototype.getScript=function(url,params,variableName){var _this=this,resultName=null!=variableName?variableName:"exports",p=this.toAxiosConfig(params);return p.headers.Accept="application/javascript",this.axios.get(this.toCdnUrl(url),p).then((function(e){return _this.mapAxiosResponse(e,params)})).then((function(r){try{var securedScript='"use strict";var '+resultName+";"+r+";return "+resultName+";",result=Function(securedScript)();return result}catch(e){var result=eval(r);return result}})).catch((function(e){throw _this.mapAxiosError(e,params),e}))},Http.prototype.loadScript=function(e,t){return loadedScripts[e]?Promise.resolve():this.getScript(e,t).then((function(t){loadedScripts[e]=!0}))},Http}();exports.Http=Http},6485:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransportFrameworkFactory=void 0;var r=n(2431),o=function(){function e(){}return e.instance=function(){return r.transport},e}();t.TransportFrameworkFactory=o},5748:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,u){function i(e){try{a(r.next(e))}catch(e){u(e)}}function s(e){try{a(r.throw(e))}catch(e){u(e)}}function a(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}a((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,u,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function s(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.widgets=t.WidgetFramework=void 0;var u=n(5807),i=n(1381),s=n(1056),a=n(2033),c=n(6934),l=["birthday","mood","calendar-widget","notes"],f=["agenda-widget","carnet-de-bord","my-apps","rss-widget","bookmark-widget","cursus-widget","maxicours-widget","school-widget"],p={"last-infos-widget":u.WIDGET_POSITION.LEFT,birthday:u.WIDGET_POSITION.LEFT,"calendar-widget":u.WIDGET_POSITION.RIGHT,"carnet-de-bord":u.WIDGET_POSITION.LEFT,"record-me":u.WIDGET_POSITION.RIGHT,mood:u.WIDGET_POSITION.LEFT,"my-apps":u.WIDGET_POSITION.RIGHT,notes:u.WIDGET_POSITION.RIGHT,"rss-widget":u.WIDGET_POSITION.LEFT,"bookmark-widget":u.WIDGET_POSITION.RIGHT,qwant:u.WIDGET_POSITION.RIGHT,"qwant-junior":u.WIDGET_POSITION.LEFT,"agenda-widget":u.WIDGET_POSITION.LEFT,"cursus-widget":u.WIDGET_POSITION.LEFT,"maxicours-widget":u.WIDGET_POSITION.RIGHT,"universalis-widget":u.WIDGET_POSITION.RIGHT,"briefme-widget":u.WIDGET_POSITION.LEFT,"school-widget":u.WIDGET_POSITION.LEFT},d={"school-widget":0,"my-apps":10,"record-me":15,"last-infos-widget":20,qwant:30,"qwant-junior":30,"universalis-widget":35,"agenda-widget":40,"bookmark-widget":50,"carnet-de-bord":60,"maxicours-widget":70,"cursus-widget":80,"briefme-widget":90,"rss-widget":100,mood:110,birthday:120,"calendar-widget":130,notes:140},h=function(){function e(){this._widgets=[],this._userPrefs={}}return e.prototype.initialize=function(e,t){var n=this;return this._initialized||(this._initialized=new i.Promisified,i.notify.onSessionReady().promise.then((function(e){var t;e&&e.widgets?(e.widgets.forEach((function(e){n._widgets.push(new v(e))})),n.loadUserPrefs().then((function(){var e;null===(e=n._initialized)||void 0===e||e.resolve()})).catch((function(e){var t;null===(t=n._initialized)||void 0===t||t.reject()}))):null===(t=n._initialized)||void 0===t||t.reject()}))),this._initialized.promise},Object.defineProperty(e.prototype,"list",{get:function(){return this._widgets},enumerable:!1,configurable:!0}),e.prototype.lookup=function(e){return this._widgets.find((function(t){return t.platformConf.name===e}))},e.prototype.lookupDefaultPosition=function(e){return p[e]},Object.defineProperty(e.prototype,"userPrefs",{get:function(){return this._userPrefs},enumerable:!1,configurable:!0}),e.prototype.loadUserPrefs=function(){return r(this,void 0,void 0,(function(){var e=this;return o(this,(function(t){switch(t.label){case 0:return[4,a.configure.User.preferences.load("widgets",{}).then((function(t){return e.applyUserPrefs(t)}))];case 1:return t.sent(),[2]}}))}))},e.prototype.saveUserPrefs=function(){return a.configure.User.preferences.update("widgets",this._userPrefs).save("widgets").then((function(){i.notify.events().next({name:s.EVENT_NAME.USERPREF_CHANGED,layer:s.LAYER_NAME.WIDGETS})}))},e.prototype.applyUserPrefs=function(e){return r(this,void 0,void 0,(function(){var t,n,r=this;return o(this,(function(o){return this._userPrefs=null!=e?e:this._userPrefs,t=a.configure.Platform.theme,n=[],t.listSkins().then((function(e){var o,u="panda"===(null===(o=e.find((function(e){return e.child===t.skin})))||void 0===o?void 0:o.parent)?f:l;r._widgets=r._widgets.filter((function(e,t){var o,i,s=e.platformConf.name;return-1===u.indexOf(s)&&(r._userPrefs[s]||(r._userPrefs[s]={index:null!==(o=d[s])&&void 0!==o?o:999,show:!0,position:e.platformConf.position}),e.platformConf.mandatory&&(r._userPrefs[s].show=!0,r._userPrefs[s].index=null!==(i=d[s])&&void 0!==i?i:999),e.platformConf.i18n&&n.push(e.platformConf.i18n),e.applyUserPref(r._userPrefs[s]),!0)}));var i=new c.Idiom;r._widgets=r._widgets.sort((function(e,t){var n=i.translate("timeline.settings."+e.platformConf.name).toLowerCase(),r=i.translate("timeline.settings."+t.platformConf.name).toLowerCase();return n<r?-1:n>r?1:0}))})),[2]}))}))},e}();t.WidgetFramework=h;var v=function(){function e(e){this._platformConf=e,this._schoolConf={},this._userPref=null}return Object.defineProperty(e.prototype,"platformConf",{get:function(){return this._platformConf},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schoolConf",{get:function(){return this._schoolConf},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"userPref",{get:function(){return this._userPref},enumerable:!1,configurable:!0}),e.prototype.applyUserPref=function(e){var n,r;this._userPref=e,this._userPref.position=null!==(r=null!==(n=this._userPref.position)&&void 0!==n?n:t.widgets.lookupDefaultPosition(this._platformConf.name))&&void 0!==r?r:"left"},e}();t.widgets=new h},4962:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LastInfosWidget=void 0;var r=n(2431),o=function(){function e(){}return e.prototype.loadInfos=function(e){return r.transport.http.get("/actualites/infos/last/"+e)},e.prototype.getMaxResults=function(){return r.transport.http.get("/userbook/preference/maxInfos").then((function(e){return e.preference?parseInt(e.preference):4}))},e.prototype.setMaxResults=function(e){return r.transport.http.putJson("/userbook/preference/maxInfos",'"'+e+'"')},e}();t.LastInfosWidget=o},2869:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetFrameworkFactory=t.WIDGET_NAME=void 0;var u=n(5748);t.WIDGET_NAME={LAST_INFOS:"last-infos-widget",BIRTHDAY:"birthday",CALENDAR:"calendar-widget",CARNET:"carnet-de-bord",RECORD:"record-me",MOOD:"mood",MY_APPS:"my-apps",NOTES:"notes",RSS:"rss-widget",BOOKMARK:"bookmark-widget",QWANT:"qwant",QWANT_JUNIOR:"qwant-junior",AGENDA:"agenda-widget",CURSUS:"cursus-widget",MAXICOURS:"maxicours-widget",UNIVERSALIS:"universalis-widget",BRIEFME:"briefme-widget",SCHOOL:"school-widget"};var i=function(){function e(){}return e.instance=function(){return u.widgets},e}();t.WidgetFrameworkFactory=i,o(n(4962),t)}},__webpack_module_cache__={};function __webpack_require__(e){if(__webpack_module_cache__[e])return __webpack_module_cache__[e].exports;var t=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(t.exports,t,t.exports,__webpack_require__),t.exports}__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__=__webpack_require__(9294)})();
17
17
  //# sourceMappingURL=ode-ts-client.js.map