From 9d4254bbce06b769413278f89d6538a0cf9f3765 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=CC=81=20Hoffmann?= Date: Wed, 12 Oct 2022 09:20:02 +0200 Subject: [PATCH 1/2] TASK: Remove check to show node tree for users with node access restrictions --- Neos.Ui/custom-node-tree/src/domain/NodeTreeQuery.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Neos.Ui/custom-node-tree/src/domain/NodeTreeQuery.ts b/Neos.Ui/custom-node-tree/src/domain/NodeTreeQuery.ts index 3d1c495..b944c7c 100644 --- a/Neos.Ui/custom-node-tree/src/domain/NodeTreeQuery.ts +++ b/Neos.Ui/custom-node-tree/src/domain/NodeTreeQuery.ts @@ -53,11 +53,7 @@ export function findChildNodesForNode( state: INodeTreeState, node: INodePartialForTree ): INodePartialForTree[] { - if (!isNodeFullyLoaded(state, node)) { - return []; - } - return node.children.map( child => findNodeByContextPath(state, child.contextPath) ).filter(result => result !== null) as INodePartialForTree[]; -} \ No newline at end of file +} From 7c74143e32451f4fcc1fbba54d0a0160090f656a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=CC=81=20Hoffmann?= Date: Wed, 22 Nov 2023 15:09:11 +0100 Subject: [PATCH 2/2] TASK: build after rebase --- Resources/Public/JavaScript/Plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/Public/JavaScript/Plugin.js b/Resources/Public/JavaScript/Plugin.js index b347bcf..46fc03d 100644 --- a/Resources/Public/JavaScript/Plugin.js +++ b/Resources/Public/JavaScript/Plugin.js @@ -1,3 +1,3 @@ /*! For license information please see Plugin.js.LICENSE.txt */ -!function(W){var V={};function __webpack_require__(G){if(V[G])return V[G].exports;var ie=V[G]={i:G,l:!1,exports:{}};return W[G].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}__webpack_require__.m=W,__webpack_require__.c=V,__webpack_require__.d=function(W,V,G){__webpack_require__.o(W,V)||Object.defineProperty(W,V,{enumerable:!0,get:G})},__webpack_require__.r=function(W){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(W,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(W,"__esModule",{value:!0})},__webpack_require__.t=function(W,V){if(1&V&&(W=__webpack_require__(W)),8&V)return W;if(4&V&&"object"==typeof W&&W&&W.__esModule)return W;var G=Object.create(null);if(__webpack_require__.r(G),Object.defineProperty(G,"default",{enumerable:!0,value:W}),2&V&&"string"!=typeof W)for(var ie in W)__webpack_require__.d(G,ie,function(V){return W[V]}.bind(null,ie));return G},__webpack_require__.n=function(W){var V=W&&W.__esModule?function getDefault(){return W.default}:function getModuleExports(){return W};return __webpack_require__.d(V,"a",V),V},__webpack_require__.o=function(W,V){return Object.prototype.hasOwnProperty.call(W,V)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=136)}([function(W,V,G){"use strict";var ie=function _interopRequireDefault(W){return W&&W.__esModule?W:{default:W}}(G(46));W.exports=(0,ie.default)("vendor")().React},function(W,V,G){"use strict";G.r(V),G.d(V,"__extends",(function(){return __extends})),G.d(V,"__assign",(function(){return __assign})),G.d(V,"__rest",(function(){return __rest})),G.d(V,"__decorate",(function(){return __decorate})),G.d(V,"__param",(function(){return __param})),G.d(V,"__metadata",(function(){return __metadata})),G.d(V,"__awaiter",(function(){return __awaiter})),G.d(V,"__generator",(function(){return __generator})),G.d(V,"__createBinding",(function(){return __createBinding})),G.d(V,"__exportStar",(function(){return __exportStar})),G.d(V,"__values",(function(){return __values})),G.d(V,"__read",(function(){return __read})),G.d(V,"__spread",(function(){return __spread})),G.d(V,"__spreadArrays",(function(){return __spreadArrays})),G.d(V,"__await",(function(){return __await})),G.d(V,"__asyncGenerator",(function(){return __asyncGenerator})),G.d(V,"__asyncDelegator",(function(){return __asyncDelegator})),G.d(V,"__asyncValues",(function(){return __asyncValues})),G.d(V,"__makeTemplateObject",(function(){return __makeTemplateObject})),G.d(V,"__importStar",(function(){return __importStar})),G.d(V,"__importDefault",(function(){return __importDefault})),G.d(V,"__classPrivateFieldGet",(function(){return __classPrivateFieldGet})),G.d(V,"__classPrivateFieldSet",(function(){return __classPrivateFieldSet}));var extendStatics=function(W,V){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,V){W.__proto__=V}||function(W,V){for(var G in V)V.hasOwnProperty(G)&&(W[G]=V[G])})(W,V)};function __extends(W,V){function __(){this.constructor=W}extendStatics(W,V),W.prototype=null===V?Object.create(V):(__.prototype=V.prototype,new __)}var __assign=function(){return(__assign=Object.assign||function __assign(W){for(var V,G=1,ie=arguments.length;G=0;se--)(oe=W[se])&&(ae=(ue<3?oe(ae):ue>3?oe(V,G,ae):oe(V,G))||ae);return ue>3&&ae&&Object.defineProperty(V,G,ae),ae}function __param(W,V){return function(G,ie){V(G,ie,W)}}function __metadata(W,V){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(W,V)}function __awaiter(W,V,G,ie){return new(G||(G=Promise))((function(oe,ue){function fulfilled(W){try{step(ie.next(W))}catch(W){ue(W)}}function rejected(W){try{step(ie.throw(W))}catch(W){ue(W)}}function step(W){W.done?oe(W.value):function adopt(W){return W instanceof G?W:new G((function(V){V(W)}))}(W.value).then(fulfilled,rejected)}step((ie=ie.apply(W,V||[])).next())}))}function __generator(W,V){var G,ie,oe,ue,ae={label:0,sent:function(){if(1&oe[0])throw oe[1];return oe[1]},trys:[],ops:[]};return ue={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ue[Symbol.iterator]=function(){return this}),ue;function verb(ue){return function(se){return function step(ue){if(G)throw new TypeError("Generator is already executing.");for(;ae;)try{if(G=1,ie&&(oe=2&ue[0]?ie.return:ue[0]?ie.throw||((oe=ie.return)&&oe.call(ie),0):ie.next)&&!(oe=oe.call(ie,ue[1])).done)return oe;switch(ie=0,oe&&(ue=[2&ue[0],oe.value]),ue[0]){case 0:case 1:oe=ue;break;case 4:return ae.label++,{value:ue[1],done:!1};case 5:ae.label++,ie=ue[1],ue=[0];continue;case 7:ue=ae.ops.pop(),ae.trys.pop();continue;default:if(!(oe=ae.trys,(oe=oe.length>0&&oe[oe.length-1])||6!==ue[0]&&2!==ue[0])){ae=0;continue}if(3===ue[0]&&(!oe||ue[1]>oe[0]&&ue[1]=W.length&&(W=void 0),{value:W&&W[ie++],done:!W}}};throw new TypeError(V?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(W,V){var G="function"==typeof Symbol&&W[Symbol.iterator];if(!G)return W;var ie,oe,ue=G.call(W),ae=[];try{for(;(void 0===V||V-- >0)&&!(ie=ue.next()).done;)ae.push(ie.value)}catch(W){oe={error:W}}finally{try{ie&&!ie.done&&(G=ue.return)&&G.call(ue)}finally{if(oe)throw oe.error}}return ae}function __spread(){for(var W=[],V=0;V1||resume(W,V)}))})}function resume(W,V){try{!function step(W){W.value instanceof __await?Promise.resolve(W.value.v).then(fulfill,reject):settle(ue[0][2],W)}(oe[W](V))}catch(W){settle(ue[0][3],W)}}function fulfill(W){resume("next",W)}function reject(W){resume("throw",W)}function settle(W,V){W(V),ue.shift(),ue.length&&resume(ue[0][0],ue[0][1])}}function __asyncDelegator(W){var V,G;return V={},verb("next"),verb("throw",(function(W){throw W})),verb("return"),V[Symbol.iterator]=function(){return this},V;function verb(ie,oe){V[ie]=W[ie]?function(V){return(G=!G)?{value:__await(W[ie](V)),done:"return"===ie}:oe?oe(V):V}:oe}}function __asyncValues(W){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var V,G=W[Symbol.asyncIterator];return G?G.call(W):(W=__values(W),V={},verb("next"),verb("throw"),verb("return"),V[Symbol.asyncIterator]=function(){return this},V);function verb(G){V[G]=W[G]&&function(V){return new Promise((function(ie,oe){(function settle(W,V,G,ie){Promise.resolve(ie).then((function(V){W({value:V,done:G})}),V)})(ie,oe,(V=W[G](V)).done,V.value)}))}}}function __makeTemplateObject(W,V){return Object.defineProperty?Object.defineProperty(W,"raw",{value:V}):W.raw=V,W}function __importStar(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)Object.hasOwnProperty.call(W,G)&&(V[G]=W[G]);return V.default=W,V}function __importDefault(W){return W&&W.__esModule?W:{default:W}}function __classPrivateFieldGet(W,V){if(!V.has(W))throw new TypeError("attempted to get private field on non-instance");return V.get(W)}function __classPrivateFieldSet(W,V,G){if(!V.has(W))throw new TypeError("attempted to set private field on non-instance");return V.set(W,G),G}},function(W,V,G){"use strict";G.d(V,"a",(function(){return pe}));var ie=G(1),oe=G(29),ue=G(66),ae=G(6),se=G(51),de=G(19),le=G(41),pe=function(W){function Subscriber(V,G,ie){var oe=W.call(this)||this;switch(oe.syncErrorValue=null,oe.syncErrorThrown=!1,oe.syncErrorThrowable=!1,oe.isStopped=!1,arguments.length){case 0:oe.destination=ue.a;break;case 1:if(!V){oe.destination=ue.a;break}if("object"==typeof V){V instanceof Subscriber?(oe.syncErrorThrowable=V.syncErrorThrowable,oe.destination=V,V.add(oe)):(oe.syncErrorThrowable=!0,oe.destination=new he(oe,V));break}default:oe.syncErrorThrowable=!0,oe.destination=new he(oe,V,G,ie)}return oe}return ie.__extends(Subscriber,W),Subscriber.prototype[se.a]=function(){return this},Subscriber.create=function(W,V,G){var ie=new Subscriber(W,V,G);return ie.syncErrorThrowable=!1,ie},Subscriber.prototype.next=function(W){this.isStopped||this._next(W)},Subscriber.prototype.error=function(W){this.isStopped||(this.isStopped=!0,this._error(W))},Subscriber.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},Subscriber.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,W.prototype.unsubscribe.call(this))},Subscriber.prototype._next=function(W){this.destination.next(W)},Subscriber.prototype._error=function(W){this.destination.error(W),this.unsubscribe()},Subscriber.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},Subscriber.prototype._unsubscribeAndRecycle=function(){var W=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=W,this},Subscriber}(ae.a),he=function(W){function SafeSubscriber(V,G,ie,ae){var se,de=W.call(this)||this;de._parentSubscriber=V;var le=de;return Object(oe.a)(G)?se=G:G&&(se=G.next,ie=G.error,ae=G.complete,G!==ue.a&&(le=Object.create(G),Object(oe.a)(le.unsubscribe)&&de.add(le.unsubscribe.bind(le)),le.unsubscribe=de.unsubscribe.bind(de))),de._context=le,de._next=se,de._error=ie,de._complete=ae,de}return ie.__extends(SafeSubscriber,W),SafeSubscriber.prototype.next=function(W){if(!this.isStopped&&this._next){var V=this._parentSubscriber;de.a.useDeprecatedSynchronousErrorHandling&&V.syncErrorThrowable?this.__tryOrSetError(V,this._next,W)&&this.unsubscribe():this.__tryOrUnsub(this._next,W)}},SafeSubscriber.prototype.error=function(W){if(!this.isStopped){var V=this._parentSubscriber,G=de.a.useDeprecatedSynchronousErrorHandling;if(this._error)G&&V.syncErrorThrowable?(this.__tryOrSetError(V,this._error,W),this.unsubscribe()):(this.__tryOrUnsub(this._error,W),this.unsubscribe());else if(V.syncErrorThrowable)G?(V.syncErrorValue=W,V.syncErrorThrown=!0):Object(le.a)(W),this.unsubscribe();else{if(this.unsubscribe(),G)throw W;Object(le.a)(W)}}},SafeSubscriber.prototype.complete=function(){var W=this;if(!this.isStopped){var V=this._parentSubscriber;if(this._complete){var wrappedComplete=function(){return W._complete.call(W._context)};de.a.useDeprecatedSynchronousErrorHandling&&V.syncErrorThrowable?(this.__tryOrSetError(V,wrappedComplete),this.unsubscribe()):(this.__tryOrUnsub(wrappedComplete),this.unsubscribe())}else this.unsubscribe()}},SafeSubscriber.prototype.__tryOrUnsub=function(W,V){try{W.call(this._context,V)}catch(W){if(this.unsubscribe(),de.a.useDeprecatedSynchronousErrorHandling)throw W;Object(le.a)(W)}},SafeSubscriber.prototype.__tryOrSetError=function(W,V,G){if(!de.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{V.call(this._context,G)}catch(V){return de.a.useDeprecatedSynchronousErrorHandling?(W.syncErrorValue=V,W.syncErrorThrown=!0,!0):(Object(le.a)(V),!0)}return!1},SafeSubscriber.prototype._unsubscribe=function(){var W=this._parentSubscriber;this._context=null,this._parentSubscriber=null,W.unsubscribe()},SafeSubscriber}(pe)},function(W,V,G){"use strict";G.d(V,"a",(function(){return se})),G.d(V,"b",(function(){return de})),G.d(V,"c",(function(){return innerSubscribe}));var ie=G(1),oe=G(2),ue=G(4),ae=G(40),se=function(W){function SimpleInnerSubscriber(V){var G=W.call(this)||this;return G.parent=V,G}return ie.__extends(SimpleInnerSubscriber,W),SimpleInnerSubscriber.prototype._next=function(W){this.parent.notifyNext(W)},SimpleInnerSubscriber.prototype._error=function(W){this.parent.notifyError(W),this.unsubscribe()},SimpleInnerSubscriber.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},SimpleInnerSubscriber}(oe.a),de=(oe.a,function(W){function SimpleOuterSubscriber(){return null!==W&&W.apply(this,arguments)||this}return ie.__extends(SimpleOuterSubscriber,W),SimpleOuterSubscriber.prototype.notifyNext=function(W){this.destination.next(W)},SimpleOuterSubscriber.prototype.notifyError=function(W){this.destination.error(W)},SimpleOuterSubscriber.prototype.notifyComplete=function(){this.destination.complete()},SimpleOuterSubscriber}(oe.a));oe.a;function innerSubscribe(W,V){if(!V.closed){if(W instanceof ue.a)return W.subscribe(V);var G;try{G=Object(ae.a)(W)(V)}catch(W){V.error(W)}return G}}},function(W,V,G){"use strict";G.d(V,"a",(function(){return pe}));var ie=G(64),oe=G(2),ue=G(51),ae=G(66);var se=G(26),de=G(49),le=G(19),pe=function(){function Observable(W){this._isScalar=!1,W&&(this._subscribe=W)}return Observable.prototype.lift=function(W){var V=new Observable;return V.source=this,V.operator=W,V},Observable.prototype.subscribe=function(W,V,G){var ie=this.operator,se=function toSubscriber(W,V,G){if(W){if(W instanceof oe.a)return W;if(W[ue.a])return W[ue.a]()}return W||V||G?new oe.a(W,V,G):new oe.a(ae.a)}(W,V,G);if(ie?se.add(ie.call(se,this.source)):se.add(this.source||le.a.useDeprecatedSynchronousErrorHandling&&!se.syncErrorThrowable?this._subscribe(se):this._trySubscribe(se)),le.a.useDeprecatedSynchronousErrorHandling&&se.syncErrorThrowable&&(se.syncErrorThrowable=!1,se.syncErrorThrown))throw se.syncErrorValue;return se},Observable.prototype._trySubscribe=function(W){try{return this._subscribe(W)}catch(V){le.a.useDeprecatedSynchronousErrorHandling&&(W.syncErrorThrown=!0,W.syncErrorValue=V),Object(ie.a)(W)?W.error(V):console.warn(V)}},Observable.prototype.forEach=function(W,V){var G=this;return new(V=getPromiseCtor(V))((function(V,ie){var oe;oe=G.subscribe((function(V){try{W(V)}catch(W){ie(W),oe&&oe.unsubscribe()}}),ie,V)}))},Observable.prototype._subscribe=function(W){var V=this.source;return V&&V.subscribe(W)},Observable.prototype[se.a]=function(){return this},Observable.prototype.pipe=function(){for(var W=[],V=0;V=0;se--)(oe=W[se])&&(ae=(ue<3?oe(ae):ue>3?oe(V,G,ae):oe(V,G))||ae);return ue>3&&ae&&Object.defineProperty(V,G,ae),ae}function __param(W,V){return function(G,ie){V(G,ie,W)}}function __metadata(W,V){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(W,V)}function __awaiter(W,V,G,ie){return new(G||(G=Promise))((function(oe,ue){function fulfilled(W){try{step(ie.next(W))}catch(W){ue(W)}}function rejected(W){try{step(ie.throw(W))}catch(W){ue(W)}}function step(W){W.done?oe(W.value):function adopt(W){return W instanceof G?W:new G((function(V){V(W)}))}(W.value).then(fulfilled,rejected)}step((ie=ie.apply(W,V||[])).next())}))}function __generator(W,V){var G,ie,oe,ue,ae={label:0,sent:function(){if(1&oe[0])throw oe[1];return oe[1]},trys:[],ops:[]};return ue={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ue[Symbol.iterator]=function(){return this}),ue;function verb(ue){return function(se){return function step(ue){if(G)throw new TypeError("Generator is already executing.");for(;ae;)try{if(G=1,ie&&(oe=2&ue[0]?ie.return:ue[0]?ie.throw||((oe=ie.return)&&oe.call(ie),0):ie.next)&&!(oe=oe.call(ie,ue[1])).done)return oe;switch(ie=0,oe&&(ue=[2&ue[0],oe.value]),ue[0]){case 0:case 1:oe=ue;break;case 4:return ae.label++,{value:ue[1],done:!1};case 5:ae.label++,ie=ue[1],ue=[0];continue;case 7:ue=ae.ops.pop(),ae.trys.pop();continue;default:if(!(oe=ae.trys,(oe=oe.length>0&&oe[oe.length-1])||6!==ue[0]&&2!==ue[0])){ae=0;continue}if(3===ue[0]&&(!oe||ue[1]>oe[0]&&ue[1]=W.length&&(W=void 0),{value:W&&W[ie++],done:!W}}};throw new TypeError(V?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(W,V){var G="function"==typeof Symbol&&W[Symbol.iterator];if(!G)return W;var ie,oe,ue=G.call(W),ae=[];try{for(;(void 0===V||V-- >0)&&!(ie=ue.next()).done;)ae.push(ie.value)}catch(W){oe={error:W}}finally{try{ie&&!ie.done&&(G=ue.return)&&G.call(ue)}finally{if(oe)throw oe.error}}return ae}function __spread(){for(var W=[],V=0;V1||resume(W,V)}))})}function resume(W,V){try{!function step(W){W.value instanceof __await?Promise.resolve(W.value.v).then(fulfill,reject):settle(ue[0][2],W)}(oe[W](V))}catch(W){settle(ue[0][3],W)}}function fulfill(W){resume("next",W)}function reject(W){resume("throw",W)}function settle(W,V){W(V),ue.shift(),ue.length&&resume(ue[0][0],ue[0][1])}}function __asyncDelegator(W){var V,G;return V={},verb("next"),verb("throw",(function(W){throw W})),verb("return"),V[Symbol.iterator]=function(){return this},V;function verb(ie,oe){V[ie]=W[ie]?function(V){return(G=!G)?{value:__await(W[ie](V)),done:"return"===ie}:oe?oe(V):V}:oe}}function __asyncValues(W){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var V,G=W[Symbol.asyncIterator];return G?G.call(W):(W=__values(W),V={},verb("next"),verb("throw"),verb("return"),V[Symbol.asyncIterator]=function(){return this},V);function verb(G){V[G]=W[G]&&function(V){return new Promise((function(ie,oe){(function settle(W,V,G,ie){Promise.resolve(ie).then((function(V){W({value:V,done:G})}),V)})(ie,oe,(V=W[G](V)).done,V.value)}))}}}function __makeTemplateObject(W,V){return Object.defineProperty?Object.defineProperty(W,"raw",{value:V}):W.raw=V,W}var oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V};function __importStar(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V}function __importDefault(W){return W&&W.__esModule?W:{default:W}}function __classPrivateFieldGet(W,V,G,ie){if("a"===G&&!ie)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof V?W!==V||!ie:!V.has(W))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===G?ie:"a"===G?ie.call(W):ie?ie.value:V.get(W)}function __classPrivateFieldSet(W,V,G,ie,oe){if("m"===ie)throw new TypeError("Private method is not writable");if("a"===ie&&!oe)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof V?W!==V||!oe:!V.has(W))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===ie?oe.call(W,G):oe?oe.value=G:V.set(W,G),G}},function(W,V,G){"use strict";G.d(V,"a",(function(){return se}));var ie=G(9),oe=G(63),ue=G(29),ae=G(52),se=function(){function Subscription(W){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,W&&(this._ctorUnsubscribe=!0,this._unsubscribe=W)}var W;return Subscription.prototype.unsubscribe=function(){var W;if(!this.closed){var V=this._parentOrParents,G=this._ctorUnsubscribe,se=this._unsubscribe,de=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,V instanceof Subscription)V.remove(this);else if(null!==V)for(var le=0;le1?V-1:0),ie=1;ie0?" Args: "+G.join(", "):""))}var Re=function(){function e(W){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=W}var W=e.prototype;return W.indexOfGroup=function(W){for(var V=0,G=0;G=this.groupSizes.length){for(var G=this.groupSizes,ie=G.length,oe=ie;W>=oe;)(oe<<=1)<0&&j(16,""+W);this.groupSizes=new Uint32Array(oe),this.groupSizes.set(G),this.length=oe;for(var ue=ie;ue=this.length||0===this.groupSizes[W])return V;for(var G=this.groupSizes[W],ie=this.indexOfGroup(W),oe=ie+G,ue=ie;ue=0;G--){var ie=V[G];if(ie&&1===ie.nodeType&&ie.hasAttribute(we))return ie}}(G),ue=void 0!==oe?oe.nextSibling:null;ie.setAttribute(we,"active"),ie.setAttribute("data-styled-version","5.3.0");var ae=q();return ae&&ie.setAttribute("nonce",ae),G.insertBefore(ie,ue),ie},Ke=function(){function e(W){var V=this.element=H(W);V.appendChild(document.createTextNode("")),this.sheet=function(W){if(W.sheet)return W.sheet;for(var V=document.styleSheets,G=0,ie=V.length;G=0){var G=document.createTextNode(V),ie=this.nodes[W];return this.element.insertBefore(G,ie||null),this.length++,!0}return!1},W.deleteRule=function(W){this.element.removeChild(this.nodes[W]),this.length--},W.getRule=function(W){return W0&&(le+=W+",")})),ie+=""+se+de+'{content:"'+le+'"}/*!sc*/\n'}}}return ie}(this)},e}(),nt=/(a)(d)/gi,Q=function(W){return String.fromCharCode(W+(W>25?39:97))};function ee(W){var V,G="";for(V=Math.abs(W);V>52;V=V/52|0)G=Q(V%52)+G;return(Q(V%52)+G).replace(nt,"$1-$2")}var te=function(W,V){for(var G=V.length;G;)W=33*W^V.charCodeAt(--G);return W},ne=function(W){return te(5381,W)};function re(W){for(var V=0;V>>0);if(!V.hasNameForId(ie,ae)){var se=G(ue,"."+ae,void 0,ie);V.insertRules(ie,ae,se)}oe.push(ae),this.staticRulesId=ae}else{for(var de=this.rules.length,le=te(this.baseHash,G.hash),pe="",he=0;he>>0);if(!V.hasNameForId(ie,we)){var Ce=G(pe,"."+we,void 0,ie);V.insertRules(ie,we,Ce)}oe.push(we)}}return oe.join(" ")},e}(),ut=/^\s*\/\/.*$/gm,at=[":","[",".","#"];function ce(W){var V,G,ie,oe,ue=void 0===W?Se:W,ae=ue.options,se=void 0===ae?Se:ae,le=ue.plugins,pe=void 0===le?ge:le,he=new de.a(se),ve=[],we=function(W){function t(V){if(V)try{W(V+"}")}catch(W){}}return function(V,G,ie,oe,ue,ae,se,de,le,pe){switch(V){case 1:if(0===le&&64===G.charCodeAt(0))return W(G+";"),"";break;case 2:if(0===de)return G+"/*|*/";break;case 3:switch(de){case 102:case 112:return W(ie[0]+G),"";default:return G+(0===pe?"/*|*/":"")}case-2:G.split("/*|*/}").forEach(t)}}}((function(W){ve.push(W)})),f=function(W,ie,ue){return 0===ie&&-1!==at.indexOf(ue[G.length])||ue.match(oe)?W:"."+V};function m(W,ue,ae,se){void 0===se&&(se="&");var de=W.replace(ut,""),le=ue&&ae?ae+" "+ue+" { "+de+" }":de;return V=se,G=ue,ie=new RegExp("\\"+G+"\\b","g"),oe=new RegExp("(\\"+G+"\\b){2,}"),he(ae||!ue?"":ue,le)}return he.use([].concat(pe,[function(W,V,oe){2===W&&oe.length&&oe[0].lastIndexOf(G)>0&&(oe[0]=oe[0].replace(ie,f))},we,function(W){if(-2===W){var V=ve;return ve=[],V}}])),m.hash=pe.length?pe.reduce((function(W,V){return V.name||j(15),te(W,V.name)}),5381).toString():"",m}var st=ue.a.createContext(),ct=st.Consumer,dt=ue.a.createContext(),lt=(dt.Consumer,new rt),ft=ce();function fe(){return Object(oe.useContext)(st)||lt}function me(){return Object(oe.useContext)(dt)||ft}function ye(W){var V=Object(oe.useState)(W.stylisPlugins),G=V[0],ie=V[1],ae=fe(),de=Object(oe.useMemo)((function(){var V=ae;return W.sheet?V=W.sheet:W.target&&(V=V.reconstructWithOptions({target:W.target},!1)),W.disableCSSOMInjection&&(V=V.reconstructWithOptions({useCSSOMInjection:!1})),V}),[W.disableCSSOMInjection,W.sheet,W.target]),le=Object(oe.useMemo)((function(){return ce({options:{prefix:!W.disableVendorPrefixes},plugins:G})}),[W.disableVendorPrefixes,G]);return Object(oe.useEffect)((function(){se()(G,W.stylisPlugins)||ie(W.stylisPlugins)}),[W.stylisPlugins]),ue.a.createElement(st.Provider,{value:de},ue.a.createElement(dt.Provider,{value:le},W.children))}var pt=function(){function e(W,V){var G=this;this.inject=function(W,V){void 0===V&&(V=ft);var ie=G.name+V.hash;W.hasNameForId(G.id,ie)||W.insertRules(G.id,ie,V(G.rules,ie,"@keyframes"))},this.toString=function(){return j(12,String(G.name))},this.name=W,this.id="sc-keyframes-"+W,this.rules=V}return e.prototype.getName=function(W){return void 0===W&&(W=ft),this.name+W.hash},e}(),ht=/([A-Z])/,bt=/([A-Z])/g,yt=/^ms-/,Ee=function(W){return"-"+W.toLowerCase()};function be(W){return ht.test(W)?W.replace(bt,Ee).replace(yt,"-ms-"):W}var _e=function(W){return null==W||!1===W||""===W};function Ne(W,V,G,ie){if(Array.isArray(W)){for(var oe,ue=[],ae=0,se=W.length;ae1?V-1:0),ie=1;ie?@[\\\]^`{|}~-]+/g,mt=/(^-|-$)/g;function je(W){return W.replace(vt,"-").replace(mt,"")}var Te=function(W){return ee(ne(W)>>>0)};function ke(W){return"string"==typeof W&&!0}var xe=function(W){return"function"==typeof W||"object"==typeof W&&null!==W&&!Array.isArray(W)},Ve=function(W){return"__proto__"!==W&&"constructor"!==W&&"prototype"!==W};function Be(W,V,G){var ie=W[G];xe(V)&&xe(ie)?Me(ie,V):W[G]=V}function Me(W){for(var V=arguments.length,G=new Array(V>1?V-1:0),ie=1;ie=0||(oe[G]=W[G]);return oe}(V,["componentId"]),ue=ie&&ie+"-"+(ke(W)?W:je(_(W)));return Ye(W,v({},oe,{attrs:Ie,componentId:ue}),G)},Object.defineProperty(Re,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(V){this._foldedDefaultProps=ie?Me({},W.defaultProps,V):V}}),Re.toString=function(){return"."+Re.styledComponentId},ae&&ve()(Re,W,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),Re}var qe=function(W){return function e(W,V,G){if(void 0===G&&(G=Se),!Object(ie.isValidElementType)(V))return j(1,String(V));var i=function(){return W(V,G,Ae.apply(void 0,arguments))};return i.withConfig=function(ie){return e(W,V,v({},G,{},ie))},i.attrs=function(ie){return e(W,V,v({},G,{attrs:Array.prototype.concat(G.attrs,ie).filter(Boolean)}))},i}(Ye,W)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(W){qe[W]=qe(W)}));var _t=function(){function e(W,V){this.rules=W,this.componentId=V,this.isStatic=re(W),rt.registerId(this.componentId+1)}var W=e.prototype;return W.createStyles=function(W,V,G,ie){var oe=ie(Ne(this.rules,V,G,ie).join(""),""),ue=this.componentId+W;G.insertRules(ue,ue,oe)},W.removeStyles=function(W,V){V.clearRules(this.componentId+W)},W.renderStyles=function(W,V,G,ie){W>2&&rt.registerId(this.componentId+W),this.removeStyles(W,G),this.createStyles(W,V,G,ie)},e}();function $e(W){for(var V=arguments.length,G=new Array(V>1?V-1:0),ie=1;ie1?V-1:0),ie=1;ie"+V+""},this.getStyleTags=function(){return W.sealed?j(2):W._emitSheetCSS()},this.getStyleElement=function(){var V;if(W.sealed)return j(2);var G=((V={})[we]="",V["data-styled-version"]="5.3.0",V.dangerouslySetInnerHTML={__html:W.instance.toString()},V),ie=q();return ie&&(G.nonce=ie),[ue.a.createElement("style",v({},G,{key:"sc-0-0"}))]},this.seal=function(){W.sealed=!0},this.instance=new rt({isServer:!0}),this.sealed=!1}var W=e.prototype;return W.collectStyles=function(W){return this.sealed?j(2):ue.a.createElement(ye,{sheet:this.instance},W)},W.interleaveWithNodeStream=function(W){return j(3)},e}(),Je=function(W){var V=ue.a.forwardRef((function(V,G){var ie=Object(oe.useContext)(gt),ae=W.defaultProps,se=Oe(V,ie,ae);return ue.a.createElement(W,v({},V,{theme:se,ref:G}))}));return ve()(V,W),V.displayName="WithTheme("+_(W)+")",V},Xe=function(){return Object(oe.useContext)(gt)},Ot={StyleSheet:rt,masterSheet:lt};V.default=qe}.call(this,G(44))},function(W,V,G){"use strict";G.d(V,"a",(function(){return subscribeToResult}));var ie=G(1),oe=function(W){function InnerSubscriber(V,G,ie){var oe=W.call(this)||this;return oe.parent=V,oe.outerValue=G,oe.outerIndex=ie,oe.index=0,oe}return ie.__extends(InnerSubscriber,W),InnerSubscriber.prototype._next=function(W){this.parent.notifyNext(this.outerValue,W,this.outerIndex,this.index++,this)},InnerSubscriber.prototype._error=function(W){this.parent.notifyError(W,this),this.unsubscribe()},InnerSubscriber.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},InnerSubscriber}(G(2).a),ue=G(40),ae=G(4);function subscribeToResult(W,V,G,ie,se){if(void 0===se&&(se=new oe(W,G,ie)),!se.closed)return V instanceof ae.a?V.subscribe(se):Object(ue.a)(V)(se)}},function(W,V,G){"use strict";G.d(V,"a",(function(){return oe}));var ie=!1,oe={Promise:void 0,set useDeprecatedSynchronousErrorHandling(W){W&&(new Error).stack;ie=W},get useDeprecatedSynchronousErrorHandling(){return ie}}},function(W,V,G){"use strict";function identity(W){return W}G.d(V,"a",(function(){return identity}))},function(W,V,G){"use strict";G.d(V,"a",(function(){return oe}));var ie=G(1),oe=function(W){function OuterSubscriber(){return null!==W&&W.apply(this,arguments)||this}return ie.__extends(OuterSubscriber,W),OuterSubscriber.prototype.notifyNext=function(W,V,G,ie,oe){this.destination.next(V)},OuterSubscriber.prototype.notifyError=function(W,V){this.destination.error(W)},OuterSubscriber.prototype.notifyComplete=function(W){this.destination.complete()},OuterSubscriber}(G(2).a)},function(W,V,G){"use strict";G.d(V,"a",(function(){return filter}));var ie=G(1),oe=G(2);function filter(W,V){return function filterOperatorFunction(G){return G.lift(new ue(W,V))}}var ue=function(){function FilterOperator(W,V){this.predicate=W,this.thisArg=V}return FilterOperator.prototype.call=function(W,V){return V.subscribe(new ae(W,this.predicate,this.thisArg))},FilterOperator}(),ae=function(W){function FilterSubscriber(V,G,ie){var oe=W.call(this,V)||this;return oe.predicate=G,oe.thisArg=ie,oe.count=0,oe}return ie.__extends(FilterSubscriber,W),FilterSubscriber.prototype._next=function(W){var V;try{V=this.predicate.call(this.thisArg,W,this.count++)}catch(W){return void this.destination.error(W)}V&&this.destination.next(W)},FilterSubscriber}(oe.a)},function(W,V,G){"use strict";G.d(V,"b",(function(){return ie})),G.d(V,"a",(function(){return se}));var ie,oe=G(13),ue=G(45),ae=G(58);ie||(ie={});var se=function(){function Notification(W,V,G){this.kind=W,this.value=V,this.error=G,this.hasValue="N"===W}return Notification.prototype.observe=function(W){switch(this.kind){case"N":return W.next&&W.next(this.value);case"E":return W.error&&W.error(this.error);case"C":return W.complete&&W.complete()}},Notification.prototype.do=function(W,V,G){switch(this.kind){case"N":return W&&W(this.value);case"E":return V&&V(this.error);case"C":return G&&G()}},Notification.prototype.accept=function(W,V,G){return W&&"function"==typeof W.next?this.observe(W):this.do(W,V,G)},Notification.prototype.toObservable=function(){switch(this.kind){case"N":return Object(ue.a)(this.value);case"E":return Object(ae.a)(this.error);case"C":return Object(oe.b)()}throw new Error("unexpected notification kind value")},Notification.createNext=function(W){return void 0!==W?new Notification("N",W):Notification.undefinedValueNotification},Notification.createError=function(W){return new Notification("E",void 0,W)},Notification.createComplete=function(){return Notification.completeNotification},Notification.completeNotification=new Notification("C"),Notification.undefinedValueNotification=new Notification("N",void 0),Notification}()},function(W,V,G){"use strict";function getSymbolIterator(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}G.d(V,"a",(function(){return ie}));var ie=getSymbolIterator()},function(W,V,G){"use strict";function noop(){}G.d(V,"a",(function(){return noop}))},function(W,V,G){"use strict";G.d(V,"a",(function(){return ie}));var ie=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},function(W,V,G){"use strict";G.d(V,"a",(function(){return ie}));var ie=function(){function ObjectUnsubscribedErrorImpl(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return ObjectUnsubscribedErrorImpl.prototype=Object.create(Error.prototype),ObjectUnsubscribedErrorImpl}()},function(W,V,G){"use strict";G.d(V,"a",(function(){return ie}));var ie=function(){function ArgumentOutOfRangeErrorImpl(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return ArgumentOutOfRangeErrorImpl.prototype=Object.create(Error.prototype),ArgumentOutOfRangeErrorImpl}()},function(W,V,G){"use strict";function isFunction(W){return"function"==typeof W}G.d(V,"a",(function(){return isFunction}))},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.useEditorTransactions=V.useEditorState=V.EditorContext=V.createEditor=V.useSortedAndFilteredLinkTypes=V.useLinkTypeForHref=V.useLinkTypes=V.makeLinkType=void 0;var ie=G(178);Object.defineProperty(V,"makeLinkType",{enumerable:!0,get:function get(){return ie.makeLinkType}}),Object.defineProperty(V,"useLinkTypes",{enumerable:!0,get:function get(){return ie.useLinkTypes}}),Object.defineProperty(V,"useLinkTypeForHref",{enumerable:!0,get:function get(){return ie.useLinkTypeForHref}}),Object.defineProperty(V,"useSortedAndFilteredLinkTypes",{enumerable:!0,get:function get(){return ie.useSortedAndFilteredLinkTypes}});var oe=G(119);Object.defineProperty(V,"createEditor",{enumerable:!0,get:function get(){return oe.createEditor}}),Object.defineProperty(V,"EditorContext",{enumerable:!0,get:function get(){return oe.EditorContext}}),Object.defineProperty(V,"useEditorState",{enumerable:!0,get:function get(){return oe.useEditorState}}),Object.defineProperty(V,"useEditorTransactions",{enumerable:!0,get:function get(){return oe.useEditorTransactions}})},function(W,V,G){"use strict";G.d(V,"a",(function(){return ie}));var ie=function(){function EmptyErrorImpl(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return EmptyErrorImpl.prototype=Object.create(Error.prototype),EmptyErrorImpl}()},function(W,V,G){"use strict";G.d(V,"b",(function(){return mergeMap})),G.d(V,"a",(function(){return le}));var ie=G(1),oe=G(10),ue=G(14),ae=G(3);function mergeMap(W,V,G){return void 0===G&&(G=Number.POSITIVE_INFINITY),"function"==typeof V?function(ie){return ie.pipe(mergeMap((function(G,ie){return Object(ue.a)(W(G,ie)).pipe(Object(oe.a)((function(W,oe){return V(G,W,ie,oe)})))}),G))}:("number"==typeof V&&(G=V),function(V){return V.lift(new se(W,G))})}var se=function(){function MergeMapOperator(W,V){void 0===V&&(V=Number.POSITIVE_INFINITY),this.project=W,this.concurrent=V}return MergeMapOperator.prototype.call=function(W,V){return V.subscribe(new de(W,this.project,this.concurrent))},MergeMapOperator}(),de=function(W){function MergeMapSubscriber(V,G,ie){void 0===ie&&(ie=Number.POSITIVE_INFINITY);var oe=W.call(this,V)||this;return oe.project=G,oe.concurrent=ie,oe.hasCompleted=!1,oe.buffer=[],oe.active=0,oe.index=0,oe}return ie.__extends(MergeMapSubscriber,W),MergeMapSubscriber.prototype._next=function(W){this.active0?this._next(W.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},MergeMapSubscriber}(ae.b),le=mergeMap},function(W,V,G){"use strict";G.d(V,"a",(function(){return fromArray}));var ie=G(4),oe=G(90),ue=G(65);function fromArray(W,V){return V?Object(ue.a)(W,V):new ie.a(Object(oe.a)(W))}},function(W,V,G){"use strict";G.d(V,"a",(function(){return ue}));var ie=G(1),oe=G(71),ue=function(W){function AsyncScheduler(V,G){void 0===G&&(G=oe.a.now);var ie=W.call(this,V,(function(){return AsyncScheduler.delegate&&AsyncScheduler.delegate!==ie?AsyncScheduler.delegate.now():G()}))||this;return ie.actions=[],ie.active=!1,ie.scheduled=void 0,ie}return ie.__extends(AsyncScheduler,W),AsyncScheduler.prototype.schedule=function(V,G,ie){return void 0===G&&(G=0),AsyncScheduler.delegate&&AsyncScheduler.delegate!==this?AsyncScheduler.delegate.schedule(V,G,ie):W.prototype.schedule.call(this,V,G,ie)},AsyncScheduler.prototype.flush=function(W){var V=this.actions;if(this.active)V.push(W);else{var G;this.active=!0;do{if(G=W.execute(W.state,W.delay))break}while(W=V.shift());if(this.active=!1,G){for(;W=V.shift();)W.unsubscribe();throw G}}},AsyncScheduler}(oe.a)},function(W,V,G){"use strict";G.d(V,"a",(function(){return ae}));var ie=G(1),oe=G(7),ue=G(6),ae=function(W){function AsyncSubject(){var V=null!==W&&W.apply(this,arguments)||this;return V.value=null,V.hasNext=!1,V.hasCompleted=!1,V}return ie.__extends(AsyncSubject,W),AsyncSubject.prototype._subscribe=function(V){return this.hasError?(V.error(this.thrownError),ue.a.EMPTY):this.hasCompleted&&this.hasNext?(V.next(this.value),V.complete(),ue.a.EMPTY):W.prototype._subscribe.call(this,V)},AsyncSubject.prototype.next=function(W){this.hasCompleted||(this.value=W,this.hasNext=!0)},AsyncSubject.prototype.error=function(V){this.hasCompleted||W.prototype.error.call(this,V)},AsyncSubject.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&W.prototype.next.call(this,this.value),W.prototype.complete.call(this)},AsyncSubject}(oe.a)},function(W,V,G){"use strict";G.d(V,"a",(function(){return oe}));var ie=G(1),oe=function(W){function AsyncAction(V,G){var ie=W.call(this,V,G)||this;return ie.scheduler=V,ie.work=G,ie.pending=!1,ie}return ie.__extends(AsyncAction,W),AsyncAction.prototype.schedule=function(W,V){if(void 0===V&&(V=0),this.closed)return this;this.state=W;var G=this.id,ie=this.scheduler;return null!=G&&(this.id=this.recycleAsyncId(ie,G,V)),this.pending=!0,this.delay=V,this.id=this.id||this.requestAsyncId(ie,this.id,V),this},AsyncAction.prototype.requestAsyncId=function(W,V,G){return void 0===G&&(G=0),setInterval(W.flush.bind(W,this),G)},AsyncAction.prototype.recycleAsyncId=function(W,V,G){if(void 0===G&&(G=0),null!==G&&this.delay===G&&!1===this.pending)return V;clearInterval(V)},AsyncAction.prototype.execute=function(W,V){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var G=this._execute(W,V);if(G)return G;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},AsyncAction.prototype._execute=function(W,V){var G=!1,ie=void 0;try{this.work(W)}catch(W){G=!0,ie=!!W&&W||new Error(W)}if(G)return this.unsubscribe(),ie},AsyncAction.prototype._unsubscribe=function(){var W=this.id,V=this.scheduler,G=V.actions,ie=G.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==ie&&G.splice(ie,1),null!=W&&(this.id=this.recycleAsyncId(V,W,null)),this.delay=null},AsyncAction}(function(W){function Action(V,G){return W.call(this)||this}return ie.__extends(Action,W),Action.prototype.schedule=function(W,V){return void 0===V&&(V=0),this},Action}(G(6).a))},function(W,V,G){"use strict";G.d(V,"a",(function(){return isNumeric}));var ie=G(9);function isNumeric(W){return!Object(ie.a)(W)&&W-parseFloat(W)+1>=0}},function(W,V,G){"use strict";var ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V};Object.defineProperty(V,"__esModule",{value:!0}),V.Layout=V.IconLabel=V.Deletable=V.Modal=V.Form=V.Tabs=V.ImageCard=V.IconCard=void 0;var ue=G(203);Object.defineProperty(V,"IconCard",{enumerable:!0,get:function get(){return ue.IconCard}});var ae=G(205);Object.defineProperty(V,"ImageCard",{enumerable:!0,get:function get(){return ae.ImageCard}});var se=G(206);Object.defineProperty(V,"Tabs",{enumerable:!0,get:function get(){return se.Tabs}});var de=G(207);Object.defineProperty(V,"Form",{enumerable:!0,get:function get(){return de.Form}});var le=G(208);Object.defineProperty(V,"Modal",{enumerable:!0,get:function get(){return le.Modal}});var pe=G(210);Object.defineProperty(V,"Deletable",{enumerable:!0,get:function get(){return pe.Deletable}});var he=G(211);Object.defineProperty(V,"IconLabel",{enumerable:!0,get:function get(){return he.IconLabel}}),V.Layout=__importStar(G(212))},function(W,V,G){"use strict";G.d(V,"a",(function(){return concat}));var ie=G(45),oe=G(84);function concat(){for(var W=[],V=0;V1)for(var G=1;G0?W.prototype.requestAsyncId.call(this,V,G,ie):(V.actions.push(this),V.scheduled||(V.scheduled=Immediate_setImmediate(V.flush.bind(V,null))))},AsapAction.prototype.recycleAsyncId=function(V,G,ie){if(void 0===ie&&(ie=0),null!==ie&&ie>0||null===ie&&this.delay>0)return W.prototype.recycleAsyncId.call(this,V,G,ie);0===V.actions.length&&(Immediate_clearImmediate(G),V.scheduled=void 0)},AsapAction}(G(36).a),de=new(function(W){function AsapScheduler(){return null!==W&&W.apply(this,arguments)||this}return ie.__extends(AsapScheduler,W),AsapScheduler.prototype.flush=function(W){this.active=!0,this.scheduled=void 0;var V,G=this.actions,ie=-1,oe=G.length;W=W||G.shift();do{if(V=W.execute(W.state,W.delay))break}while(++ieW?exec():!0!==V&&(oe=setTimeout(ie?clear:exec,void 0===ie?W-he:W)))}return"boolean"!=typeof V&&(ie=G,G=V,V=void 0),wrapper.cancel=function cancel(){clearExistingTimeout(),ue=!0},wrapper}var rt=["mousemove","mousedown","resize","keydown","touchstart","wheel"],esm_useIdle=function(W,V,G){void 0===W&&(W=6e4),void 0===V&&(V=!1),void 0===G&&(G=rt);var oe=Object(ie.useState)(V),ue=oe[0],ae=oe[1];return Object(ie.useEffect)((function(){for(var V,ie=!0,oe=ue,set=function(W){ie&&(oe=W,ae(W))},se=throttle(50,(function(){oe&&set(!1),clearTimeout(V),V=setTimeout((function(){return set(!0)}),W)})),onVisibility=function(){document.hidden||se()},de=0;de=V[1]?1:-1}))}),[W]);return ue.reduce((function(W,V){var ie=V[0],oe=V[1];return G>=oe?ie:W}),ue[0][0])}},esm_useKeyPress=function(W){var V=Object(ie.useState)([!1,null]),G=V[0],oe=V[1];return esm_useKey(W,(function(W){return oe([!0,W])}),{event:"keydown"},[G]),esm_useKey(W,(function(W){return oe([!1,W])}),{event:"keyup"},[G]),G},esm_useKeyPressEvent=function(W,V,G,ie){void 0===ie&&(ie=esm_useKeyPress);var oe=ie(W),ue=oe[0],ae=oe[1];esm_useUpdateEffect((function(){!ue&&G?G(ae):ue&&V&&V(ae)}),[ue])},esm_useLatest=function(W){var V=Object(ie.useRef)(W);return V.current=W,V},esm_useLifecycles=function(W,V){Object(ie.useEffect)((function(){return W&&W(),function(){V&&V()}}),[])};var nt=function useList(W){void 0===W&&(W=[]);var V=Object(ie.useRef)(resolveHookState(W)),G=useUpdate(),oe=Object(ie.useMemo)((function(){var ie={set:function(W){V.current=resolveHookState(W,V.current),G()},push:function(){for(var W=[],V=0;Vie.length?ie[W]=V:ie.splice(W,0,V),ie}))},update:function(W,V){oe.set((function(G){return G.map((function(G){return W(G,V)?V:G}))}))},updateFirst:function(W,G){var ie=V.current.findIndex((function(V){return W(V,G)}));ie>=0&&oe.updateAt(ie,G)},upsert:function(W,G){var ie=V.current.findIndex((function(V){return W(V,G)}));ie>=0?oe.updateAt(ie,G):oe.push(G)},sort:function(W){oe.set((function(V){return V.slice().sort(W)}))},filter:function(W,V){oe.set((function(G){return G.slice().filter(W,V)}))},removeAt:function(W){oe.set((function(V){var G=V.slice();return G.splice(W,1),G}))},clear:function(){oe.set([])},reset:function(){oe.set(resolveHookState(W).slice())}};return ie.remove=ie.removeAt,ie}),[]);return[V.current,oe]},esm_useLocalStorage=function(W,V,G){if(!ae)return[V,noop,noop];if(!W)throw new Error("useLocalStorage key may not be falsy");var oe=G?G.raw?function(W){return W}:G.deserializer:JSON.parse,ue=Object(ie.useRef)((function(W){try{var ie=G?G.raw?String:G.serializer:JSON.stringify,ue=localStorage.getItem(W);return null!==ue?oe(ue):(V&&localStorage.setItem(W,ie(V)),V)}catch(W){return V}})),se=Object(ie.useState)((function(){return ue.current(W)})),de=se[0],le=se[1];Object(ie.useLayoutEffect)((function(){return le(ue.current(W))}),[W]);var pe=Object(ie.useCallback)((function(V){try{var ie="function"==typeof V?V(de):V;if(void 0===ie)return;var ue=void 0;ue=G?G.raw?"string"==typeof ie?ie:JSON.stringify(ie):G.serializer?G.serializer(ie):JSON.stringify(ie):JSON.stringify(ie),localStorage.setItem(W,ue),le(oe(ue))}catch(W){}}),[W,le]),he=Object(ie.useCallback)((function(){try{localStorage.removeItem(W),le(void 0)}catch(W){}}),[W,le]);return[de,pe,he]},patchHistoryMethod=function(W){var V=window.history,G=V[W];V[W]=function(V){var ie=G.apply(this,arguments),oe=new Event(W.toLowerCase());return oe.state=V,window.dispatchEvent(oe),ie}};ae&&(patchHistoryMethod("pushState"),patchHistoryMethod("replaceState"));var buildState=function(W){var V=window.history,G=V.state,ie=V.length,oe=window.location;return{trigger:W,state:G,length:ie,hash:oe.hash,host:oe.host,hostname:oe.hostname,href:oe.href,origin:oe.origin,pathname:oe.pathname,port:oe.port,protocol:oe.protocol,search:oe.search}},it="function"==typeof Event,ot=ae&&it?function(){var W=Object(ie.useState)(buildState("load")),V=W[0],G=W[1];return Object(ie.useEffect)((function(){var onPopstate=function(){return G(buildState("popstate"))},onPushstate=function(){return G(buildState("pushstate"))},onReplacestate=function(){return G(buildState("replacestate"))};return on(window,"popstate",onPopstate),on(window,"pushstate",onPushstate),on(window,"replacestate",onReplacestate),function(){off(window,"popstate",onPopstate),off(window,"pushstate",onPushstate),off(window,"replacestate",onReplacestate)}}),[]),V}:function(){return{trigger:"load",length:1}};function getClosestBody(W){if(!W)return null;if("BODY"===W.tagName)return W;if("IFRAME"===W.tagName){var V=W.contentDocument;return V?V.body:null}return W.offsetParent?getClosestBody(W.offsetParent):null}function preventDefault(W){var V=W||window.event;return V.touches.length>1||(V.preventDefault&&V.preventDefault(),!1)}var ut=ae&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),at=new Map,st="object"==typeof document?document:void 0,ct=!1,dt=st?function useLockBody(W,V){void 0===W&&(W=!0);var G=Object(ie.useRef)(st.body);V=V||G;var unlock=function(W){var V=at.get(W);V&&(1===V.counter?(at.delete(W),ut?(W.ontouchmove=null,ct&&(off(document,"touchmove",preventDefault),ct=!1)):W.style.overflow=V.initialOverflow):at.set(W,{counter:V.counter-1,initialOverflow:V.initialOverflow}))};Object(ie.useEffect)((function(){var G=getClosestBody(V.current);G&&(W?function(W){var V=at.get(W);V?at.set(W,{counter:V.counter+1,initialOverflow:V.initialOverflow}):(at.set(W,{counter:1,initialOverflow:W.style.overflow}),ut?ct||(on(document,"touchmove",preventDefault,{passive:!1}),ct=!0):W.style.overflow="hidden")}(G):unlock(G))}),[W,V.current]),Object(ie.useEffect)((function(){var W=getClosestBody(V.current);if(W)return function(){unlock(W)}}),[])}:function useLockBodyMock(W,V){void 0===W&&(W=!0)},esm_useLogger=function(W){for(var V=[],G=1;G1?se=1:se<0&&(se=0),de&&(se=1-se),pe({value:se}),(V.onScrub||noop)(se)}}))};return on(W.current,"mousedown",onMouseDown_1),on(W.current,"touchstart",onTouchStart_1),function(){off(W.current,"mousedown",onMouseDown_1),off(W.current,"touchstart",onTouchStart_1)}}}),[W,V.vertical]),le},Et=ae&&"object"==typeof window.speechSynthesis?window.speechSynthesis.getVoices():[],esm_useSpeech=function(W,V){void 0===V&&(V={});var G=esm_useSetState({isPlaying:!1,lang:V.lang||"default",voice:V.voice||Et[0],rate:V.rate||1,pitch:V.pitch||1,volume:V.volume||1}),oe=G[0],ue=G[1],ae=Object(ie.useRef)(null);return esm_useMount((function(){var G=new SpeechSynthesisUtterance(W);V.lang&&(G.lang=V.lang),V.voice&&(G.voice=V.voice),G.rate=V.rate||1,G.pitch=V.pitch||1,G.volume=V.volume||1,G.onstart=function(){return ue({isPlaying:!0})},G.onresume=function(){return ue({isPlaying:!0})},G.onend=function(){return ue({isPlaying:!1})},G.onpause=function(){return ue({isPlaying:!1})},ae.current=G,window.speechSynthesis.speak(ae.current)})),oe},esm_useStartTyping=function(W){De((function(){var keydown=function(V){var G,ie,oe,ue,ae;!function(){var W=document.activeElement,V=document.body;if(!W)return!1;if(W===V)return!1;switch(W.tagName){case"INPUT":case"TEXTAREA":return!0}return W.hasAttribute("contenteditable")}()&&(ie=(G=V).keyCode,oe=G.metaKey,ue=G.ctrlKey,ae=G.altKey,!(oe||ue||ae)&&(ie>=48&&ie<=57||ie>=65&&ie<=90))&&W(V)};return on(document,"keydown",keydown),function(){off(document,"keydown",keydown)}}),[])};function useStateWithHistory(W,V,G){if(void 0===V&&(V=10),V<1)throw new Error("Capacity has to be greater than 1, got '"+V+"'");var oe=useFirstMountState(),ue=Object(ie.useState)(W),ae=ue[0],se=ue[1],de=Object(ie.useRef)(null!=G?G:[]),le=Object(ie.useRef)(0);return oe&&(de.current.length?(de.current[de.current.length-1]!==W&&de.current.push(W),de.current.length>V&&(de.current=de.current.slice(de.current.length-V))):de.current.push(W),le.current=de.current.length&&de.current.length-1),[ae,Object(ie.useCallback)((function(W){se((function(G){return(W=resolveHookState(W,G))!==G&&(le.currentV&&(de.current=de.current.slice(de.current.length-V))),W}))}),[ae,V]),Object(ie.useMemo)((function(){return{history:de.current,position:le.current,capacity:V,back:function(W){void 0===W&&(W=1),le.current&&se((function(){return le.current-=Math.min(W,le.current),de.current[le.current]}))},forward:function(W){void 0===W&&(W=1),le.current!==de.current.length-1&&se((function(){return le.current=Math.min(le.current+W,de.current.length-1),de.current[le.current]}))},go:function(W){W!==le.current&&se((function(){return le.current=W<0?Math.max(de.current.length+W,0):Math.min(de.current.length-1,W),de.current[le.current]}))}}}),[ae])]}function useStateList(W){void 0===W&&(W=[]);var V=useMountedState(),G=useUpdate(),ue=Object(ie.useRef)(0);esm_useUpdateEffect((function(){W.length<=ue.current&&(ue.current=W.length-1,G())}),[W.length]);var ae=Object(ie.useMemo)((function(){return{next:function(){return ae.setStateAt(ue.current+1)},prev:function(){return ae.setStateAt(ue.current-1)},setStateAt:function(ie){V()&&W.length&&ie!==ue.current&&(ue.current=ie>=0?ie%W.length:W.length+ie%W.length,G())},setState:function(ie){if(V()){var oe=W.length?W.indexOf(ie):-1;if(-1===oe)throw new Error("State '"+ie+"' is not a valid state (does not exist in state list)");ue.current=oe,G()}}}}),[W]);return Object(oe.__assign)({state:W[ue.current],currentIndex:ue.current},ae)}var esm_useThrottle=function(W,V){void 0===V&&(V=200);var G=Object(ie.useState)(W),oe=G[0],ue=G[1],ae=Object(ie.useRef)(),se=Object(ie.useRef)(null),de=Object(ie.useRef)(0);return Object(ie.useEffect)((function(){if(ae.current)se.current=W,de.current=!0;else{ue(W);var timeoutCallback_1=function(){de.current?(de.current=!1,ue(se.current),ae.current=setTimeout(timeoutCallback_1,V)):ae.current=void 0};ae.current=setTimeout(timeoutCallback_1,V)}}),[W]),esm_useUnmount((function(){ae.current&&clearTimeout(ae.current)})),oe},esm_useThrottleFn=function(W,V,G){void 0===V&&(V=200);var oe=Object(ie.useState)(null),ue=oe[0],ae=oe[1],se=Object(ie.useRef)(),de=Object(ie.useRef)();return Object(ie.useEffect)((function(){if(se.current)de.current=G;else{ae(W.apply(void 0,G));var timeoutCallback_1=function(){de.current?(ae(W.apply(void 0,de.current)),de.current=void 0,se.current=setTimeout(timeoutCallback_1,V)):se.current=void 0};se.current=setTimeout(timeoutCallback_1,V)}}),G),esm_useUnmount((function(){se.current&&clearTimeout(se.current)})),ue};function useTimeout(W){return void 0===W&&(W=0),useTimeoutFn(useUpdate(),W)}var Ct={restoreOnUnmount:!1};var Pt="undefined"!=typeof document?function useTitle(W,V){void 0===V&&(V=Ct);var G=Object(ie.useRef)(document.title);document.title=W,Object(ie.useEffect)((function(){return V&&V.restoreOnUnmount?function(){document.title=G.current}:void 0}),[])}:function(W){},Nt=G(132),esm_useTween=function(W,V,G){return void 0===W&&(W="inCirc"),void 0===V&&(V=200),void 0===G&&(G=0),(0,Nt.easing[W])(esm_useRaf(V,G))},esm_useUnmountPromise=function(){var W=Object(ie.useRef)(!1);return esm_useEffectOnce((function(){return function(){W.current=!0}})),Object(ie.useMemo)((function(){return function(V,G){return new Promise((function(ie,oe){V.then((function(V){W.current||ie(V)}),(function(V){W.current?G?G(V):console.error("useUnmountPromise",V):oe(V)}))}))}}),[])};function useUpsert(W,V){void 0===V&&(V=[]);var G=nt(V),ie=G[0],ue=G[1];return[ie,Object(oe.__assign)(Object(oe.__assign)({},ue),{upsert:function(V){ue.upsert(W,V)}})]}var Tt=se&&"vibrate"in navigator?function useVibrate(W,V,G){void 0===W&&(W=!0),void 0===V&&(V=[1e3,1e3]),void 0===G&&(G=!0),Object(ie.useEffect)((function(){var ie;if(W&&(navigator.vibrate(V),G)){var oe=V instanceof Array?V.reduce((function(W,V){return W+V})):V;ie=setInterval((function(){navigator.vibrate(V)}),oe)}return function(){W&&(navigator.vibrate(0),G&&clearInterval(ie))}}),[W])}:noop,jt=createHTMLMediaHook("video");function useStateValidator(W,V,G){void 0===G&&(G=[void 0]);var oe=Object(ie.useRef)(V),ue=Object(ie.useRef)(W);oe.current=V,ue.current=W;var ae=Object(ie.useState)(G),se=ae[0],de=ae[1],le=Object(ie.useCallback)((function(){oe.current.length>=2?oe.current(ue.current,de):de(oe.current(ue.current))}),[de]);return Object(ie.useEffect)((function(){le()}),[W]),[se,le]}var e=function(W){if("undefined"==typeof document)return 0;if(document.body&&(!document.readyState||"loading"!==document.readyState)){if(!0!==W&&"number"==typeof e.__cache)return e.__cache;var V=document.createElement("div"),G=V.style;G.display="block",G.position="absolute",G.width="100px",G.height="100px",G.left="-999px",G.top="-999px",G.overflow="scroll",document.body.insertBefore(V,null);var ie=V.clientWidth;if(0!==ie)return e.__cache=100-ie,document.body.removeChild(V),e.__cache;document.body.removeChild(V)}};function useScrollbarWidth(){var W=Object(ie.useState)(e()),V=W[0],G=W[1];return Object(ie.useEffect)((function(){if(void 0===V){var W=requestAnimationFrame((function(){G(e())}));return function(){return cancelAnimationFrame(W)}}}),[]),V}function useMultiStateValidator(W,V,G){if(void 0===G&&(G=[void 0]),"object"!=typeof W)throw new Error("states expected to be an object or array, got "+typeof W);var oe=Object(ie.useRef)(V),ue=Object(ie.useRef)(W);oe.current=V,ue.current=W;var ae=Object(ie.useState)(G),se=ae[0],de=ae[1],le=Object(ie.useCallback)((function(){oe.current.length>=2?oe.current(ue.current,de):de(oe.current(ue.current))}),[de]);return Object(ie.useEffect)((function(){le()}),Object.values(W)),[se,le]}var esm_useWindowScroll=function(){var W=esm_useRafState((function(){return{x:ae?window.pageXOffset:0,y:ae?window.pageYOffset:0}})),V=W[0],G=W[1];return Object(ie.useEffect)((function(){var handler=function(){G((function(W){var V=window.pageXOffset,G=window.pageYOffset;return W.x!==V||W.y!==G?{x:V,y:G}:W}))};return handler(),on(window,"scroll",handler,{capture:!1,passive:!0}),function(){off(window,"scroll",handler)}}),[]),V},esm_useWindowSize=function(W,V){void 0===W&&(W=1/0),void 0===V&&(V=1/0);var G=esm_useRafState({width:ae?window.innerWidth:W,height:ae?window.innerHeight:V}),oe=G[0],ue=G[1];return Object(ie.useEffect)((function(){if(ae){var handler_1=function(){ue({width:window.innerWidth,height:window.innerHeight})};return on(window,"resize",handler_1),function(){off(window,"resize",handler_1)}}}),[]),oe},kt={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};var At=ae&&void 0!==window.ResizeObserver?function useMeasure(){var W=Object(ie.useState)(null),V=W[0],G=W[1],oe=Object(ie.useState)(kt),ue=oe[0],ae=oe[1],se=Object(ie.useMemo)((function(){return new window.ResizeObserver((function(W){if(W[0]){var V=W[0].contentRect,G=V.x,ie=V.y,oe=V.width,ue=V.height,se=V.top,de=V.left,le=V.bottom,pe=V.right;ae({x:G,y:ie,width:oe,height:ue,top:se,left:de,bottom:le,right:pe})}}))}),[]);return De((function(){if(V)return se.observe(V),function(){se.disconnect()}}),[V]),[G,ue]}:function(){return[noop,kt]};function useRendersCount(){return++Object(ie.useRef)(0).current}var esm_useSet=function(W){void 0===W&&(W=new Set);var V=Object(ie.useState)(W),G=V[0],ue=V[1],ae=Object(ie.useMemo)((function(){return{add:function(W){return ue((function(V){return new Set(Object(oe.__spreadArrays)(Array.from(V),[W]))}))},remove:function(W){return ue((function(V){return new Set(Array.from(V).filter((function(V){return V!==W})))}))},toggle:function(W){return ue((function(V){return V.has(W)?new Set(Array.from(V).filter((function(V){return V!==W}))):new Set(Object(oe.__spreadArrays)(Array.from(V),[W]))}))},reset:function(){return ue(W)}}}),[ue]),se=Object(oe.__assign)({has:Object(ie.useCallback)((function(W){return G.has(W)}),[G])},ae);return[G,se]};function createGlobalState(W){var V={state:W instanceof Function?W():W,setState:function(W){V.state=resolveHookState(W,V.state),V.setters.forEach((function(W){return W(V.state)}))},setters:[]};return function(){var W=Object(ie.useState)(V.state),G=W[0],oe=W[1];return esm_useEffectOnce((function(){return function(){V.setters=V.setters.filter((function(W){return W!==oe}))}})),De((function(){V.setters.includes(oe)||V.setters.push(oe)})),[G,V.setState]}}var useHash=function(){var W=Object(ie.useState)((function(){return window.location.hash})),V=W[0],G=W[1],oe=Object(ie.useCallback)((function(){G(window.location.hash)}),[]);esm_useLifecycles((function(){on(window,"hashchange",oe)}),(function(){off(window,"hashchange",oe)}));var ue=Object(ie.useCallback)((function(W){W!==V&&(window.location.hash=W)}),[V]);return[V,ue]}},function(W,V,G){"use strict";G.d(V,"a",(function(){return refCount}));var ie=G(1),oe=G(2);function refCount(){return function refCountOperatorFunction(W){return W.lift(new ue(W))}}var ue=function(){function RefCountOperator(W){this.connectable=W}return RefCountOperator.prototype.call=function(W,V){var G=this.connectable;G._refCount++;var ie=new ae(W,G),oe=V.subscribe(ie);return ie.closed||(ie.connection=G.connect()),oe},RefCountOperator}(),ae=function(W){function RefCountSubscriber(V,G){var ie=W.call(this,V)||this;return ie.connectable=G,ie}return ie.__extends(RefCountSubscriber,W),RefCountSubscriber.prototype._unsubscribe=function(){var W=this.connectable;if(W){this.connectable=null;var V=W._refCount;if(V<=0)this.connection=null;else if(W._refCount=V-1,V>1)this.connection=null;else{var G=this.connection,ie=W._connection;this.connection=null,!ie||G&&ie!==G||ie.unsubscribe()}}else this.connection=null},RefCountSubscriber}(oe.a)},function(W,V,G){"use strict";G.d(V,"a",(function(){return pe}));var ie=G(1),oe=G(7),ue=G(70),ae=G(6),se=G(82),de=G(27),le=G(89),pe=function(W){function ReplaySubject(V,G,ie){void 0===V&&(V=Number.POSITIVE_INFINITY),void 0===G&&(G=Number.POSITIVE_INFINITY);var oe=W.call(this)||this;return oe.scheduler=ie,oe._events=[],oe._infiniteTimeWindow=!1,oe._bufferSize=V<1?1:V,oe._windowTime=G<1?1:G,G===Number.POSITIVE_INFINITY?(oe._infiniteTimeWindow=!0,oe.next=oe.nextInfiniteTimeWindow):oe.next=oe.nextTimeWindow,oe}return ie.__extends(ReplaySubject,W),ReplaySubject.prototype.nextInfiniteTimeWindow=function(V){if(!this.isStopped){var G=this._events;G.push(V),G.length>this._bufferSize&&G.shift()}W.prototype.next.call(this,V)},ReplaySubject.prototype.nextTimeWindow=function(V){this.isStopped||(this._events.push(new he(this._getNow(),V)),this._trimBufferThenGetEvents()),W.prototype.next.call(this,V)},ReplaySubject.prototype._subscribe=function(W){var V,G=this._infiniteTimeWindow,ie=G?this._events:this._trimBufferThenGetEvents(),oe=this.scheduler,ue=ie.length;if(this.closed)throw new de.a;if(this.isStopped||this.hasError?V=ae.a.EMPTY:(this.observers.push(W),V=new le.a(this,W)),oe&&W.add(W=new se.a(W,oe)),G)for(var pe=0;peV&&(ue=Math.max(ue,oe-V)),ue>0&&ie.splice(0,ue),ie},ReplaySubject}(oe.a),he=function(){return function ReplayEvent(W,V){this.time=W,this.value=V}}()},function(W,V,G){"use strict";G.d(V,"a",(function(){return throwError}));var ie=G(4);function throwError(W,V){return V?new ie.a((function(G){return V.schedule(dispatch,0,{error:W,subscriber:G})})):new ie.a((function(V){return V.error(W)}))}function dispatch(W){var V=W.error;W.subscriber.error(V)}},function(W,V,G){"use strict";G.d(V,"b",(function(){return combineLatest})),G.d(V,"a",(function(){return pe}));var ie=G(1),oe=G(11),ue=G(9),ae=G(21),se=G(18),de=G(33),le={};function combineLatest(){for(var W=[],V=0;Vthis.index},StaticArrayIterator.prototype.hasCompleted=function(){return this.array.length===this.index},StaticArrayIterator}(),ge=function(W){function ZipBufferIterator(V,G,ie){var oe=W.call(this,V)||this;return oe.parent=G,oe.observable=ie,oe.stillUnsubscribed=!0,oe.buffer=[],oe.isComplete=!1,oe}return ie.__extends(ZipBufferIterator,W),ZipBufferIterator.prototype[se.a]=function(){return this},ZipBufferIterator.prototype.next=function(){var W=this.buffer;return 0===W.length&&this.isComplete?{value:null,done:!0}:{value:W.shift(),done:!1}},ZipBufferIterator.prototype.hasValue=function(){return this.buffer.length>0},ZipBufferIterator.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},ZipBufferIterator.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},ZipBufferIterator.prototype.notifyNext=function(W){this.buffer.push(W),this.parent.checkIterators()},ZipBufferIterator.prototype.subscribe=function(){return Object(de.c)(this.observable,new de.a(this))},ZipBufferIterator}(de.b)},function(W,V,G){"use strict";function isObject(W){return null!==W&&"object"==typeof W}G.d(V,"a",(function(){return isObject}))},function(W,V,G){"use strict";G.d(V,"a",(function(){return canReportError}));var ie=G(2);function canReportError(W){for(;W;){var V=W,G=V.closed,oe=V.destination,ue=V.isStopped;if(G||ue)return!1;W=oe&&oe instanceof ie.a?oe:null}return!0}},function(W,V,G){"use strict";G.d(V,"a",(function(){return scheduleArray}));var ie=G(4),oe=G(6);function scheduleArray(W,V){return new ie.a((function(G){var ie=new oe.a,ue=0;return ie.add(V.schedule((function(){ue!==W.length?(G.next(W[ue++]),G.closed||ie.add(this.schedule())):G.complete()}))),ie}))}},function(W,V,G){"use strict";G.d(V,"a",(function(){return ue}));var ie=G(19),oe=G(41),ue={closed:!0,next:function(W){},error:function(W){if(ie.a.useDeprecatedSynchronousErrorHandling)throw W;Object(oe.a)(W)},complete:function(){}}},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.Deletable=V.useEditorTransactions=V.useEditorState=V.EditorContext=V.createEditor=V.useLinkTypeForHref=V.makeLinkType=V.registerDialog=V.registerLinkTypes=void 0;var ie=G(145);Object.defineProperty(V,"registerLinkTypes",{enumerable:!0,get:function get(){return ie.registerLinkTypes}}),Object.defineProperty(V,"registerDialog",{enumerable:!0,get:function get(){return ie.registerDialog}});var oe=G(30);Object.defineProperty(V,"makeLinkType",{enumerable:!0,get:function get(){return oe.makeLinkType}}),Object.defineProperty(V,"useLinkTypeForHref",{enumerable:!0,get:function get(){return oe.useLinkTypeForHref}}),Object.defineProperty(V,"createEditor",{enumerable:!0,get:function get(){return oe.createEditor}}),Object.defineProperty(V,"EditorContext",{enumerable:!0,get:function get(){return oe.EditorContext}}),Object.defineProperty(V,"useEditorState",{enumerable:!0,get:function get(){return oe.useEditorState}}),Object.defineProperty(V,"useEditorTransactions",{enumerable:!0,get:function get(){return oe.useEditorTransactions}});var ue=G(38);Object.defineProperty(V,"Deletable",{enumerable:!0,get:function get(){return ue.Deletable}})},function(W,V,G){"use strict";var ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V};Object.defineProperty(V,"__esModule",{value:!0}),V.useNeos=V.NeosContext=void 0;var ue=__importStar(G(0));V.NeosContext=ue.createContext(null),V.useNeos=function useNeos(){var W=ue.useContext(V.NeosContext);if(!W)throw new Error("[Sitegeist.Archaeopteryx]: Could not determine Neos Context.");return W}},function(W,V,G){"use strict";function _extends(){return(_extends=Object.assign||function(W){for(var V=1;V=0||(oe[G]=W[G]);return oe}G.r(V),G.d(V,"Field",(function(){return it})),G.d(V,"Form",(function(){return ReactFinalForm})),G.d(V,"FormSpy",(function(){return FormSpy})),G.d(V,"useField",(function(){return useField})),G.d(V,"useForm",(function(){return useForm})),G.d(V,"useFormState",(function(){return useFormState})),G.d(V,"version",(function(){return Ue})),G.d(V,"withTypes",(function(){return withTypes}));var ie=G(0),oe=G.n(ie),ue={},ae=/[.[\]]+/,se=function toPath(W){if(null==W||!W.length)return[];if("string"!=typeof W)throw new Error("toPath() expects a string");return null==ue[W]&&(ue[W]=W.split(ae).filter(Boolean)),ue[W]},de=function getIn(W,V){for(var G=se(V),ie=W,oe=0;oe=G.length)return ie;var ue=G[V];if(isNaN(ue)){var ae;if(null==W){var se,de=setInRecursor(void 0,V+1,G,ie,oe);return void 0===de?void 0:((se={})[ue]=de,se)}if(Array.isArray(W))throw new Error("Cannot set a non-numeric property on an array");var le=setInRecursor(W[ue],V+1,G,ie,oe);if(void 0===le){var pe=Object.keys(W).length;if(void 0===W[ue]&&0===pe)return;if(void 0!==W[ue]&&pe<=1)return isNaN(G[V-1])||oe?void 0:{};W[ue];return _objectWithoutPropertiesLoose(W,[ue].map(_toPropertyKey))}return _extends({},W,((ae={})[ue]=le,ae))}var he=Number(ue);if(null==W){var ve=setInRecursor(void 0,V+1,G,ie,oe);if(void 0===ve)return;var ge=[];return ge[he]=ve,ge}if(!Array.isArray(W))throw new Error("Cannot set a numeric property on an object");var Se=setInRecursor(W[he],V+1,G,ie,oe),we=[].concat(W);if(oe&&void 0===Se){if(we.splice(he,1),0===we.length)return}else we[he]=Se;return we}(W,0,se(V),G,ie)},pe="FINAL_FORM/array-error";function publishFieldState(W,V){var G=W.errors,ie=W.initialValues,oe=W.lastSubmittedValues,ue=W.submitErrors,ae=W.submitFailed,se=W.submitSucceeded,le=W.submitting,he=W.values,ve=V.active,ge=V.blur,Se=V.change,we=V.data,Ce=V.focus,Pe=V.modified,Ie=V.modifiedSinceLastSubmit,Fe=V.name,Re=V.touched,Le=V.validating,De=V.visited,Ue=de(he,Fe),ze=de(G,Fe);ze&&ze[pe]&&(ze=ze[pe]);var He=ue&&de(ue,Fe),Ke=ie&&de(ie,Fe),Ze=V.isEqual(Ke,Ue),Qe=!ze&&!He;return{active:ve,blur:ge,change:Se,data:we,dirty:!Ze,dirtySinceLastSubmit:!(!oe||V.isEqual(de(oe,Fe),Ue)),error:ze,focus:Ce,initial:Ke,invalid:!Qe,length:Array.isArray(Ue)?Ue.length:void 0,modified:Pe,modifiedSinceLastSubmit:Ie,name:Fe,pristine:Ze,submitError:He,submitFailed:ae,submitSucceeded:se,submitting:le,touched:Re,valid:Qe,value:Ue,visited:De,validating:Le}}var he=["active","data","dirty","dirtySinceLastSubmit","error","initial","invalid","length","modified","modifiedSinceLastSubmit","pristine","submitError","submitFailed","submitSucceeded","submitting","touched","valid","value","visited","validating"],ve=function shallowEqual(W,V){if(W===V)return!0;if("object"!=typeof W||!W||"object"!=typeof V||!V)return!1;var G=Object.keys(W),ie=Object.keys(V);if(G.length!==ie.length)return!1;for(var oe=Object.prototype.hasOwnProperty.bind(V),ue=0;ue0,Le=++De,ze=Promise.all(Ie).then(function clearAsyncValidationPromise(W){return function(V){return delete Ue[W],V}}(Le));Fe&&(Ue[Le]=ze);var He=function processErrors(){var W=_extends({},ae?ie.errors:{},we),V=function forEachError(V){ue.forEach((function(ie){if(G[ie]){var ue=de(we,ie),le=de(W,ie),pe=Qe(oe[ie]).length,he=Pe[ie];V(ie,pe&&he||se&&ue||(ue||ae?void 0:le))}}))};V((function(V,G){W=le(W,V,G)||{}})),V((function(V,G){if(G&&G[pe]){var ie=de(W,V),oe=[].concat(ie);oe[pe]=G[pe],W=le(W,V,oe)}})),ve(ie.errors,W)||(ie.errors=W),ie.error=we["FINAL_FORM/form-error"]};if(He(),V(),Fe){ge.formState.validating++,V();var Ke=function afterPromise(){ge.formState.validating--,V()};ze.then((function(){De>Le||He()})).then(Ke,Ke)}}else V()},tt=function notifyFieldListeners(W){if(!we){var V=ge.fields,G=ge.fieldSubscribers,ie=ge.formState,oe=_extends({},V),ue=function notifyField(W){var V=oe[W],ue=publishFieldState(ie,V),ae=V.lastFieldState;V.lastFieldState=ue;var se=G[W];se&¬ify(se,ue,ae,Se,void 0===ae)};W?ue(W):Object.keys(oe).forEach(ue)}},rt=function markAllFieldsTouched(){Object.keys(ge.fields).forEach((function(W){ge.fields[W].touched=!0}))},nt=function calculateNextFormState(){var W=ge.fields,V=ge.formState,G=ge.lastFormState,ie=_extends({},W),oe=Object.keys(ie),ue=!1,ae=oe.reduce((function(W,G){return!ie[G].isEqual(de(V.values,G),de(V.initialValues||{},G))&&(ue=!0,W[G]=!0),W}),{}),se=oe.reduce((function(W,G){var oe=V.lastSubmittedValues||{};return ie[G].isEqual(de(V.values,G),de(oe,G))||(W[G]=!0),W}),{});V.pristine=!ue,V.dirtySinceLastSubmit=!(!V.lastSubmittedValues||!Object.values(se).some((function(W){return W}))),V.modifiedSinceLastSubmit=!(!V.lastSubmittedValues||!Object.keys(ie).some((function(W){return ie[W].modifiedSinceLastSubmit}))),V.valid=!(V.error||V.submitError||Fe(V.errors)||V.submitErrors&&Fe(V.submitErrors));var le=function convertToExternalFormState(W){var V=W.active,G=W.dirtySinceLastSubmit,ie=W.modifiedSinceLastSubmit,oe=W.error,ue=W.errors,ae=W.initialValues,se=W.pristine,de=W.submitting,le=W.submitFailed,pe=W.submitSucceeded,he=W.submitError,ve=W.submitErrors,ge=W.valid,Se=W.validating,we=W.values;return{active:V,dirty:!se,dirtySinceLastSubmit:G,modifiedSinceLastSubmit:ie,error:oe,errors:ue,hasSubmitErrors:!!(he||ve&&Fe(ve)),hasValidationErrors:!(!oe&&!Fe(ue)),invalid:!ge,initialValues:ae,pristine:se,submitting:de,submitFailed:le,submitSucceeded:pe,submitError:he,submitErrors:ve,valid:ge,validating:Se>0,values:we}}(V),pe=oe.reduce((function(W,V){return W.modified[V]=ie[V].modified,W.touched[V]=ie[V].touched,W.visited[V]=ie[V].visited,W}),{modified:{},touched:{},visited:{}}),he=pe.modified,Se=pe.touched,we=pe.visited;return le.dirtyFields=G&&ve(G.dirtyFields,ae)?G.dirtyFields:ae,le.dirtyFieldsSinceLastSubmit=G&&ve(G.dirtyFieldsSinceLastSubmit,se)?G.dirtyFieldsSinceLastSubmit:se,le.modified=G&&ve(G.modified,he)?G.modified:he,le.touched=G&&ve(G.touched,Se)?G.touched:Se,le.visited=G&&ve(G.visited,we)?G.visited:we,G&&ve(G,le)?G:le},it=!1,ot=!1,ut=function notifyFormListeners(){if(it)ot=!0;else{if(it=!0,function callDebug(){V&&V(nt(),Object.keys(ge.fields).reduce((function(W,V){return W[V]=ge.fields[V],W}),{}))}(),!(we||Ce&&Le)){var W=ge.lastFormState,G=nt();G!==W&&(ge.lastFormState=G,notify(ge.subscribers,G,W,filterFormState))}it=!1,ot&&(ot=!1,notifyFormListeners())}};et(void 0,(function(){ut()}));var at={batch:function batch(W){we++,W(),we--,tt(),ut()},blur:function blur(W){var V=ge.fields,G=ge.formState,ie=V[W];ie&&(delete G.active,V[W]=_extends({},ie,{active:!1,touched:!0}),he?et(W,(function(){tt(),ut()})):(tt(),ut()))},change:function change(W,V){var G=ge.fields,ie=ge.formState;if(de(ie.values,W)!==V){ze(ge,W,(function(){return V}));var oe=G[W];oe&&(G[W]=_extends({},oe,{modified:!0,modifiedSinceLastSubmit:!!ie.lastSubmittedValues})),he?(tt(),ut()):et(W,(function(){tt(),ut()}))}},get destroyOnUnregister(){return!!G},set destroyOnUnregister(W){G=W},focus:function focus(W){var V=ge.fields[W];V&&!V.active&&(ge.formState.active=W,V.active=!0,V.visited=!0,tt(),ut())},mutators:Ze,getFieldState:function getFieldState(W){var V=ge.fields[W];return V&&V.lastFieldState},getRegisteredFields:function getRegisteredFields(){return Object.keys(ge.fields)},getState:function getState(){return nt()},initialize:function initialize(W){var V=ge.fields,G=ge.formState,oe=_extends({},V),ue="function"==typeof W?W(G.values):W;ie||(G.values=ue);var ae=ie?Object.keys(oe).reduce((function(W,V){return oe[V].isEqual(de(G.values,V),de(G.initialValues||{},V))||(W[V]=de(G.values,V)),W}),{}):{};G.initialValues=ue,G.values=ue,Object.keys(ae).forEach((function(W){G.values=le(G.values,W,ae[W])})),et(void 0,(function(){tt(),ut()}))},isValidationPaused:function isValidationPaused(){return Ce},pauseValidation:function pauseValidation(W){void 0===W&&(W=!0),Ce=!0,Le=W},registerField:function registerField(W,V,ie,oe){void 0===ie&&(ie={}),ge.fieldSubscribers[W]||(ge.fieldSubscribers[W]={index:0,entries:{}});var ue=ge.fieldSubscribers[W].index++;ge.fieldSubscribers[W].entries[ue]={subscriber:Pe(V),subscription:ie,notified:!1},ge.fields[W]||(ge.fields[W]={active:!1,afterSubmit:oe&&oe.afterSubmit,beforeSubmit:oe&&oe.beforeSubmit,blur:function blur(){return at.blur(W)},change:function change(V){return at.change(W,V)},data:oe&&oe.data||{},focus:function focus(){return at.focus(W)},isEqual:oe&&oe.isEqual||Ie,lastFieldState:void 0,modified:!1,modifiedSinceLastSubmit:!1,name:W,touched:!1,valid:!0,validateFields:oe&&oe.validateFields,validators:{},validating:!1,visited:!1});var ae=!1,se=oe&&oe.silent,pe=function notify(){se?tt(W):(ut(),tt())};if(oe){ae=!(!oe.getValidator||!oe.getValidator()),oe.getValidator&&(ge.fields[W].validators[ue]=oe.getValidator);var he=void 0===de(ge.formState.values,W);void 0===oe.initialValue||!he||void 0!==de(ge.formState.values,W)&&de(ge.formState.values,W)!==de(ge.formState.initialValues,W)||(ge.formState.initialValues=le(ge.formState.initialValues||{},W,oe.initialValue),ge.formState.values=le(ge.formState.values,W,oe.initialValue),et(void 0,pe)),void 0!==oe.defaultValue&&void 0===oe.initialValue&&void 0===de(ge.formState.initialValues,W)&&he&&(ge.formState.values=le(ge.formState.values,W,oe.defaultValue))}return ae?et(void 0,pe):pe(),function(){var V=!1;ge.fields[W]&&(V=!(!ge.fields[W].validators[ue]||!ge.fields[W].validators[ue]()),delete ge.fields[W].validators[ue]);var ie=!!ge.fieldSubscribers[W];ie&&delete ge.fieldSubscribers[W].entries[ue];var oe=ie&&!Object.keys(ge.fieldSubscribers[W].entries).length;oe&&(delete ge.fieldSubscribers[W],delete ge.fields[W],V&&(ge.formState.errors=le(ge.formState.errors,W,void 0)||{}),G&&(ge.formState.values=le(ge.formState.values,W,void 0,!0)||{})),se||(V?et(void 0,(function(){ut(),tt()})):oe&&ut())}},reset:function reset(W){void 0===W&&(W=ge.formState.initialValues),ge.formState.submitting&&(ge.formState.resetWhileSubmitting=!0),ge.formState.submitFailed=!1,ge.formState.submitSucceeded=!1,delete ge.formState.submitError,delete ge.formState.submitErrors,delete ge.formState.lastSubmittedValues,at.initialize(W||{})},resetFieldState:function resetFieldState(W){ge.fields[W]=_extends({},ge.fields[W],{active:!1,lastFieldState:void 0,modified:!1,touched:!1,valid:!0,validating:!1,visited:!1}),et(void 0,(function(){tt(),ut()}))},restart:function restart(W){void 0===W&&(W=ge.formState.initialValues),at.batch((function(){for(var V in ge.fields)at.resetFieldState(V),ge.fields[V]=_extends({},ge.fields[V],{active:!1,lastFieldState:void 0,modified:!1,modifiedSinceLastSubmit:!1,touched:!1,valid:!0,validating:!1,visited:!1});at.reset(W)}))},resumeValidation:function resumeValidation(){Ce=!1,Le=!1,Re&&et(void 0,(function(){tt(),ut()})),Re=!1},setConfig:function setConfig(W,oe){switch(W){case"debug":V=oe;break;case"destroyOnUnregister":G=oe;break;case"initialValues":at.initialize(oe);break;case"keepDirtyOnReinitialize":ie=oe;break;case"mutators":ue=oe,oe?(Object.keys(Ze).forEach((function(W){W in oe||delete Ze[W]})),Object.keys(oe).forEach((function(W){Ze[W]=Ke(W)}))):Object.keys(Ze).forEach((function(W){delete Ze[W]}));break;case"onSubmit":ae=oe;break;case"validate":se=oe,et(void 0,(function(){tt(),ut()}));break;case"validateOnBlur":he=oe;break;default:throw new Error("Unrecognised option "+W)}},submit:function submit(){var W=ge.formState;if(!W.submitting){if(delete W.submitErrors,delete W.submitError,W.lastSubmittedValues=_extends({},W.values),function hasSyncErrors(){return!(!ge.formState.error&&!Fe(ge.formState.errors))}())return rt(),ge.formState.submitFailed=!0,ut(),void tt();var V=Object.keys(Ue);if(V.length)Promise.all(V.map((function(W){return Ue[Number(W)]}))).then(at.submit,console.error);else if(!function beforeSubmit(){return Object.keys(ge.fields).some((function(W){return ge.fields[W].beforeSubmit&&!1===ge.fields[W].beforeSubmit()}))}()){var G,ie=!1,oe=function complete(V){W.submitting=!1;var oe=W.resetWhileSubmitting;return oe&&(W.resetWhileSubmitting=!1),V&&Fe(V)?(W.submitFailed=!0,W.submitSucceeded=!1,W.submitErrors=V,W.submitError=V["FINAL_FORM/form-error"],rt()):(oe||(W.submitFailed=!1,W.submitSucceeded=!0),function afterSubmit(){Object.keys(ge.fields).forEach((function(W){return ge.fields[W].afterSubmit&&ge.fields[W].afterSubmit()}))}()),ut(),tt(),ie=!0,G&&G(V),V};W.submitting=!0,W.submitFailed=!1,W.submitSucceeded=!1,W.lastSubmittedValues=_extends({},W.values),function resetModifiedAfterSubmit(){Object.keys(ge.fields).forEach((function(W){return ge.fields[W].modifiedSinceLastSubmit=!1}))}();var ue=ae(W.values,at,oe);if(!ie){if(ue&&isPromise(ue))return ut(),tt(),ue.then(oe,(function(W){throw oe(),W}));if(ae.length>=3)return ut(),tt(),new Promise((function(W){G=W}));oe(ue)}}}},subscribe:function subscribe(W,V){if(!W)throw new Error("No callback given.");if(!V)throw new Error("No subscription provided. What values do you want to listen to?");var G=Pe(W),ie=ge.subscribers,oe=ie.index++;ie.entries[oe]={subscriber:G,subscription:V,notified:!1};var ue=nt();return notifySubscriber(G,V,ue,ue,filterFormState,!0),function(){delete ie.entries[oe]}}};return at}function renderComponent(W,V,G){var oe=W.render,ue=W.children,ae=W.component,se=_objectWithoutPropertiesLoose(W,["render","children","component"]);if(ae)return ie.createElement(ae,Object.assign(V,se,{children:ue,render:oe}));if(oe)return oe(void 0===ue?Object.assign(V,se):Object.assign(V,se,{children:ue}));if("function"!=typeof ue)throw new Error("Must specify either a render prop, a render function as children, or a component prop to "+G);return ue(Object.assign(V,se))}function useWhenValueChanges(W,V,G){void 0===G&&(G=function isEqual(W,V){return W===V});var ie=oe.a.useRef(W);oe.a.useEffect((function(){G(W,ie.current)||(V(),ie.current=W)}))}var Re=function shallowEqual(W,V){if(W===V)return!0;if("object"!=typeof W||!W||"object"!=typeof V||!V)return!1;var G=Object.keys(W),ie=Object.keys(V);if(G.length!==ie.length)return!1;for(var oe=Object.prototype.hasOwnProperty.bind(V),ue=0;ue component");return V}function useFormState(W){var V=void 0===W?{}:W,G=V.onChange,oe=V.subscription,ue=void 0===oe?Ze:oe,ae=useForm("useFormState"),se=ie.useRef(!0),de=ie.useRef(G);de.current=G;var le=ie.useState((function(){var W={};return ae.subscribe((function(V){W=V}),ue)(),G&&G(W),W})),pe=le[0],he=le[1];ie.useEffect((function(){return ae.subscribe((function(W){se.current?se.current=!1:(he(W),de.current&&de.current(W))}),ue)}),[]);var ve={};return He(ve,pe),ve}function FormSpy(W){var V=W.onChange,G=W.subscription,ie=_objectWithoutPropertiesLoose(W,["onChange","subscription"]),oe=useForm("FormSpy"),ue=useFormState({onChange:V,subscription:G});if(V)return null;var ae={form:_extends({},oe,{reset:function reset(W){Le(W)?oe.reset():oe.reset(W)}})};return renderComponent(_extends({},ie,ae),ue,"FormSpy")}var Qe="undefined"!=typeof window&&window.navigator&&window.navigator.product&&"ReactNative"===window.navigator.product,et=he.reduce((function(W,V){return W[V]=!0,W}),{}),tt=function defaultFormat(W,V){return void 0===W?"":W},rt=function defaultParse(W,V){return""===W?void 0:W},nt=function defaultIsEqual(W,V){return W===V};function useField(W,V){void 0===V&&(V={});var G=V,oe=G.afterSubmit,ue=G.allowNull,ae=G.component,se=G.data,de=G.defaultValue,le=G.format,pe=void 0===le?tt:le,he=G.formatOnBlur,ve=G.initialValue,ge=G.multiple,Se=G.parse,we=void 0===Se?rt:Se,Ce=G.subscription,Pe=void 0===Ce?et:Ce,Ie=G.type,Fe=G.validateFields,Re=G.value,Le=useForm("useField"),De=useLatest(V),Ue=function register(V,G){return Le.registerField(W,V,Pe,{afterSubmit:oe,beforeSubmit:function beforeSubmit(){var V=De.current,beforeSubmit=V.beforeSubmit,G=V.formatOnBlur,ie=V.format,oe=void 0===ie?tt:ie;if(G){var ue=Le.getFieldState(W).value,ae=oe(ue,W);ae!==ue&&Le.change(W,ae)}return beforeSubmit&&beforeSubmit()},data:se,defaultValue:de,getValidator:function getValidator(){return De.current.validate},initialValue:ve,isEqual:function isEqual(W,V){return(De.current.isEqual||nt)(W,V)},silent:G,validateFields:Fe})},He=ie.useRef(!0),Ke=ie.useState((function(){var W={},V=Le.destroyOnUnregister;return Le.destroyOnUnregister=!1,Ue((function(V){W=V}),!0)(),Le.destroyOnUnregister=V,W})),Ze=Ke[0],it=Ke[1];ie.useEffect((function(){return Ue((function(W){He.current?He.current=!1:it(W)}),!1)}),[W,se,de,ve]);var ot={onBlur:ie.useCallback((function(W){if(Ze.blur(),he){var V=Le.getFieldState(Ze.name);Ze.change(pe(V.value,Ze.name))}}),[Ze.blur,Ze.name,pe,he]),onChange:ie.useCallback((function(V){var G=V&&V.target?function getValue(W,V,G,ie){if(!ie&&W.nativeEvent&&void 0!==W.nativeEvent.text)return W.nativeEvent.text;if(ie&&W.nativeEvent)return W.nativeEvent.text;var oe=W.target,ue=oe.type,ae=oe.value,se=oe.checked;switch(ue){case"checkbox":if(void 0!==G){if(se)return Array.isArray(V)?V.concat(G):[G];if(!Array.isArray(V))return V;var de=V.indexOf(G);return de<0?V:V.slice(0,de).concat(V.slice(de+1))}return!!se;case"select-multiple":return function getSelectedValues(W){var V=[];if(W)for(var G=0;G component");return renderComponent(_extends({children:ae,component:se,ref:V},De),Ue,"Field("+we+")")}));function withTypes(){return{Form:ReactFinalForm,FormSpy:FormSpy}}},function(W,V,G){"use strict";G.d(V,"b",(function(){return ue})),G.d(V,"a",(function(){return ae}));var ie=G(1),oe=function(W){function QueueAction(V,G){var ie=W.call(this,V,G)||this;return ie.scheduler=V,ie.work=G,ie}return ie.__extends(QueueAction,W),QueueAction.prototype.schedule=function(V,G){return void 0===G&&(G=0),G>0?W.prototype.schedule.call(this,V,G):(this.delay=G,this.state=V,this.scheduler.flush(this),this)},QueueAction.prototype.execute=function(V,G){return G>0||this.closed?W.prototype.execute.call(this,V,G):this._execute(V,G)},QueueAction.prototype.requestAsyncId=function(V,G,ie){return void 0===ie&&(ie=0),null!==ie&&ie>0||null===ie&&this.delay>0?W.prototype.requestAsyncId.call(this,V,G,ie):V.flush(this)},QueueAction}(G(36).a),ue=new(function(W){function QueueScheduler(){return null!==W&&W.apply(this,arguments)||this}return ie.__extends(QueueScheduler,W),QueueScheduler}(G(34).a))(oe),ae=ue},function(W,V,G){"use strict";G.d(V,"a",(function(){return ie}));var ie=function(){function Scheduler(W,V){void 0===V&&(V=Scheduler.now),this.SchedulerAction=W,this.now=V}return Scheduler.prototype.schedule=function(W,V,G){return void 0===V&&(V=0),new this.SchedulerAction(this,W).schedule(G,V)},Scheduler.now=function(){return Date.now()},Scheduler}()},function(W,V,G){var ie=G(180),oe=G(74),ue=G(199),ae=G(54).isError,se=ue.sprintf;function parseConstructorArguments(W){var V,G,oe,ue;if(ie.object(W,"args"),ie.bool(W.strict,"args.strict"),ie.array(W.argv,"args.argv"),0===(V=W.argv).length)G={},oe=[];else if(ae(V[0]))G={cause:V[0]},oe=V.slice(1);else if("object"==typeof V[0]){for(ue in G={},V[0])G[ue]=V[0][ue];oe=V.slice(1)}else ie.string(V[0],"first argument to VError, SError, or WError constructor must be a string, object, or Error"),G={},oe=V;return ie.object(G),G.strict||W.strict||(oe=oe.map((function(W){return null===W?"null":void 0===W?"undefined":W}))),{options:G,shortmessage:0===oe.length?"":se.apply(null,oe)}}function VError(){var W,V,G,oe,ue,se,de;if(W=Array.prototype.slice.call(arguments,0),!(this instanceof VError))return V=Object.create(VError.prototype),VError.apply(V,arguments),V;if((G=parseConstructorArguments({argv:W,strict:!1})).options.name&&(ie.string(G.options.name,'error\'s "name" must be a string'),this.name=G.options.name),this.jse_shortmsg=G.shortmessage,se=G.shortmessage,(oe=G.options.cause)&&(ie.ok(ae(oe),"cause is not an Error"),this.jse_cause=oe,G.options.skipCauseMessage||(se+=": "+oe.message)),this.jse_info={},G.options.info)for(de in G.options.info)this.jse_info[de]=G.options.info[de];return this.message=se,Error.call(this,se),Error.captureStackTrace&&(ue=G.options.constructorOpt||this.constructor,Error.captureStackTrace(this,ue)),this}function SError(){var W,V,G,ie;return W=Array.prototype.slice.call(arguments,0),this instanceof SError?(ie=(G=parseConstructorArguments({argv:W,strict:!0})).options,VError.call(this,ie,"%s",G.shortmessage),this):(V=Object.create(SError.prototype),SError.apply(V,arguments),V)}function MultiError(W){ie.array(W,"list of errors"),ie.ok(W.length>0,"must be at least one error"),this.ase_errors=W,VError.call(this,{cause:W[0]},"first of %d error%s",W.length,1==W.length?"":"s")}function WError(){var W,V,G,ie;return W=Array.prototype.slice.call(arguments,0),this instanceof WError?((ie=(G=parseConstructorArguments({argv:W,strict:!1})).options).skipCauseMessage=!0,VError.call(this,ie,"%s",G.shortmessage),this):(V=Object.create(WError.prototype),WError.apply(V,W),V)}W.exports=VError,VError.VError=VError,VError.SError=SError,VError.WError=WError,VError.MultiError=MultiError,oe.inherits(VError,Error),VError.prototype.name="VError",VError.prototype.toString=function ve_toString(){var W=this.hasOwnProperty("name")&&this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(W+=": "+this.message),W},VError.prototype.cause=function ve_cause(){var W=VError.cause(this);return null===W?void 0:W},VError.cause=function(W){return ie.ok(ae(W),"err must be an Error"),ae(W.jse_cause)?W.jse_cause:null},VError.info=function(W){var V,G,oe;if(ie.ok(ae(W),"err must be an Error"),V=null!==(G=VError.cause(W))?VError.info(G):{},"object"==typeof W.jse_info&&null!==W.jse_info)for(oe in W.jse_info)V[oe]=W.jse_info[oe];return V},VError.findCauseByName=function(W,V){var G;for(ie.ok(ae(W),"err must be an Error"),ie.string(V,"name"),ie.ok(V.length>0,"name cannot be empty"),G=W;null!==G;G=VError.cause(G))if(ie.ok(ae(G)),G.name==V)return G;return null},VError.hasCauseWithName=function(W,V){return null!==VError.findCauseByName(W,V)},VError.fullStack=function(W){ie.ok(ae(W),"err must be an Error");var V=VError.cause(W);return V?W.stack+"\ncaused by: "+VError.fullStack(V):W.stack},VError.errorFromList=function(W){return ie.arrayOfObject(W,"errors"),0===W.length?null:(W.forEach((function(W){ie.ok(ae(W))})),1==W.length?W[0]:new MultiError(W))},VError.errorForEach=function(W,V){ie.ok(ae(W),"err must be an Error"),ie.func(V,"func"),W instanceof MultiError?W.errors().forEach((function iterError(W){V(W)})):V(W)},oe.inherits(SError,VError),oe.inherits(MultiError,VError),MultiError.prototype.name="MultiError",MultiError.prototype.errors=function me_errors(){return this.ase_errors.slice(0)},oe.inherits(WError,VError),WError.prototype.name="WError",WError.prototype.toString=function we_toString(){var W=this.hasOwnProperty("name")&&this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(W+=": "+this.message),this.jse_cause&&this.jse_cause.message&&(W+="; caused by "+this.jse_cause.toString()),W},WError.prototype.cause=function we_cause(W){return ae(W)&&(this.jse_cause=W),this.jse_cause}},function(W,V,G){"use strict";(function(W){var ie=G(181),oe=G(182),ue=G(112);function kMaxLength(){return Buffer.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function createBuffer(W,V){if(kMaxLength()=kMaxLength())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kMaxLength().toString(16)+" bytes");return 0|W}function byteLength(W,V){if(Buffer.isBuffer(W))return W.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(W)||W instanceof ArrayBuffer))return W.byteLength;"string"!=typeof W&&(W=""+W);var G=W.length;if(0===G)return 0;for(var ie=!1;;)switch(V){case"ascii":case"latin1":case"binary":return G;case"utf8":case"utf-8":case void 0:return utf8ToBytes(W).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*G;case"hex":return G>>>1;case"base64":return base64ToBytes(W).length;default:if(ie)return utf8ToBytes(W).length;V=(""+V).toLowerCase(),ie=!0}}function slowToString(W,V,G){var ie=!1;if((void 0===V||V<0)&&(V=0),V>this.length)return"";if((void 0===G||G>this.length)&&(G=this.length),G<=0)return"";if((G>>>=0)<=(V>>>=0))return"";for(W||(W="utf8");;)switch(W){case"hex":return hexSlice(this,V,G);case"utf8":case"utf-8":return utf8Slice(this,V,G);case"ascii":return asciiSlice(this,V,G);case"latin1":case"binary":return latin1Slice(this,V,G);case"base64":return base64Slice(this,V,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,V,G);default:if(ie)throw new TypeError("Unknown encoding: "+W);W=(W+"").toLowerCase(),ie=!0}}function swap(W,V,G){var ie=W[V];W[V]=W[G],W[G]=ie}function bidirectionalIndexOf(W,V,G,ie,oe){if(0===W.length)return-1;if("string"==typeof G?(ie=G,G=0):G>2147483647?G=2147483647:G<-2147483648&&(G=-2147483648),G=+G,isNaN(G)&&(G=oe?0:W.length-1),G<0&&(G=W.length+G),G>=W.length){if(oe)return-1;G=W.length-1}else if(G<0){if(!oe)return-1;G=0}if("string"==typeof V&&(V=Buffer.from(V,ie)),Buffer.isBuffer(V))return 0===V.length?-1:arrayIndexOf(W,V,G,ie,oe);if("number"==typeof V)return V&=255,Buffer.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?oe?Uint8Array.prototype.indexOf.call(W,V,G):Uint8Array.prototype.lastIndexOf.call(W,V,G):arrayIndexOf(W,[V],G,ie,oe);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(W,V,G,ie,oe){var ue,ae=1,se=W.length,de=V.length;if(void 0!==ie&&("ucs2"===(ie=String(ie).toLowerCase())||"ucs-2"===ie||"utf16le"===ie||"utf-16le"===ie)){if(W.length<2||V.length<2)return-1;ae=2,se/=2,de/=2,G/=2}function read(W,V){return 1===ae?W[V]:W.readUInt16BE(V*ae)}if(oe){var le=-1;for(ue=G;uese&&(G=se-de),ue=G;ue>=0;ue--){for(var pe=!0,he=0;heoe&&(ie=oe):ie=oe;var ue=V.length;if(ue%2!=0)throw new TypeError("Invalid hex string");ie>ue/2&&(ie=ue/2);for(var ae=0;ae>8,oe=G%256,ue.push(oe),ue.push(ie);return ue}(V,W.length-G),W,G,ie)}function base64Slice(W,V,G){return 0===V&&G===W.length?ie.fromByteArray(W):ie.fromByteArray(W.slice(V,G))}function utf8Slice(W,V,G){G=Math.min(W.length,G);for(var ie=[],oe=V;oe239?4:le>223?3:le>191?2:1;if(oe+he<=G)switch(he){case 1:le<128&&(pe=le);break;case 2:128==(192&(ue=W[oe+1]))&&(de=(31&le)<<6|63&ue)>127&&(pe=de);break;case 3:ue=W[oe+1],ae=W[oe+2],128==(192&ue)&&128==(192&ae)&&(de=(15&le)<<12|(63&ue)<<6|63&ae)>2047&&(de<55296||de>57343)&&(pe=de);break;case 4:ue=W[oe+1],ae=W[oe+2],se=W[oe+3],128==(192&ue)&&128==(192&ae)&&128==(192&se)&&(de=(15&le)<<18|(63&ue)<<12|(63&ae)<<6|63&se)>65535&&de<1114112&&(pe=de)}null===pe?(pe=65533,he=1):pe>65535&&(pe-=65536,ie.push(pe>>>10&1023|55296),pe=56320|1023&pe),ie.push(pe),oe+=he}return function decodeCodePointsArray(W){var V=W.length;if(V<=4096)return String.fromCharCode.apply(String,W);var G="",ie=0;for(;ie0&&(W=this.toString("hex",0,G).match(/.{2}/g).join(" "),this.length>G&&(W+=" ... ")),""},Buffer.prototype.compare=function compare(W,V,G,ie,oe){if(!Buffer.isBuffer(W))throw new TypeError("Argument must be a Buffer");if(void 0===V&&(V=0),void 0===G&&(G=W?W.length:0),void 0===ie&&(ie=0),void 0===oe&&(oe=this.length),V<0||G>W.length||ie<0||oe>this.length)throw new RangeError("out of range index");if(ie>=oe&&V>=G)return 0;if(ie>=oe)return-1;if(V>=G)return 1;if(this===W)return 0;for(var ue=(oe>>>=0)-(ie>>>=0),ae=(G>>>=0)-(V>>>=0),se=Math.min(ue,ae),de=this.slice(ie,oe),le=W.slice(V,G),pe=0;peoe)&&(G=oe),W.length>0&&(G<0||V<0)||V>this.length)throw new RangeError("Attempt to write outside buffer bounds");ie||(ie="utf8");for(var ue=!1;;)switch(ie){case"hex":return hexWrite(this,W,V,G);case"utf8":case"utf-8":return utf8Write(this,W,V,G);case"ascii":return asciiWrite(this,W,V,G);case"latin1":case"binary":return latin1Write(this,W,V,G);case"base64":return base64Write(this,W,V,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,W,V,G);default:if(ue)throw new TypeError("Unknown encoding: "+ie);ie=(""+ie).toLowerCase(),ue=!0}},Buffer.prototype.toJSON=function toJSON(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function asciiSlice(W,V,G){var ie="";G=Math.min(W.length,G);for(var oe=V;oeie)&&(G=ie);for(var oe="",ue=V;ueG)throw new RangeError("Trying to access beyond buffer length")}function checkInt(W,V,G,ie,oe,ue){if(!Buffer.isBuffer(W))throw new TypeError('"buffer" argument must be a Buffer instance');if(V>oe||VW.length)throw new RangeError("Index out of range")}function objectWriteUInt16(W,V,G,ie){V<0&&(V=65535+V+1);for(var oe=0,ue=Math.min(W.length-G,2);oe>>8*(ie?oe:1-oe)}function objectWriteUInt32(W,V,G,ie){V<0&&(V=4294967295+V+1);for(var oe=0,ue=Math.min(W.length-G,4);oe>>8*(ie?oe:3-oe)&255}function checkIEEE754(W,V,G,ie,oe,ue){if(G+ie>W.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("Index out of range")}function writeFloat(W,V,G,ie,ue){return ue||checkIEEE754(W,0,G,4),oe.write(W,V,G,ie,23,4),G+4}function writeDouble(W,V,G,ie,ue){return ue||checkIEEE754(W,0,G,8),oe.write(W,V,G,ie,52,8),G+8}Buffer.prototype.slice=function slice(W,V){var G,ie=this.length;if((W=~~W)<0?(W+=ie)<0&&(W=0):W>ie&&(W=ie),(V=void 0===V?ie:~~V)<0?(V+=ie)<0&&(V=0):V>ie&&(V=ie),V0&&(oe*=256);)ie+=this[W+--V]*oe;return ie},Buffer.prototype.readUInt8=function readUInt8(W,V){return V||checkOffset(W,1,this.length),this[W]},Buffer.prototype.readUInt16LE=function readUInt16LE(W,V){return V||checkOffset(W,2,this.length),this[W]|this[W+1]<<8},Buffer.prototype.readUInt16BE=function readUInt16BE(W,V){return V||checkOffset(W,2,this.length),this[W]<<8|this[W+1]},Buffer.prototype.readUInt32LE=function readUInt32LE(W,V){return V||checkOffset(W,4,this.length),(this[W]|this[W+1]<<8|this[W+2]<<16)+16777216*this[W+3]},Buffer.prototype.readUInt32BE=function readUInt32BE(W,V){return V||checkOffset(W,4,this.length),16777216*this[W]+(this[W+1]<<16|this[W+2]<<8|this[W+3])},Buffer.prototype.readIntLE=function readIntLE(W,V,G){W|=0,V|=0,G||checkOffset(W,V,this.length);for(var ie=this[W],oe=1,ue=0;++ue=(oe*=128)&&(ie-=Math.pow(2,8*V)),ie},Buffer.prototype.readIntBE=function readIntBE(W,V,G){W|=0,V|=0,G||checkOffset(W,V,this.length);for(var ie=V,oe=1,ue=this[W+--ie];ie>0&&(oe*=256);)ue+=this[W+--ie]*oe;return ue>=(oe*=128)&&(ue-=Math.pow(2,8*V)),ue},Buffer.prototype.readInt8=function readInt8(W,V){return V||checkOffset(W,1,this.length),128&this[W]?-1*(255-this[W]+1):this[W]},Buffer.prototype.readInt16LE=function readInt16LE(W,V){V||checkOffset(W,2,this.length);var G=this[W]|this[W+1]<<8;return 32768&G?4294901760|G:G},Buffer.prototype.readInt16BE=function readInt16BE(W,V){V||checkOffset(W,2,this.length);var G=this[W+1]|this[W]<<8;return 32768&G?4294901760|G:G},Buffer.prototype.readInt32LE=function readInt32LE(W,V){return V||checkOffset(W,4,this.length),this[W]|this[W+1]<<8|this[W+2]<<16|this[W+3]<<24},Buffer.prototype.readInt32BE=function readInt32BE(W,V){return V||checkOffset(W,4,this.length),this[W]<<24|this[W+1]<<16|this[W+2]<<8|this[W+3]},Buffer.prototype.readFloatLE=function readFloatLE(W,V){return V||checkOffset(W,4,this.length),oe.read(this,W,!0,23,4)},Buffer.prototype.readFloatBE=function readFloatBE(W,V){return V||checkOffset(W,4,this.length),oe.read(this,W,!1,23,4)},Buffer.prototype.readDoubleLE=function readDoubleLE(W,V){return V||checkOffset(W,8,this.length),oe.read(this,W,!0,52,8)},Buffer.prototype.readDoubleBE=function readDoubleBE(W,V){return V||checkOffset(W,8,this.length),oe.read(this,W,!1,52,8)},Buffer.prototype.writeUIntLE=function writeUIntLE(W,V,G,ie){(W=+W,V|=0,G|=0,ie)||checkInt(this,W,V,G,Math.pow(2,8*G)-1,0);var oe=1,ue=0;for(this[V]=255&W;++ue=0&&(ue*=256);)this[V+oe]=W/ue&255;return V+G},Buffer.prototype.writeUInt8=function writeUInt8(W,V,G){return W=+W,V|=0,G||checkInt(this,W,V,1,255,0),Buffer.TYPED_ARRAY_SUPPORT||(W=Math.floor(W)),this[V]=255&W,V+1},Buffer.prototype.writeUInt16LE=function writeUInt16LE(W,V,G){return W=+W,V|=0,G||checkInt(this,W,V,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[V]=255&W,this[V+1]=W>>>8):objectWriteUInt16(this,W,V,!0),V+2},Buffer.prototype.writeUInt16BE=function writeUInt16BE(W,V,G){return W=+W,V|=0,G||checkInt(this,W,V,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[V]=W>>>8,this[V+1]=255&W):objectWriteUInt16(this,W,V,!1),V+2},Buffer.prototype.writeUInt32LE=function writeUInt32LE(W,V,G){return W=+W,V|=0,G||checkInt(this,W,V,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[V+3]=W>>>24,this[V+2]=W>>>16,this[V+1]=W>>>8,this[V]=255&W):objectWriteUInt32(this,W,V,!0),V+4},Buffer.prototype.writeUInt32BE=function writeUInt32BE(W,V,G){return W=+W,V|=0,G||checkInt(this,W,V,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[V]=W>>>24,this[V+1]=W>>>16,this[V+2]=W>>>8,this[V+3]=255&W):objectWriteUInt32(this,W,V,!1),V+4},Buffer.prototype.writeIntLE=function writeIntLE(W,V,G,ie){if(W=+W,V|=0,!ie){var oe=Math.pow(2,8*G-1);checkInt(this,W,V,G,oe-1,-oe)}var ue=0,ae=1,se=0;for(this[V]=255&W;++ue>0)-se&255;return V+G},Buffer.prototype.writeIntBE=function writeIntBE(W,V,G,ie){if(W=+W,V|=0,!ie){var oe=Math.pow(2,8*G-1);checkInt(this,W,V,G,oe-1,-oe)}var ue=G-1,ae=1,se=0;for(this[V+ue]=255&W;--ue>=0&&(ae*=256);)W<0&&0===se&&0!==this[V+ue+1]&&(se=1),this[V+ue]=(W/ae>>0)-se&255;return V+G},Buffer.prototype.writeInt8=function writeInt8(W,V,G){return W=+W,V|=0,G||checkInt(this,W,V,1,127,-128),Buffer.TYPED_ARRAY_SUPPORT||(W=Math.floor(W)),W<0&&(W=255+W+1),this[V]=255&W,V+1},Buffer.prototype.writeInt16LE=function writeInt16LE(W,V,G){return W=+W,V|=0,G||checkInt(this,W,V,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[V]=255&W,this[V+1]=W>>>8):objectWriteUInt16(this,W,V,!0),V+2},Buffer.prototype.writeInt16BE=function writeInt16BE(W,V,G){return W=+W,V|=0,G||checkInt(this,W,V,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[V]=W>>>8,this[V+1]=255&W):objectWriteUInt16(this,W,V,!1),V+2},Buffer.prototype.writeInt32LE=function writeInt32LE(W,V,G){return W=+W,V|=0,G||checkInt(this,W,V,4,2147483647,-2147483648),Buffer.TYPED_ARRAY_SUPPORT?(this[V]=255&W,this[V+1]=W>>>8,this[V+2]=W>>>16,this[V+3]=W>>>24):objectWriteUInt32(this,W,V,!0),V+4},Buffer.prototype.writeInt32BE=function writeInt32BE(W,V,G){return W=+W,V|=0,G||checkInt(this,W,V,4,2147483647,-2147483648),W<0&&(W=4294967295+W+1),Buffer.TYPED_ARRAY_SUPPORT?(this[V]=W>>>24,this[V+1]=W>>>16,this[V+2]=W>>>8,this[V+3]=255&W):objectWriteUInt32(this,W,V,!1),V+4},Buffer.prototype.writeFloatLE=function writeFloatLE(W,V,G){return writeFloat(this,W,V,!0,G)},Buffer.prototype.writeFloatBE=function writeFloatBE(W,V,G){return writeFloat(this,W,V,!1,G)},Buffer.prototype.writeDoubleLE=function writeDoubleLE(W,V,G){return writeDouble(this,W,V,!0,G)},Buffer.prototype.writeDoubleBE=function writeDoubleBE(W,V,G){return writeDouble(this,W,V,!1,G)},Buffer.prototype.copy=function copy(W,V,G,ie){if(G||(G=0),ie||0===ie||(ie=this.length),V>=W.length&&(V=W.length),V||(V=0),ie>0&&ie=this.length)throw new RangeError("sourceStart out of bounds");if(ie<0)throw new RangeError("sourceEnd out of bounds");ie>this.length&&(ie=this.length),W.length-V=0;--oe)W[oe+V]=this[oe+G];else if(ue<1e3||!Buffer.TYPED_ARRAY_SUPPORT)for(oe=0;oe>>=0,G=void 0===G?this.length:G>>>0,W||(W=0),"number"==typeof W)for(ue=V;ue55295&&G<57344){if(!oe){if(G>56319){(V-=3)>-1&&ue.push(239,191,189);continue}if(ae+1===ie){(V-=3)>-1&&ue.push(239,191,189);continue}oe=G;continue}if(G<56320){(V-=3)>-1&&ue.push(239,191,189),oe=G;continue}G=65536+(oe-55296<<10|G-56320)}else oe&&(V-=3)>-1&&ue.push(239,191,189);if(oe=null,G<128){if((V-=1)<0)break;ue.push(G)}else if(G<2048){if((V-=2)<0)break;ue.push(G>>6|192,63&G|128)}else if(G<65536){if((V-=3)<0)break;ue.push(G>>12|224,G>>6&63|128,63&G|128)}else{if(!(G<1114112))throw new Error("Invalid code point");if((V-=4)<0)break;ue.push(G>>18|240,G>>12&63|128,G>>6&63|128,63&G|128)}}return ue}function base64ToBytes(W){return ie.toByteArray(function base64clean(W){if((W=function stringtrim(W){return W.trim?W.trim():W.replace(/^\s+|\s+$/g,"")}(W).replace(ae,"")).length<2)return"";for(;W.length%4!=0;)W+="=";return W}(W))}function blitBuffer(W,V,G,ie){for(var oe=0;oe=V.length||oe>=W.length);++oe)V[oe+G]=W[oe];return oe}}).call(this,G(47))},function(W,V,G){(function(W){var ie=Object.getOwnPropertyDescriptors||function getOwnPropertyDescriptors(W){for(var V=Object.keys(W),G={},ie=0;ie=ue)return W;switch(W){case"%s":return String(ie[G++]);case"%d":return Number(ie[G++]);case"%j":try{return JSON.stringify(ie[G++])}catch(W){return"[Circular]"}default:return W}})),se=ie[G];G=3&&(ie.depth=arguments[2]),arguments.length>=4&&(ie.colors=arguments[3]),isBoolean(G)?ie.showHidden=G:G&&V._extend(ie,G),isUndefined(ie.showHidden)&&(ie.showHidden=!1),isUndefined(ie.depth)&&(ie.depth=2),isUndefined(ie.colors)&&(ie.colors=!1),isUndefined(ie.customInspect)&&(ie.customInspect=!0),ie.colors&&(ie.stylize=stylizeWithColor),formatValue(ie,W,ie.depth)}function stylizeWithColor(W,V){var G=inspect.styles[V];return G?"["+inspect.colors[G][0]+"m"+W+"["+inspect.colors[G][1]+"m":W}function stylizeNoColor(W,V){return W}function formatValue(W,G,ie){if(W.customInspect&&G&&isFunction(G.inspect)&&G.inspect!==V.inspect&&(!G.constructor||G.constructor.prototype!==G)){var oe=G.inspect(ie,W);return isString(oe)||(oe=formatValue(W,oe,ie)),oe}var ue=function formatPrimitive(W,V){if(isUndefined(V))return W.stylize("undefined","undefined");if(isString(V)){var G="'"+JSON.stringify(V).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return W.stylize(G,"string")}if(isNumber(V))return W.stylize(""+V,"number");if(isBoolean(V))return W.stylize(""+V,"boolean");if(isNull(V))return W.stylize("null","null")}(W,G);if(ue)return ue;var ae=Object.keys(G),se=function arrayToHash(W){var V={};return W.forEach((function(W,G){V[W]=!0})),V}(ae);if(W.showHidden&&(ae=Object.getOwnPropertyNames(G)),isError(G)&&(ae.indexOf("message")>=0||ae.indexOf("description")>=0))return formatError(G);if(0===ae.length){if(isFunction(G)){var de=G.name?": "+G.name:"";return W.stylize("[Function"+de+"]","special")}if(isRegExp(G))return W.stylize(RegExp.prototype.toString.call(G),"regexp");if(isDate(G))return W.stylize(Date.prototype.toString.call(G),"date");if(isError(G))return formatError(G)}var le,pe="",he=!1,ve=["{","}"];(isArray(G)&&(he=!0,ve=["[","]"]),isFunction(G))&&(pe=" [Function"+(G.name?": "+G.name:"")+"]");return isRegExp(G)&&(pe=" "+RegExp.prototype.toString.call(G)),isDate(G)&&(pe=" "+Date.prototype.toUTCString.call(G)),isError(G)&&(pe=" "+formatError(G)),0!==ae.length||he&&0!=G.length?ie<0?isRegExp(G)?W.stylize(RegExp.prototype.toString.call(G),"regexp"):W.stylize("[Object]","special"):(W.seen.push(G),le=he?function formatArray(W,V,G,ie,oe){for(var ue=[],ae=0,se=V.length;ae=0&&0,W+V.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return G[0]+(""===V?"":V+"\n ")+" "+W.join(",\n ")+" "+G[1];return G[0]+V+" "+W.join(", ")+" "+G[1]}(le,pe,ve)):ve[0]+pe+ve[1]}function formatError(W){return"["+Error.prototype.toString.call(W)+"]"}function formatProperty(W,V,G,ie,oe,ue){var ae,se,de;if((de=Object.getOwnPropertyDescriptor(V,oe)||{value:V[oe]}).get?se=de.set?W.stylize("[Getter/Setter]","special"):W.stylize("[Getter]","special"):de.set&&(se=W.stylize("[Setter]","special")),hasOwnProperty(ie,oe)||(ae="["+oe+"]"),se||(W.seen.indexOf(de.value)<0?(se=isNull(G)?formatValue(W,de.value,null):formatValue(W,de.value,G-1)).indexOf("\n")>-1&&(se=ue?se.split("\n").map((function(W){return" "+W})).join("\n").substr(2):"\n"+se.split("\n").map((function(W){return" "+W})).join("\n")):se=W.stylize("[Circular]","special")),isUndefined(ae)){if(ue&&oe.match(/^\d+$/))return se;(ae=JSON.stringify(""+oe)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(ae=ae.substr(1,ae.length-2),ae=W.stylize(ae,"name")):(ae=ae.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),ae=W.stylize(ae,"string"))}return ae+": "+se}function isArray(W){return Array.isArray(W)}function isBoolean(W){return"boolean"==typeof W}function isNull(W){return null===W}function isNumber(W){return"number"==typeof W}function isString(W){return"string"==typeof W}function isUndefined(W){return void 0===W}function isRegExp(W){return isObject(W)&&"[object RegExp]"===objectToString(W)}function isObject(W){return"object"==typeof W&&null!==W}function isDate(W){return isObject(W)&&"[object Date]"===objectToString(W)}function isError(W){return isObject(W)&&("[object Error]"===objectToString(W)||W instanceof Error)}function isFunction(W){return"function"==typeof W}function objectToString(W){return Object.prototype.toString.call(W)}function pad(W){return W<10?"0"+W.toString(10):W.toString(10)}V.debuglog=function(G){if(isUndefined(ue)&&(ue=W.env.NODE_DEBUG||""),G=G.toUpperCase(),!ae[G])if(new RegExp("\\b"+G+"\\b","i").test(ue)){var ie=W.pid;ae[G]=function(){var W=V.format.apply(V,arguments);console.error("%s %d: %s",G,ie,W)}}else ae[G]=function(){};return ae[G]},V.inspect=inspect,inspect.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},inspect.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},V.isArray=isArray,V.isBoolean=isBoolean,V.isNull=isNull,V.isNullOrUndefined=function isNullOrUndefined(W){return null==W},V.isNumber=isNumber,V.isString=isString,V.isSymbol=function isSymbol(W){return"symbol"==typeof W},V.isUndefined=isUndefined,V.isRegExp=isRegExp,V.isObject=isObject,V.isDate=isDate,V.isError=isError,V.isFunction=isFunction,V.isPrimitive=function isPrimitive(W){return null===W||"boolean"==typeof W||"number"==typeof W||"string"==typeof W||"symbol"==typeof W||void 0===W},V.isBuffer=G(184);var se=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function timestamp(){var W=new Date,V=[pad(W.getHours()),pad(W.getMinutes()),pad(W.getSeconds())].join(":");return[W.getDate(),se[W.getMonth()],V].join(" ")}function hasOwnProperty(W,V){return Object.prototype.hasOwnProperty.call(W,V)}V.log=function(){console.log("%s - %s",timestamp(),V.format.apply(V,arguments))},V.inherits=G(185),V._extend=function(W,V){if(!V||!isObject(V))return W;for(var G=Object.keys(V),ie=G.length;ie--;)W[G[ie]]=V[G[ie]];return W};var de="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function callbackifyOnRejected(W,V){if(!W){var G=new Error("Promise was rejected with a falsy value");G.reason=W,W=G}return V(W)}V.promisify=function promisify(W){if("function"!=typeof W)throw new TypeError('The "original" argument must be of type Function');if(de&&W[de]){var V;if("function"!=typeof(V=W[de]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(V,de,{value:V,enumerable:!1,writable:!1,configurable:!0}),V}function V(){for(var V,G,ie=new Promise((function(W,ie){V=W,G=ie})),oe=[],ue=0;ue1&&"number"==typeof W[W.length-1]&&(G=W.pop())):"number"==typeof de&&(G=W.pop()),null===se&&1===W.length&&W[0]instanceof ie.a?W[0]:Object(ue.a)(G)(Object(ae.a)(W,se))}},function(W,V,G){"use strict";G.d(V,"a",(function(){return race}));var ie=G(1),oe=G(9),ue=G(33),ae=G(21),se=G(18);function race(){for(var W=[],V=0;V0)&&!(ie=ue.next()).done;)ae.push(ie.value)}catch(W){oe={error:W}}finally{try{ie&&!ie.done&&(G=ue.return)&&G.call(ue)}finally{if(oe)throw oe.error}}return ae};Object.defineProperty(V,"__esModule",{value:!0}),V.useSelector=void 0;var ue=__importStar(G(0)),ae=G(68);V.useSelector=function useSelector(W){var V=ae.useNeos(),G=__read(ue.useState(W(V.store.getState())),2),ie=G[0],oe=G[1];return ue.useEffect((function(){return V.store.subscribe((function(){var G=V.store.getState(),ie=W(G);oe(ie)}))}),[]),ie}},function(W,V,G){"use strict";var ie,oe="object"==typeof Reflect?Reflect:null,ue=oe&&"function"==typeof oe.apply?oe.apply:function ReflectApply(W,V,G){return Function.prototype.apply.call(W,V,G)};ie=oe&&"function"==typeof oe.ownKeys?oe.ownKeys:Object.getOwnPropertySymbols?function ReflectOwnKeys(W){return Object.getOwnPropertyNames(W).concat(Object.getOwnPropertySymbols(W))}:function ReflectOwnKeys(W){return Object.getOwnPropertyNames(W)};var ae=Number.isNaN||function NumberIsNaN(W){return W!=W};function EventEmitter(){EventEmitter.init.call(this)}W.exports=EventEmitter,W.exports.once=function once(W,V){return new Promise((function(G,ie){function errorListener(G){W.removeListener(V,resolver),ie(G)}function resolver(){"function"==typeof W.removeListener&&W.removeListener("error",errorListener),G([].slice.call(arguments))}eventTargetAgnosticAddListener(W,V,resolver,{once:!0}),"error"!==V&&function addErrorHandlerIfEventEmitter(W,V,G){"function"==typeof W.on&&eventTargetAgnosticAddListener(W,"error",V,G)}(W,errorListener,{once:!0})}))},EventEmitter.EventEmitter=EventEmitter,EventEmitter.prototype._events=void 0,EventEmitter.prototype._eventsCount=0,EventEmitter.prototype._maxListeners=void 0;var se=10;function checkListener(W){if("function"!=typeof W)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof W)}function _getMaxListeners(W){return void 0===W._maxListeners?EventEmitter.defaultMaxListeners:W._maxListeners}function _addListener(W,V,G,ie){var oe,ue,ae;if(checkListener(G),void 0===(ue=W._events)?(ue=W._events=Object.create(null),W._eventsCount=0):(void 0!==ue.newListener&&(W.emit("newListener",V,G.listener?G.listener:G),ue=W._events),ae=ue[V]),void 0===ae)ae=ue[V]=G,++W._eventsCount;else if("function"==typeof ae?ae=ue[V]=ie?[G,ae]:[ae,G]:ie?ae.unshift(G):ae.push(G),(oe=_getMaxListeners(W))>0&&ae.length>oe&&!ae.warned){ae.warned=!0;var se=new Error("Possible EventEmitter memory leak detected. "+ae.length+" "+String(V)+" listeners added. Use emitter.setMaxListeners() to increase limit");se.name="MaxListenersExceededWarning",se.emitter=W,se.type=V,se.count=ae.length,function ProcessEmitWarning(W){console&&console.warn&&console.warn(W)}(se)}return W}function onceWrapper(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(W,V,G){var ie={fired:!1,wrapFn:void 0,target:W,type:V,listener:G},oe=onceWrapper.bind(ie);return oe.listener=G,ie.wrapFn=oe,oe}function _listeners(W,V,G){var ie=W._events;if(void 0===ie)return[];var oe=ie[V];return void 0===oe?[]:"function"==typeof oe?G?[oe.listener||oe]:[oe]:G?function unwrapListeners(W){for(var V=new Array(W.length),G=0;G0&&(ae=V[0]),ae instanceof Error)throw ae;var se=new Error("Unhandled error."+(ae?" ("+ae.message+")":""));throw se.context=ae,se}var de=oe[W];if(void 0===de)return!1;if("function"==typeof de)ue(de,this,V);else{var le=de.length,pe=arrayClone(de,le);for(G=0;G=0;ue--)if(G[ue]===V||G[ue].listener===V){ae=G[ue].listener,oe=ue;break}if(oe<0)return this;0===oe?G.shift():function spliceOne(W,V){for(;V+1=0;ie--)this.removeListener(W,V[ie]);return this},EventEmitter.prototype.listeners=function listeners(W){return _listeners(this,W,!0)},EventEmitter.prototype.rawListeners=function rawListeners(W){return _listeners(this,W,!1)},EventEmitter.listenerCount=function(W,V){return"function"==typeof W.listenerCount?W.listenerCount(V):listenerCount.call(W,V)},EventEmitter.prototype.listenerCount=listenerCount,EventEmitter.prototype.eventNames=function eventNames(){return this._eventsCount>0?ie(this._events):[]}},function(W,V,G){(V=W.exports=G(114)).Stream=V,V.Readable=V,V.Writable=G(100),V.Duplex=G(48),V.Transform=G(118),V.PassThrough=G(194)},function(W,V,G){var ie=G(73),oe=ie.Buffer;function copyProps(W,V){for(var G in W)V[G]=W[G]}function SafeBuffer(W,V,G){return oe(W,V,G)}oe.from&&oe.alloc&&oe.allocUnsafe&&oe.allocUnsafeSlow?W.exports=ie:(copyProps(ie,V),V.Buffer=SafeBuffer),copyProps(oe,SafeBuffer),SafeBuffer.from=function(W,V,G){if("number"==typeof W)throw new TypeError("Argument must not be a number");return oe(W,V,G)},SafeBuffer.alloc=function(W,V,G){if("number"!=typeof W)throw new TypeError("Argument must be a number");var ie=oe(W);return void 0!==V?"string"==typeof G?ie.fill(V,G):ie.fill(V):ie.fill(0),ie},SafeBuffer.allocUnsafe=function(W){if("number"!=typeof W)throw new TypeError("Argument must be a number");return oe(W)},SafeBuffer.allocUnsafeSlow=function(W){if("number"!=typeof W)throw new TypeError("Argument must be a number");return ie.SlowBuffer(W)}},function(W,V,G){"use strict";(function(V,ie,oe){var ue=G(75);function CorkedRequest(W){var V=this;this.next=null,this.entry=null,this.finish=function(){!function onCorkedFinish(W,V,G){var ie=W.entry;W.entry=null;for(;ie;){var oe=ie.callback;V.pendingcb--,oe(G),ie=ie.next}V.corkedRequestsFree?V.corkedRequestsFree.next=W:V.corkedRequestsFree=W}(V,W)}}W.exports=Writable;var ae,se=!V.browser&&["v0.10","v0.9."].indexOf(V.version.slice(0,5))>-1?ie:ue.nextTick;Writable.WritableState=WritableState;var de=Object.create(G(54));de.inherits=G(53);var le={deprecate:G(192)},pe=G(115),he=G(99).Buffer,ve=oe.Uint8Array||function(){};var ge,Se=G(116);function nop(){}function WritableState(W,V){ae=ae||G(48),W=W||{};var ie=V instanceof ae;this.objectMode=!!W.objectMode,ie&&(this.objectMode=this.objectMode||!!W.writableObjectMode);var oe=W.highWaterMark,de=W.writableHighWaterMark,le=this.objectMode?16:16384;this.highWaterMark=oe||0===oe?oe:ie&&(de||0===de)?de:le,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var pe=!1===W.decodeStrings;this.decodeStrings=!pe,this.defaultEncoding=W.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(W){!function onwrite(W,V){var G=W._writableState,ie=G.sync,oe=G.writecb;if(function onwriteStateUpdate(W){W.writing=!1,W.writecb=null,W.length-=W.writelen,W.writelen=0}(G),V)!function onwriteError(W,V,G,ie,oe){--V.pendingcb,G?(ue.nextTick(oe,ie),ue.nextTick(finishMaybe,W,V),W._writableState.errorEmitted=!0,W.emit("error",ie)):(oe(ie),W._writableState.errorEmitted=!0,W.emit("error",ie),finishMaybe(W,V))}(W,G,ie,V,oe);else{var ae=needFinish(G);ae||G.corked||G.bufferProcessing||!G.bufferedRequest||clearBuffer(W,G),ie?se(afterWrite,W,G,ae,oe):afterWrite(W,G,ae,oe)}}(V,W)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new CorkedRequest(this)}function Writable(W){if(ae=ae||G(48),!(ge.call(Writable,this)||this instanceof ae))return new Writable(W);this._writableState=new WritableState(W,this),this.writable=!0,W&&("function"==typeof W.write&&(this._write=W.write),"function"==typeof W.writev&&(this._writev=W.writev),"function"==typeof W.destroy&&(this._destroy=W.destroy),"function"==typeof W.final&&(this._final=W.final)),pe.call(this)}function doWrite(W,V,G,ie,oe,ue,ae){V.writelen=ie,V.writecb=ae,V.writing=!0,V.sync=!0,G?W._writev(oe,V.onwrite):W._write(oe,ue,V.onwrite),V.sync=!1}function afterWrite(W,V,G,ie){G||function onwriteDrain(W,V){0===V.length&&V.needDrain&&(V.needDrain=!1,W.emit("drain"))}(W,V),V.pendingcb--,ie(),finishMaybe(W,V)}function clearBuffer(W,V){V.bufferProcessing=!0;var G=V.bufferedRequest;if(W._writev&&G&&G.next){var ie=V.bufferedRequestCount,oe=new Array(ie),ue=V.corkedRequestsFree;ue.entry=G;for(var ae=0,se=!0;G;)oe[ae]=G,G.isBuf||(se=!1),G=G.next,ae+=1;oe.allBuffers=se,doWrite(W,V,!0,V.length,oe,"",ue.finish),V.pendingcb++,V.lastBufferedRequest=null,ue.next?(V.corkedRequestsFree=ue.next,ue.next=null):V.corkedRequestsFree=new CorkedRequest(V),V.bufferedRequestCount=0}else{for(;G;){var de=G.chunk,le=G.encoding,pe=G.callback;if(doWrite(W,V,!1,V.objectMode?1:de.length,de,le,pe),G=G.next,V.bufferedRequestCount--,V.writing)break}null===G&&(V.lastBufferedRequest=null)}V.bufferedRequest=G,V.bufferProcessing=!1}function needFinish(W){return W.ending&&0===W.length&&null===W.bufferedRequest&&!W.finished&&!W.writing}function callFinal(W,V){W._final((function(G){V.pendingcb--,G&&W.emit("error",G),V.prefinished=!0,W.emit("prefinish"),finishMaybe(W,V)}))}function finishMaybe(W,V){var G=needFinish(V);return G&&(!function prefinish(W,V){V.prefinished||V.finalCalled||("function"==typeof W._final?(V.pendingcb++,V.finalCalled=!0,ue.nextTick(callFinal,W,V)):(V.prefinished=!0,W.emit("prefinish")))}(W,V),0===V.pendingcb&&(V.finished=!0,W.emit("finish"))),G}de.inherits(Writable,pe),WritableState.prototype.getBuffer=function getBuffer(){for(var W=this.bufferedRequest,V=[];W;)V.push(W),W=W.next;return V},function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:le.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(W){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(ge=Function.prototype[Symbol.hasInstance],Object.defineProperty(Writable,Symbol.hasInstance,{value:function(W){return!!ge.call(this,W)||this===Writable&&(W&&W._writableState instanceof WritableState)}})):ge=function(W){return W instanceof this},Writable.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},Writable.prototype.write=function(W,V,G){var ie=this._writableState,oe=!1,ae=!ie.objectMode&&function _isUint8Array(W){return he.isBuffer(W)||W instanceof ve}(W);return ae&&!he.isBuffer(W)&&(W=function _uint8ArrayToBuffer(W){return he.from(W)}(W)),"function"==typeof V&&(G=V,V=null),ae?V="buffer":V||(V=ie.defaultEncoding),"function"!=typeof G&&(G=nop),ie.ended?function writeAfterEnd(W,V){var G=new Error("write after end");W.emit("error",G),ue.nextTick(V,G)}(this,G):(ae||function validChunk(W,V,G,ie){var oe=!0,ae=!1;return null===G?ae=new TypeError("May not write null values to stream"):"string"==typeof G||void 0===G||V.objectMode||(ae=new TypeError("Invalid non-string/buffer chunk")),ae&&(W.emit("error",ae),ue.nextTick(ie,ae),oe=!1),oe}(this,ie,W,G))&&(ie.pendingcb++,oe=function writeOrBuffer(W,V,G,ie,oe,ue){if(!G){var ae=function decodeChunk(W,V,G){W.objectMode||!1===W.decodeStrings||"string"!=typeof V||(V=he.from(V,G));return V}(V,ie,oe);ie!==ae&&(G=!0,oe="buffer",ie=ae)}var se=V.objectMode?1:ie.length;V.length+=se;var de=V.length-1))throw new TypeError("Unknown encoding: "+W);return this._writableState.defaultEncoding=W,this},Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Writable.prototype._write=function(W,V,G){G(new Error("_write() is not implemented"))},Writable.prototype._writev=null,Writable.prototype.end=function(W,V,G){var ie=this._writableState;"function"==typeof W?(G=W,W=null,V=null):"function"==typeof V&&(G=V,V=null),null!=W&&this.write(W,V),ie.corked&&(ie.corked=1,this.uncork()),ie.ending||ie.finished||function endWritable(W,V,G){V.ending=!0,finishMaybe(W,V),G&&(V.finished?ue.nextTick(G):W.once("finish",G));V.ended=!0,W.writable=!1}(this,ie,G)},Object.defineProperty(Writable.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(W){this._writableState&&(this._writableState.destroyed=W)}}),Writable.prototype.destroy=Se.destroy,Writable.prototype._undestroy=Se.undestroy,Writable.prototype._destroy=function(W,V){this.end(),V(W)}}).call(this,G(44),G(190).setImmediate,G(47))},function(W,V,G){"use strict";W.exports=G(174)},function(W,V,G){"use strict";var ie=G(175),oe={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ue={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ae={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},se={};function getStatics(W){return ie.isMemo(W)?ae:se[W.$$typeof]||oe}se[ie.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},se[ie.Memo]=ae;var de=Object.defineProperty,le=Object.getOwnPropertyNames,pe=Object.getOwnPropertySymbols,he=Object.getOwnPropertyDescriptor,ve=Object.getPrototypeOf,ge=Object.prototype;W.exports=function hoistNonReactStatics(W,V,G){if("string"!=typeof V){if(ge){var ie=ve(V);ie&&ie!==ge&&hoistNonReactStatics(W,ie,G)}var oe=le(V);pe&&(oe=oe.concat(pe(V)));for(var ae=getStatics(W),se=getStatics(V),Se=0;Se0)&&!(ie=ue.next()).done;)ae.push(ie.value)}catch(W){oe={error:W}}finally{try{ie&&!ie.done&&(G=ue.return)&&G.call(ue)}finally{if(oe)throw oe.error}}return ae},__values=function(W){var V="function"==typeof Symbol&&Symbol.iterator,G=V&&W[V],ie=0;if(G)return G.call(W);if(W&&"number"==typeof W.length)return{next:function next(){return W&&ie>=W.length&&(W=void 0),{value:W&&W[ie++],done:!W}}};throw new TypeError(V?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(V,"__esModule",{value:!0}),V.useDocumentNodeContextPath=V.useSiteNodeContextPath=V.ContextPath=void 0;var ue=__importStar(G(0)),ae=G(96),se=function(){function ContextPath(W,V){this.path=W,this.context=V}return ContextPath.fromString=function(W){var V=__read((null!=W?W:"").split("@"),2),G=V[0],ie=V[1];return G&&W?new ContextPath(G,ie):null},ContextPath.prototype.adopt=function(W){var V=__read((null!=W?W:"").split("@"),1)[0];return V?new ContextPath(V,this.context):null},ContextPath.prototype.getIntermediateContextPaths=function(W){var V,G;if(W.path.startsWith(this.path)){var ie=W.path.split("/"),oe=[];try{for(var ue=__values(ie.entries()),ae=ue.next();!ae.done;ae=ue.next()){var se=__read(ae.value,1)[0],de=ie.slice(0,-se).join("/");if(de&&oe.push(new ContextPath(de,this.context)),de===this.path)break}}catch(W){V={error:W}}finally{try{ae&&!ae.done&&(G=ue.return)&&G.call(ue)}finally{if(V)throw V.error}}return oe}return[]},ContextPath.prototype.equals=function(W){return this.path===W.path&&this.context===W.context},ContextPath.prototype.toString=function(){return this.path+"@"+this.context},Object.defineProperty(ContextPath.prototype,"depth",{get:function get(){var W,V;return null!==(V=null===(W=this.path.match(/\//g))||void 0===W?void 0:W.length)&&void 0!==V?V:0},enumerable:!1,configurable:!0}),ContextPath}();V.ContextPath=se,V.useSiteNodeContextPath=function useSiteNodeContextPath(){var W=ae.useSelector((function(W){var V,G;return null===(G=null===(V=W.cr)||void 0===V?void 0:V.nodes)||void 0===G?void 0:G.siteNode}));return ue.useMemo((function(){return W?se.fromString(W):null}),[W])},V.useDocumentNodeContextPath=function useDocumentNodeContextPath(){var W=ae.useSelector((function(W){var V,G;return null===(G=null===(V=W.cr)||void 0===V?void 0:V.nodes)||void 0===G?void 0:G.documentNode}));return ue.useMemo((function(){return W?se.fromString(W):null}),[W])}},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.fetchWithErrorHandling=void 0;var ie=function _interopRequireDefault(W){return W&&W.__esModule?W:{default:W}}(G(46));V.default=(0,ie.default)("NeosProjectPackages")().NeosUiBackendConnectorDefault;var oe=(0,ie.default)("NeosProjectPackages")().NeosUiBackendConnector.fetchWithErrorHandling;V.fetchWithErrorHandling=oe},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0});var ie=G(5),oe=G(0),ue=parseInt(oe.version.substr(0,oe.version.indexOf(".")))>15,isFn=function(W){return"function"==typeof W};V.default=function(W,V){for(var G=[],ae=2;ae=0;le--)if(he[le]!==ve[le])return!1;for(le=he.length-1;le>=0;le--)if(de=he[le],!_deepEqual(W[de],V[de],G,ie))return!1;return!0}(W,V,G,ie))}return G?W===V:W==V}function isArguments(W){return"[object Arguments]"==Object.prototype.toString.call(W)}function expectedException(W,V){if(!W||!V)return!1;if("[object RegExp]"==Object.prototype.toString.call(V))return V.test(W);try{if(W instanceof V)return!0}catch(W){}return!Error.isPrototypeOf(V)&&!0===V.call({},W)}function _throws(W,V,G,ie){var ue;if("function"!=typeof V)throw new TypeError('"block" argument must be a function');"string"==typeof G&&(ie=G,G=null),ue=function _tryBlock(W){var V;try{W()}catch(W){V=W}return V}(V),ie=(G&&G.name?" ("+G.name+").":".")+(ie?" "+ie:"."),W&&!ue&&fail(ue,G,"Missing expected exception"+ie);var ae="string"==typeof ie,se=!W&&ue&&!G;if((!W&&oe.isError(ue)&&ae&&expectedException(ue,G)||se)&&fail(ue,G,"Got unwanted exception"+ie),W&&ue&&G&&!expectedException(ue,G)||!W&&ue)throw ue}de.AssertionError=function AssertionError(W){this.name="AssertionError",this.actual=W.actual,this.expected=W.expected,this.operator=W.operator,W.message?(this.message=W.message,this.generatedMessage=!1):(this.message=function getMessage(W){return truncate(inspect(W.actual),128)+" "+W.operator+" "+truncate(inspect(W.expected),128)}(this),this.generatedMessage=!0);var V=W.stackStartFunction||fail;if(Error.captureStackTrace)Error.captureStackTrace(this,V);else{var G=new Error;if(G.stack){var ie=G.stack,oe=getName(V),ue=ie.indexOf("\n"+oe);if(ue>=0){var ae=ie.indexOf("\n",ue+1);ie=ie.substring(ae+1)}this.stack=ie}}},oe.inherits(de.AssertionError,Error),de.fail=fail,de.ok=ok,de.equal=function equal(W,V,G){W!=V&&fail(W,V,G,"==",de.equal)},de.notEqual=function notEqual(W,V,G){W==V&&fail(W,V,G,"!=",de.notEqual)},de.deepEqual=function deepEqual(W,V,G){_deepEqual(W,V,!1)||fail(W,V,G,"deepEqual",de.deepEqual)},de.deepStrictEqual=function deepStrictEqual(W,V,G){_deepEqual(W,V,!0)||fail(W,V,G,"deepStrictEqual",de.deepStrictEqual)},de.notDeepEqual=function notDeepEqual(W,V,G){_deepEqual(W,V,!1)&&fail(W,V,G,"notDeepEqual",de.notDeepEqual)},de.notDeepStrictEqual=function notDeepStrictEqual(W,V,G){_deepEqual(W,V,!0)&&fail(W,V,G,"notDeepStrictEqual",notDeepStrictEqual)},de.strictEqual=function strictEqual(W,V,G){W!==V&&fail(W,V,G,"===",de.strictEqual)},de.notStrictEqual=function notStrictEqual(W,V,G){W===V&&fail(W,V,G,"!==",de.notStrictEqual)},de.throws=function(W,V,G){_throws(!0,W,V,G)},de.doesNotThrow=function(W,V,G){_throws(!1,W,V,G)},de.ifError=function(W){if(W)throw W},de.strict=ie((function strict(W,V){W||fail(W,!0,V,"==",strict)}),de,{equal:de.strictEqual,deepEqual:de.deepStrictEqual,notEqual:de.notStrictEqual,notDeepEqual:de.notDeepStrictEqual}),de.strict.strict=de.strict;var pe=Object.keys||function(W){var V=[];for(var G in W)ue.call(W,G)&&V.push(G);return V}}).call(this,G(47))},function(W,V,G){"use strict";(function(V,ie){var oe=G(75);W.exports=Readable;var ue,ae=G(112);Readable.ReadableState=ReadableState;G(97).EventEmitter;var EElistenerCount=function(W,V){return W.listeners(V).length},se=G(115),de=G(99).Buffer,le=V.Uint8Array||function(){};var pe=Object.create(G(54));pe.inherits=G(53);var he=G(187),ve=void 0;ve=he&&he.debuglog?he.debuglog("stream"):function(){};var ge,Se=G(188),we=G(116);pe.inherits(Readable,se);var Ce=["error","close","destroy","pause","resume"];function ReadableState(W,V){W=W||{};var ie=V instanceof(ue=ue||G(48));this.objectMode=!!W.objectMode,ie&&(this.objectMode=this.objectMode||!!W.readableObjectMode);var oe=W.highWaterMark,ae=W.readableHighWaterMark,se=this.objectMode?16:16384;this.highWaterMark=oe||0===oe?oe:ie&&(ae||0===ae)?ae:se,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new Se,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=W.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,W.encoding&&(ge||(ge=G(117).StringDecoder),this.decoder=new ge(W.encoding),this.encoding=W.encoding)}function Readable(W){if(ue=ue||G(48),!(this instanceof Readable))return new Readable(W);this._readableState=new ReadableState(W,this),this.readable=!0,W&&("function"==typeof W.read&&(this._read=W.read),"function"==typeof W.destroy&&(this._destroy=W.destroy)),se.call(this)}function readableAddChunk(W,V,G,ie,oe){var ue,ae=W._readableState;null===V?(ae.reading=!1,function onEofChunk(W,V){if(V.ended)return;if(V.decoder){var G=V.decoder.end();G&&G.length&&(V.buffer.push(G),V.length+=V.objectMode?1:G.length)}V.ended=!0,emitReadable(W)}(W,ae)):(oe||(ue=function chunkInvalid(W,V){var G;(function _isUint8Array(W){return de.isBuffer(W)||W instanceof le})(V)||"string"==typeof V||void 0===V||W.objectMode||(G=new TypeError("Invalid non-string/buffer chunk"));return G}(ae,V)),ue?W.emit("error",ue):ae.objectMode||V&&V.length>0?("string"==typeof V||ae.objectMode||Object.getPrototypeOf(V)===de.prototype||(V=function _uint8ArrayToBuffer(W){return de.from(W)}(V)),ie?ae.endEmitted?W.emit("error",new Error("stream.unshift() after end event")):addChunk(W,ae,V,!0):ae.ended?W.emit("error",new Error("stream.push() after EOF")):(ae.reading=!1,ae.decoder&&!G?(V=ae.decoder.write(V),ae.objectMode||0!==V.length?addChunk(W,ae,V,!1):maybeReadMore(W,ae)):addChunk(W,ae,V,!1))):ie||(ae.reading=!1));return function needMoreData(W){return!W.ended&&(W.needReadable||W.lengthV.highWaterMark&&(V.highWaterMark=function computeNewHighWaterMark(W){return W>=8388608?W=8388608:(W--,W|=W>>>1,W|=W>>>2,W|=W>>>4,W|=W>>>8,W|=W>>>16,W++),W}(W)),W<=V.length?W:V.ended?V.length:(V.needReadable=!0,0))}function emitReadable(W){var V=W._readableState;V.needReadable=!1,V.emittedReadable||(ve("emitReadable",V.flowing),V.emittedReadable=!0,V.sync?oe.nextTick(emitReadable_,W):emitReadable_(W))}function emitReadable_(W){ve("emit readable"),W.emit("readable"),flow(W)}function maybeReadMore(W,V){V.readingMore||(V.readingMore=!0,oe.nextTick(maybeReadMore_,W,V))}function maybeReadMore_(W,V){for(var G=V.length;!V.reading&&!V.flowing&&!V.ended&&V.length=V.length?(G=V.decoder?V.buffer.join(""):1===V.buffer.length?V.buffer.head.data:V.buffer.concat(V.length),V.buffer.clear()):G=function fromListPartial(W,V,G){var ie;Wue.length?ue.length:W;if(ae===ue.length?oe+=ue:oe+=ue.slice(0,W),0===(W-=ae)){ae===ue.length?(++ie,G.next?V.head=G.next:V.head=V.tail=null):(V.head=G,G.data=ue.slice(ae));break}++ie}return V.length-=ie,oe}(W,V):function copyFromBuffer(W,V){var G=de.allocUnsafe(W),ie=V.head,oe=1;ie.data.copy(G),W-=ie.data.length;for(;ie=ie.next;){var ue=ie.data,ae=W>ue.length?ue.length:W;if(ue.copy(G,G.length-W,0,ae),0===(W-=ae)){ae===ue.length?(++oe,ie.next?V.head=ie.next:V.head=V.tail=null):(V.head=ie,ie.data=ue.slice(ae));break}++oe}return V.length-=oe,G}(W,V);return ie}(W,V.buffer,V.decoder),G);var G}function endReadable(W){var V=W._readableState;if(V.length>0)throw new Error('"endReadable()" called on non-empty stream');V.endEmitted||(V.ended=!0,oe.nextTick(endReadableNT,V,W))}function endReadableNT(W,V){W.endEmitted||0!==W.length||(W.endEmitted=!0,V.readable=!1,V.emit("end"))}function indexOf(W,V){for(var G=0,ie=W.length;G=V.highWaterMark||V.ended))return ve("read: emitReadable",V.length,V.ended),0===V.length&&V.ended?endReadable(this):emitReadable(this),null;if(0===(W=howMuchToRead(W,V))&&V.ended)return 0===V.length&&endReadable(this),null;var ie,oe=V.needReadable;return ve("need readable",oe),(0===V.length||V.length-W0?fromList(W,V):null)?(V.needReadable=!0,W=0):V.length-=W,0===V.length&&(V.ended||(V.needReadable=!0),G!==W&&V.ended&&endReadable(this)),null!==ie&&this.emit("data",ie),ie},Readable.prototype._read=function(W){this.emit("error",new Error("_read() is not implemented"))},Readable.prototype.pipe=function(W,V){var G=this,ue=this._readableState;switch(ue.pipesCount){case 0:ue.pipes=W;break;case 1:ue.pipes=[ue.pipes,W];break;default:ue.pipes.push(W)}ue.pipesCount+=1,ve("pipe count=%d opts=%j",ue.pipesCount,V);var se=(!V||!1!==V.end)&&W!==ie.stdout&&W!==ie.stderr?onend:unpipe;function onunpipe(V,ie){ve("onunpipe"),V===G&&ie&&!1===ie.hasUnpiped&&(ie.hasUnpiped=!0,function cleanup(){ve("cleanup"),W.removeListener("close",onclose),W.removeListener("finish",onfinish),W.removeListener("drain",de),W.removeListener("error",onerror),W.removeListener("unpipe",onunpipe),G.removeListener("end",onend),G.removeListener("end",unpipe),G.removeListener("data",ondata),le=!0,!ue.awaitDrain||W._writableState&&!W._writableState.needDrain||de()}())}function onend(){ve("onend"),W.end()}ue.endEmitted?oe.nextTick(se):G.once("end",se),W.on("unpipe",onunpipe);var de=function pipeOnDrain(W){return function(){var V=W._readableState;ve("pipeOnDrain",V.awaitDrain),V.awaitDrain&&V.awaitDrain--,0===V.awaitDrain&&EElistenerCount(W,"data")&&(V.flowing=!0,flow(W))}}(G);W.on("drain",de);var le=!1;var pe=!1;function ondata(V){ve("ondata"),pe=!1,!1!==W.write(V)||pe||((1===ue.pipesCount&&ue.pipes===W||ue.pipesCount>1&&-1!==indexOf(ue.pipes,W))&&!le&&(ve("false write response, pause",G._readableState.awaitDrain),G._readableState.awaitDrain++,pe=!0),G.pause())}function onerror(V){ve("onerror",V),unpipe(),W.removeListener("error",onerror),0===EElistenerCount(W,"error")&&W.emit("error",V)}function onclose(){W.removeListener("finish",onfinish),unpipe()}function onfinish(){ve("onfinish"),W.removeListener("close",onclose),unpipe()}function unpipe(){ve("unpipe"),G.unpipe(W)}return G.on("data",ondata),function prependListener(W,V,G){if("function"==typeof W.prependListener)return W.prependListener(V,G);W._events&&W._events[V]?ae(W._events[V])?W._events[V].unshift(G):W._events[V]=[G,W._events[V]]:W.on(V,G)}(W,"error",onerror),W.once("close",onclose),W.once("finish",onfinish),W.emit("pipe",G),ue.flowing||(ve("pipe resume"),G.resume()),W},Readable.prototype.unpipe=function(W){var V=this._readableState,G={hasUnpiped:!1};if(0===V.pipesCount)return this;if(1===V.pipesCount)return W&&W!==V.pipes||(W||(W=V.pipes),V.pipes=null,V.pipesCount=0,V.flowing=!1,W&&W.emit("unpipe",this,G)),this;if(!W){var ie=V.pipes,oe=V.pipesCount;V.pipes=null,V.pipesCount=0,V.flowing=!1;for(var ue=0;ue>5==6?2:W>>4==14?3:W>>3==30?4:W>>6==2?-1:-2}function utf8FillLast(W){var V=this.lastTotal-this.lastNeed,G=function utf8CheckExtraBytes(W,V,G){if(128!=(192&V[0]))return W.lastNeed=0,"�";if(W.lastNeed>1&&V.length>1){if(128!=(192&V[1]))return W.lastNeed=1,"�";if(W.lastNeed>2&&V.length>2&&128!=(192&V[2]))return W.lastNeed=2,"�"}}(this,W);return void 0!==G?G:this.lastNeed<=W.length?(W.copy(this.lastChar,V,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(W.copy(this.lastChar,V,0,W.length),void(this.lastNeed-=W.length))}function utf16Text(W,V){if((W.length-V)%2==0){var G=W.toString("utf16le",V);if(G){var ie=G.charCodeAt(G.length-1);if(ie>=55296&&ie<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=W[W.length-2],this.lastChar[1]=W[W.length-1],G.slice(0,-1)}return G}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=W[W.length-1],W.toString("utf16le",V,W.length-1)}function utf16End(W){var V=W&&W.length?this.write(W):"";if(this.lastNeed){var G=this.lastTotal-this.lastNeed;return V+this.lastChar.toString("utf16le",0,G)}return V}function base64Text(W,V){var G=(W.length-V)%3;return 0===G?W.toString("base64",V):(this.lastNeed=3-G,this.lastTotal=3,1===G?this.lastChar[0]=W[W.length-1]:(this.lastChar[0]=W[W.length-2],this.lastChar[1]=W[W.length-1]),W.toString("base64",V,W.length-G))}function base64End(W){var V=W&&W.length?this.write(W):"";return this.lastNeed?V+this.lastChar.toString("base64",0,3-this.lastNeed):V}function simpleWrite(W){return W.toString(this.encoding)}function simpleEnd(W){return W&&W.length?this.write(W):""}V.StringDecoder=StringDecoder,StringDecoder.prototype.write=function(W){if(0===W.length)return"";var V,G;if(this.lastNeed){if(void 0===(V=this.fillLast(W)))return"";G=this.lastNeed,this.lastNeed=0}else G=0;return G=0)return oe>0&&(W.lastNeed=oe-1),oe;if(--ie=0)return oe>0&&(W.lastNeed=oe-2),oe;if(--ie=0)return oe>0&&(2===oe?oe=0:W.lastNeed=oe-3),oe;return 0}(this,W,V);if(!this.lastNeed)return W.toString("utf8",V);this.lastTotal=G;var ie=W.length-(G-this.lastNeed);return W.copy(this.lastChar,0,ie),W.toString("utf8",V,ie)},StringDecoder.prototype.fillLast=function(W){if(this.lastNeed<=W.length)return W.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);W.copy(this.lastChar,this.lastTotal-this.lastNeed,0,W.length),this.lastNeed-=W.length}},function(W,V,G){"use strict";W.exports=Transform;var ie=G(48),oe=Object.create(G(54));function afterTransform(W,V){var G=this._transformState;G.transforming=!1;var ie=G.writecb;if(!ie)return this.emit("error",new Error("write callback called multiple times"));G.writechunk=null,G.writecb=null,null!=V&&this.push(V),ie(W);var oe=this._readableState;oe.reading=!1,(oe.needReadable||oe.length>>0).toString(36)}(G.stringify(W))},selector:function(W,V){return W+(":"===V[0]?"":" ")+V},putRaw:function(W){G.raw+=W}},W);return G.client&&(G.sh||document.head.appendChild(G.sh=document.createElement("style")),G.putRaw=function(W){var V=G.sh.sheet;try{V.insertRule(W,V.cssRules.length)}catch(W){}}),G.put=function(W,V,ie){var oe,ue,ae="",se=[];for(oe in V)(ue=V[oe])instanceof Object&&!(ue instanceof Array)?se.push(oe):ae+=G.decl(oe,ue,W,ie);ae&&(ae=W+"{"+ae+"}",G.putRaw(ie?ie+"{"+ae+"}":ae));for(var de=0;de-1,le=G.split(",");if(de)for(var pe=0;peie&&(ie=(V=V.trim()).charCodeAt(0)),ie){case 38:return V.replace(se,"$1"+W.trim());case 58:return W.trim()+V.replace(se,"$1"+W.trim());default:if(0<1*G&&0le.charCodeAt(8))break;case 115:se=se.replace(le,"-webkit-"+le)+";"+se;break;case 207:case 102:se=se.replace(le,"-webkit-"+(102oe.charCodeAt(0)&&(oe=oe.trim()),oe=[oe],0se)&&(it=(at=at.replace(" ",":")).length),0=0)){if(Qe.push(W),Ue[W]){var se=et(Ue[W],!0);try{for(var de=ie.__values(se),le=de.next();!le.done;le=de.next()){var pe=le.value;addToResults(Ue[W][pe],V)}}catch(W){G={error:W}}finally{try{le&&!le.done&&(oe=de.return)&&oe.call(de)}finally{if(G)throw G.error}}}if(V.push(W),ze[W]){var he=et(ze[W],!1);try{for(var ve=ie.__values(he),ge=ve.next();!ge.done;ge=ve.next()){pe=ge.value;addToResults(ze[W][pe],V)}}catch(W){ue={error:W}}finally{try{ge&&!ge.done&&(ae=ve.return)&&ae.call(ve)}finally{if(ue)throw ue.error}}}}}))};try{for(var rt=ie.__values(et(Le,!1)),nt=rt.next();!nt.done;nt=rt.next()){var it=nt.value;tt(Le[it],He)}}catch(W){oe={error:W}}finally{try{nt&&!nt.done&&(ue=rt.return)&&ue.call(rt)}finally{if(oe)throw oe.error}}try{for(var ot=ie.__values(et(Re,!0)),ut=ot.next();!ut.done;ut=ot.next()){it=ut.value;tt(Re[it],Ke)}}catch(W){ae={error:W}}finally{try{ut&&!ut.done&&(se=ot.return)&&se.call(ot)}finally{if(ae)throw ae.error}}try{for(var at=ie.__values(et(De,!0)),st=at.next();!st.done;st=at.next()){it=st.value;tt(De[it],Ze)}}catch(W){de={error:W}}finally{try{st&&!st.done&&(le=at.return)&&le.call(at)}finally{if(de)throw de.error}}try{for(var ct=ie.__values(Object.keys(Ue)),dt=ct.next();!dt.done;dt=ct.next()){var lt=dt.value;if(!(Qe.indexOf(lt)>=0))try{for(var ft=(ve=void 0,ie.__values(et(Ue[lt],!1))),pt=ft.next();!pt.done;pt=ft.next()){it=pt.value;tt(Ue[lt][it],He)}}catch(W){ve={error:W}}finally{try{pt&&!pt.done&&(ge=ft.return)&&ge.call(ft)}finally{if(ve)throw ve.error}}}}catch(W){pe={error:W}}finally{try{dt&&!dt.done&&(he=ct.return)&&he.call(ct)}finally{if(pe)throw pe.error}}try{for(var ht=ie.__values(Object.keys(ze)),bt=ht.next();!bt.done;bt=ht.next()){lt=bt.value;if(!(Qe.indexOf(lt)>=0))try{for(var yt=(Ce=void 0,ie.__values(et(ze[lt],!1))),vt=yt.next();!vt.done;vt=yt.next()){it=vt.value;tt(ze[lt][it],Ke)}}catch(W){Ce={error:W}}finally{try{vt&&!vt.done&&(Pe=yt.return)&&Pe.call(yt)}finally{if(Ce)throw Ce.error}}}}catch(W){Se={error:W}}finally{try{bt&&!bt.done&&(we=ht.return)&&we.call(ht)}finally{if(Se)throw Se.error}}return ie.__spread(He,Ke,Ze).map((function(W){return Fe[W]})).map((function(V){return W[V]}))}},function(W,V,G){"use strict";V.__esModule=!0;var ie=G(1),oe=function(W){function SynchronousMetaRegistry(){return null!==W&&W.apply(this,arguments)||this}return ie.__extends(SynchronousMetaRegistry,W),SynchronousMetaRegistry.prototype.set=function(V,G){if("d8a5aa78-978e-11e6-ae22-56b6b6499611"!==G.SERIAL_VERSION_UID)throw new Error("You can only add registries to a meta registry");return W.prototype.set.call(this,V,G)},SynchronousMetaRegistry}(ie.__importDefault(G(105)).default);V.default=oe},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.registerDialog=V.registerLinkTypes=void 0;var ie=G(146);Object.defineProperty(V,"registerLinkTypes",{enumerable:!0,get:function get(){return ie.registerLinkTypes}});var oe=G(242);Object.defineProperty(V,"registerDialog",{enumerable:!0,get:function get(){return oe.registerDialog}})},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.registerLinkTypes=void 0;var ie=G(104),oe=G(147),ue=G(213),ae=G(233),se=G(236),de=G(238),le=G(240);V.registerLinkTypes=function registerLinkTypes(W){var V=new ie.SynchronousRegistry("\n # Sitegeist.Archaeopteryx LinkType Registry\n ");V.set(ue.Node.id,ue.Node),V.set(ae.Asset.id,ae.Asset),V.set(oe.Web.id,oe.Web),V.set(se.MailTo.id,se.MailTo),V.set(de.PhoneNumber.id,de.PhoneNumber),V.set(le.CustomLink.id,le.CustomLink),W.set("@sitegeist/archaeopteryx/link-types",V)}},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.Web=void 0;var ie=G(148);Object.defineProperty(V,"Web",{enumerable:!0,get:function get(){return ie.Web}})},function(W,V,G){"use strict";var __assign=function(){return(__assign=Object.assign||function(W){for(var V,G=1,ie=arguments.length;G0)&&!(ie=ue.next()).done;)ae.push(ie.value)}catch(W){oe={error:W}}finally{try{ie&&!ie.done&&(G=ue.return)&&G.call(ue)}finally{if(oe)throw oe.error}}return ae};Object.defineProperty(V,"__esModule",{value:!0}),V.Web=void 0;var ue=__importStar(G(0)),ae=G(0),se=G(69),de=G(16),le=G(12),pe=G(43),he=G(30),ve=G(38);function removeHttp(W){return W.replace(/^https?:\/\//,"")}V.Web=he.makeLinkType("Sitegeist.Archaeopteryx:Web",(function(W){var V=W.createError;return{supportedLinkOptions:["anchor","title","targetBlank","relNofollow"],isSuitableFor:function isSuitableFor(W){var V=W.href.startsWith("http://"),G=W.href.startsWith("https://");return V||G},useResolvedModel:function useResolvedModel(W){var G=W.href.match(/^(https?):\/\/(.*)$/);if(G){var ie=__read(G,3),oe=ie[1],ue=ie[2];return pe.Process.success({protocol:oe,urlWithoutProtocol:ue})}return pe.Process.error(V('Cannot handle href "'+W.href+'".'))},convertModelToLink:function convertModelToLink(W){return{href:W.protocol+"://"+removeHttp(W.urlWithoutProtocol)}},TabHeader:function TabHeader(){var W=le.useI18n();return ue.createElement(ve.IconLabel,{icon:"globe"},W("Sitegeist.Archaeopteryx:LinkTypes.Web:title"))},Preview:function Preview(W){var V=W.model;return ue.createElement(ve.IconCard,{icon:"external-link",title:V.protocol+"://"+removeHttp(V.urlWithoutProtocol)})},Editor:function Editor(W){var V,G=W.model,ie=__read(ae.useState(""),2),oe=ie[0],he=ie[1],ve=le.useI18n();return ue.createElement("div",null,ue.createElement("label",{htmlFor:"linkTypeProps.Sitegeist_Archaeopteryx:Web.urlWithoutProtocol"},ve("Sitegeist.Archaeopteryx:LinkTypes.Web:label.link"),":"),ue.createElement("div",{style:{display:"grid",gridTemplateColumns:"160px 1fr",minWidth:"600px"}},ue.createElement(pe.Field,{name:"protocol",format:function format(W){return void 0===W&&""===W||he(W),void 0===W&&se.useForm().change("linkTypeProps.Sitegeist_Archaeopteryx:Web.protocol",oe),W},initialValue:null!==(V=null==G?void 0:G.protocol)&&void 0!==V?V:"https",validate:function validate(W){if(!W)return ve("Sitegeist.Archaeopteryx:LinkTypes.Web:protocol.validation.required")}},(function(W){var V=W.input;return ue.createElement(de.SelectBox,{onValueChange:V.onChange,allowEmpty:!1,value:V.value,options:[{value:"https",label:"HTTPS",icon:"lock"},{value:"http",label:"HTTP",icon:"unlock"}]})})),ue.createElement(pe.Field,{name:"urlWithoutProtocol",initialValue:null==G?void 0:G.urlWithoutProtocol,format:function format(W){var V=null==W?void 0:W.match(/^(https?):\/\/(.*)$/);return V?__read(V,3)[2]:W},parse:function parse(W){var V=null==W?void 0:W.match(/^(https?):\/\/(.*)$/);if(V){var G=__read(V,3),ie=G[1],oe=G[2];return se.useForm().change("linkTypeProps.Sitegeist_Archaeopteryx:Web.protocol",ie),oe}return W},validate:function validate(W){if(!W)return ve("Sitegeist.Archaeopteryx:LinkTypes.Web:urlWithoutProtocol.validation.required")}},(function(W){var V=W.input;return ue.createElement(de.TextInput,__assign({id:V.name,type:"text",placeholder:ve("Sitegeist.Archaeopteryx:LinkTypes.Web:urlWithoutProtocol.placeholder")},V))}))))}}}))},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.q=void 0;var ie=G(150);Object.defineProperty(V,"q",{enumerable:!0,get:function get(){return ie.q}})},function(W,V,G){"use strict";var __importDefault=function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(V,"__esModule",{value:!0}),V.q=void 0;var ie=G(95),oe=__importDefault(G(107));V.q=function q(W){var V=oe.default.get().q;return new ie.FlowQuery(V(Array.isArray(W)?W.map((function(W){return W.toString()})):W.toString()))}},function(W,V,G){"use strict";var __assign=function(){return(__assign=Object.assign||function(W){for(var V,G=1,ie=arguments.length;G0&&oe[oe.length-1])||6!==ue[0]&&2!==ue[0])){ae=0;continue}if(3===ue[0]&&(!oe||ue[1]>oe[0]&&ue[1]0&&oe[oe.length-1])||6!==ue[0]&&2!==ue[0])){ae=0;continue}if(3===ue[0]&&(!oe||ue[1]>oe[0]&&ue[1]=W.length&&(W=void 0),{value:W&&W[ie++],done:!W}}};throw new TypeError(V?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(V,"__esModule",{value:!0}),V.useHasNode=V.useNodeSummary=void 0;var ie=G(55),oe=G(162),ue=G(95),ae=G(96);V.useNodeSummary=function useNodeSummary(W){var V=this,G=ae.useSelector(oe.selectors.UI.NodeLinking.contextForNodeLinking);return ie.useAsync((function(){return __awaiter(V,void 0,void 0,(function(){var V,ie,oe,ae,se;return __generator(this,(function(de){switch(de.label){case 0:return[4,ue.endpoints().searchNodes(__assign(__assign({},G),{nodeIdentifiers:[W]}))];case 1:if(V=de.sent(),Array.isArray(V))try{for(ie=__values(V),oe=ie.next();!oe.done;oe=ie.next())return[2,oe.value]}catch(W){ae={error:W}}finally{try{oe&&!oe.done&&(se=ie.return)&&se.call(ie)}finally{if(ae)throw ae.error}}return[2,null]}}))}))}),[W])},V.useHasNode=function useHasNode(W){var V,G=ae.useSelector(oe.selectors.CR.Nodes.byContextPathSelector(null!==(V=null==W?void 0:W.toString())&&void 0!==V?V:""));return Boolean(G)}},function(W,V){W.exports=function(){var W=document.getSelection();if(!W.rangeCount)return function(){};for(var V=document.activeElement,G=[],ie=0;ie=0;){if(ie[V]===W){G.deleteRule(V);break}V--}}},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.divWrapper=void 0;var ie=G(5),oe=ie.__importStar(G(0)),ue=ie.__importDefault(G(159)),ae=oe.createElement,noWrap=function(W,V,G,oe){var ue;return ae(W,V?ie.__assign(((ue={})[V]=oe,ue),G):ie.__assign(ie.__assign({},oe),G))};V.divWrapper=function(W,V,G,ie){return ae("div",null,noWrap(W,V,G,ie))};V.default=function(W,V,G){void 0===G&&(G=noWrap);var enhancer=function(ie,oe,se){void 0===oe&&(oe=V),void 0===se&&(se=null);var de="string"==typeof ie;if(de)return function(W){return enhancer(W,ie||V,oe)};var Enhanced=function(V){return ae(W,se,(function(W){return G(ie,oe,V,W)}))};return de?ue.default(Enhanced):Enhanced};return enhancer}},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0});var ie=G(5).__importDefault(G(160));V.default=function(W){return!W.prototype?ie.default(W):W}},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0});var ie=G(5),oe=ie.__importStar(G(0));V.default=function(W){return function(V){function class_1(){return null!==V&&V.apply(this,arguments)||this}return ie.__extends(class_1,V),class_1.prototype.render=function(){return W(this.props,this.context)},class_1}(oe.Component)}},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0});var ie=G(5).__importDefault(G(108)),defaultMapPropsToArgs=function(W){return[W]};V.default=function(W,V){return void 0===V&&(V=defaultMapPropsToArgs),function(G){return ie.default(G,W.apply(void 0,V(G)))}}},function(W,V,G){"use strict";var ie=function _interopRequireDefault(W){return W&&W.__esModule?W:{default:W}}(G(46));W.exports=(0,ie.default)("NeosProjectPackages")().NeosUiReduxStore},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.useNodeTypes=V.useNodeType=V.NodeTypeName=void 0;var ie=G(109);V.NodeTypeName=function NodeTypeName(W){return W},V.useNodeType=function useNodeType(W){var V;return null!==(V=ie.useNodeTypesRegistry().get(W))&&void 0!==V?V:null},V.useNodeTypes=function useNodeTypes(W){var V,G=ie.useNodeTypesRegistry();return null!==(V=G.getSubTypesOf(W).map((function(W){return null==G?void 0:G.get(W)})).filter((function(W){return W})))&&void 0!==V?V:[]}},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.useConfiguration=void 0;var ie=G(68);V.useConfiguration=function useConfiguration(W){var V=ie.useNeos();return W?W(V.configuration):V.configuration}},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.useRoutes=void 0;var ie=G(68);V.useRoutes=function useRoutes(W){var V=ie.useNeos();if(V.routes)return W?W(V.routes):V.routes}},function(W,V,G){"use strict";var ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V};Object.defineProperty(V,"__esModule",{value:!0}),V.useI18n=void 0;var ue=__importStar(G(0)),ae=G(111);V.useI18n=function useI18n(){var W=ae.useGlobalRegistry().get("i18n");return ue.useMemo((function(){return function(V,G,ie,oe,ue,ae){return void 0===ie&&(ie={}),void 0===oe&&(oe="Neos.Neos"),void 0===ue&&(ue="Main"),void 0===ae&&(ae=0),W.translate(V,G,ie,oe,ue,ae)}}),[W])}},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.useAssetSummary=void 0;var ie=G(168);Object.defineProperty(V,"useAssetSummary",{enumerable:!0,get:function get(){return ie.useAssetSummary}})},function(W,V,G){"use strict";var __awaiter=function(W,V,G,ie){return new(G||(G=Promise))((function(oe,ue){function fulfilled(W){try{step(ie.next(W))}catch(W){ue(W)}}function rejected(W){try{step(ie.throw(W))}catch(W){ue(W)}}function step(W){W.done?oe(W.value):function adopt(W){return W instanceof G?W:new G((function(V){V(W)}))}(W.value).then(fulfilled,rejected)}step((ie=ie.apply(W,V||[])).next())}))},__generator=function(W,V){var G,ie,oe,ue,ae={label:0,sent:function sent(){if(1&oe[0])throw oe[1];return oe[1]},trys:[],ops:[]};return ue={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ue[Symbol.iterator]=function(){return this}),ue;function verb(ue){return function(se){return function step(ue){if(G)throw new TypeError("Generator is already executing.");for(;ae;)try{if(G=1,ie&&(oe=2&ue[0]?ie.return:ue[0]?ie.throw||((oe=ie.return)&&oe.call(ie),0):ie.next)&&!(oe=oe.call(ie,ue[1])).done)return oe;switch(ie=0,oe&&(ue=[2&ue[0],oe.value]),ue[0]){case 0:case 1:oe=ue;break;case 4:return ae.label++,{value:ue[1],done:!1};case 5:ae.label++,ie=ue[1],ue=[0];continue;case 7:ue=ae.ops.pop(),ae.trys.pop();continue;default:if(!(oe=ae.trys,(oe=oe.length>0&&oe[oe.length-1])||6!==ue[0]&&2!==ue[0])){ae=0;continue}if(3===ue[0]&&(!oe||ue[1]>oe[0]&&ue[1]0)&&!(ie=ue.next()).done;)ae.push(ie.value)}catch(W){oe={error:W}}finally{try{ie&&!ie.done&&(G=ue.return)&&G.call(ue)}finally{if(oe)throw oe.error}}return ae},__spreadArray=function(W,V){for(var G=0,ie=V.length,oe=W.length;G=W.length&&(W=void 0),{value:W&&W[ie++],done:!W}}};throw new TypeError(V?"Object is not iterable.":"Symbol.iterator is not defined.")},__importDefault=function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(V,"__esModule",{value:!0}),V.useSortedAndFilteredLinkTypes=V.useLinkTypeForHref=V.useLinkTypes=V.makeLinkType=void 0;var ue=__importStar(G(0)),ae=G(72),se=__importDefault(G(200)),de=G(12),le=G(119);function useLinkTypes(){var W,V;return null!==(V=null===(W=de.useGlobalRegistry().get("@sitegeist/archaeopteryx/link-types"))||void 0===W?void 0:W.getAllAsList())&&void 0!==V?V:[]}V.makeLinkType=function makeLinkType(W,V){var G,ie,oe=V({createError:function createError(V,G){return G?new ae.VError(G,"["+W+"]: "+V):new ae.VError("["+W+"]: "+V)}});return __assign(__assign({id:W,supportedLinkOptions:[]},oe),{LoadingPreview:null!==(G=oe.LoadingPreview)&&void 0!==G?G:function(){return ue.createElement("div",{},"Loading...")},LoadingEditor:null!==(ie=oe.LoadingEditor)&&void 0!==ie?ie:function(){return ue.createElement("div",{},"Loading...")}})},V.useLinkTypes=useLinkTypes,V.useLinkTypeForHref=function useLinkTypeForHref(W){var V=useLinkTypes();return ue.useMemo((function(){var G,ie;if(null===W)return null;try{for(var oe=__values(__spreadArray([],__read(V)).reverse()),ue=oe.next();!ue.done;ue=oe.next()){var ae=ue.value;if(ae.isSuitableFor({href:W}))return ae}}catch(W){G={error:W}}finally{try{ue&&!ue.done&&(ie=oe.return)&&ie.call(oe)}finally{if(G)throw G.error}}return null}),[V,W])},V.useSortedAndFilteredLinkTypes=function useSortedAndFilteredLinkTypes(){var W=useLinkTypes(),V=le.useEditorState().editorOptions,G=W.map((function(W){var G;return{linkType:W,options:null===(G=V.linkTypes)||void 0===G?void 0:G[W.id]}}));return se.default(G,(function(W){var V=W.options;return null==V?void 0:V.position})).filter((function(W){var V=W.options;return!V||!("enabled"in V)||V.enabled})).map((function(W){return W.linkType}))}},function(W,V,G){(function(V,ie){var oe=G(113),ue=G(186).Stream,ae=G(74),se=/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;function _capitalize(W){return W.charAt(0).toUpperCase()+W.slice(1)}function _toss(W,V,G,ie,ue){throw new oe.AssertionError({message:ae.format("%s (%s) is required",W,V),actual:void 0===ue?typeof ie:ue(ie),expected:V,operator:G||"===",stackStartFunction:_toss.caller})}function _getClass(W){return Object.prototype.toString.call(W).slice(8,-1)}function noop(){}var de={bool:{check:function(W){return"boolean"==typeof W}},func:{check:function(W){return"function"==typeof W}},string:{check:function(W){return"string"==typeof W}},object:{check:function(W){return"object"==typeof W&&null!==W}},number:{check:function(W){return"number"==typeof W&&!isNaN(W)}},finite:{check:function(W){return"number"==typeof W&&!isNaN(W)&&isFinite(W)}},buffer:{check:function(W){return V.isBuffer(W)},operator:"Buffer.isBuffer"},array:{check:function(W){return Array.isArray(W)},operator:"Array.isArray"},stream:{check:function(W){return W instanceof ue},operator:"instanceof",actual:_getClass},date:{check:function(W){return W instanceof Date},operator:"instanceof",actual:_getClass},regexp:{check:function(W){return W instanceof RegExp},operator:"instanceof",actual:_getClass},uuid:{check:function(W){return"string"==typeof W&&se.test(W)},operator:"isUUID"}};W.exports=function _setExports(W){var V,G=Object.keys(de);return V=ie.env.NODE_NDEBUG?noop:function(W,V){W||_toss(V,"true",W)},G.forEach((function(G){if(W)V[G]=noop;else{var ie=de[G];V[G]=function(W,V){ie.check(W)||_toss(V,G,ie.operator,W,ie.actual)}}})),G.forEach((function(G){var ie="optional"+_capitalize(G);if(W)V[ie]=noop;else{var oe=de[G];V[ie]=function(W,V){null!=W&&(oe.check(W)||_toss(V,G,oe.operator,W,oe.actual))}}})),G.forEach((function(G){var ie="arrayOf"+_capitalize(G);if(W)V[ie]=noop;else{var oe=de[G],ue="["+G+"]";V[ie]=function(W,V){var G;for(Array.isArray(W)||_toss(V,ue,oe.operator,W,oe.actual),G=0;G0?ae-4:ae;for(G=0;G>16&255,de[le++]=V>>8&255,de[le++]=255&V;2===se&&(V=oe[W.charCodeAt(G)]<<2|oe[W.charCodeAt(G+1)]>>4,de[le++]=255&V);1===se&&(V=oe[W.charCodeAt(G)]<<10|oe[W.charCodeAt(G+1)]<<4|oe[W.charCodeAt(G+2)]>>2,de[le++]=V>>8&255,de[le++]=255&V);return de},V.fromByteArray=function fromByteArray(W){for(var V,G=W.length,oe=G%3,ue=[],ae=0,se=G-oe;aese?se:ae+16383));1===oe?(V=W[G-1],ue.push(ie[V>>2]+ie[V<<4&63]+"==")):2===oe&&(V=(W[G-2]<<8)+W[G-1],ue.push(ie[V>>10]+ie[V>>4&63]+ie[V<<2&63]+"="));return ue.join("")};for(var ie=[],oe=[],ue="undefined"!=typeof Uint8Array?Uint8Array:Array,ae="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",se=0,de=ae.length;se0)throw new Error("Invalid string. Length must be a multiple of 4");var G=W.indexOf("=");return-1===G&&(G=V),[G,G===V?0:4-G%4]}function encodeChunk(W,V,G){for(var oe,ue,ae=[],se=V;se>18&63]+ie[ue>>12&63]+ie[ue>>6&63]+ie[63&ue]);return ae.join("")}oe["-".charCodeAt(0)]=62,oe["_".charCodeAt(0)]=63},function(W,V){V.read=function(W,V,G,ie,oe){var ue,ae,se=8*oe-ie-1,de=(1<>1,pe=-7,he=G?oe-1:0,ve=G?-1:1,ge=W[V+he];for(he+=ve,ue=ge&(1<<-pe)-1,ge>>=-pe,pe+=se;pe>0;ue=256*ue+W[V+he],he+=ve,pe-=8);for(ae=ue&(1<<-pe)-1,ue>>=-pe,pe+=ie;pe>0;ae=256*ae+W[V+he],he+=ve,pe-=8);if(0===ue)ue=1-le;else{if(ue===de)return ae?NaN:1/0*(ge?-1:1);ae+=Math.pow(2,ie),ue-=le}return(ge?-1:1)*ae*Math.pow(2,ue-ie)},V.write=function(W,V,G,ie,oe,ue){var ae,se,de,le=8*ue-oe-1,pe=(1<>1,ve=23===oe?Math.pow(2,-24)-Math.pow(2,-77):0,ge=ie?0:ue-1,Se=ie?1:-1,we=V<0||0===V&&1/V<0?1:0;for(V=Math.abs(V),isNaN(V)||V===1/0?(se=isNaN(V)?1:0,ae=pe):(ae=Math.floor(Math.log(V)/Math.LN2),V*(de=Math.pow(2,-ae))<1&&(ae--,de*=2),(V+=ae+he>=1?ve/de:ve*Math.pow(2,1-he))*de>=2&&(ae++,de/=2),ae+he>=pe?(se=0,ae=pe):ae+he>=1?(se=(V*de-1)*Math.pow(2,oe),ae+=he):(se=V*Math.pow(2,he-1)*Math.pow(2,oe),ae=0));oe>=8;W[G+ge]=255&se,ge+=Se,se/=256,oe-=8);for(ae=ae<0;W[G+ge]=255&ae,ge+=Se,ae/=256,le-=8);W[G+ge-Se]|=128*we}},function(W,V,G){"use strict";var ie=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable;function toObject(W){if(null==W)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(W)}W.exports=function shouldUseNative(){try{if(!Object.assign)return!1;var W=new String("abc");if(W[5]="de","5"===Object.getOwnPropertyNames(W)[0])return!1;for(var V={},G=0;G<10;G++)V["_"+String.fromCharCode(G)]=G;if("0123456789"!==Object.getOwnPropertyNames(V).map((function(W){return V[W]})).join(""))return!1;var ie={};return"abcdefghijklmnopqrst".split("").forEach((function(W){ie[W]=W})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},ie)).join("")}catch(W){return!1}}()?Object.assign:function(W,V){for(var G,ae,se=toObject(W),de=1;de0?this.tail.next=V:this.head=V,this.tail=V,++this.length},BufferList.prototype.unshift=function unshift(W){var V={data:W,next:this.head};0===this.length&&(this.tail=V),this.head=V,++this.length},BufferList.prototype.shift=function shift(){if(0!==this.length){var W=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,W}},BufferList.prototype.clear=function clear(){this.head=this.tail=null,this.length=0},BufferList.prototype.join=function join(W){if(0===this.length)return"";for(var V=this.head,G=""+V.data;V=V.next;)G+=W+V.data;return G},BufferList.prototype.concat=function concat(W){if(0===this.length)return ie.alloc(0);if(1===this.length)return this.head.data;for(var V,G,oe,ue=ie.allocUnsafe(W>>>0),ae=this.head,se=0;ae;)V=ae.data,G=ue,oe=se,V.copy(G,oe),se+=ae.data.length,ae=ae.next;return ue},BufferList}(),oe&&oe.inspect&&oe.inspect.custom&&(W.exports.prototype[oe.inspect.custom]=function(){var W=oe.inspect({length:this.length});return this.constructor.name+" "+W})},function(W,V){},function(W,V,G){(function(W){var ie=void 0!==W&&W||"undefined"!=typeof self&&self||window,oe=Function.prototype.apply;function Timeout(W,V){this._id=W,this._clearFn=V}V.setTimeout=function(){return new Timeout(oe.call(setTimeout,ie,arguments),clearTimeout)},V.setInterval=function(){return new Timeout(oe.call(setInterval,ie,arguments),clearInterval)},V.clearTimeout=V.clearInterval=function(W){W&&W.close()},Timeout.prototype.unref=Timeout.prototype.ref=function(){},Timeout.prototype.close=function(){this._clearFn.call(ie,this._id)},V.enroll=function(W,V){clearTimeout(W._idleTimeoutId),W._idleTimeout=V},V.unenroll=function(W){clearTimeout(W._idleTimeoutId),W._idleTimeout=-1},V._unrefActive=V.active=function(W){clearTimeout(W._idleTimeoutId);var V=W._idleTimeout;V>=0&&(W._idleTimeoutId=setTimeout((function onTimeout(){W._onTimeout&&W._onTimeout()}),V))},G(191),V.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==W&&W.setImmediate||this&&this.setImmediate,V.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==W&&W.clearImmediate||this&&this.clearImmediate}).call(this,G(47))},function(W,V,G){(function(W,V){!function(W,G){"use strict";if(!W.setImmediate){var ie,oe=1,ue={},ae=!1,se=W.document,de=Object.getPrototypeOf&&Object.getPrototypeOf(W);de=de&&de.setTimeout?de:W,"[object process]"==={}.toString.call(W.process)?function installNextTickImplementation(){ie=function(W){V.nextTick((function(){runIfPresent(W)}))}}():!function canUsePostMessage(){if(W.postMessage&&!W.importScripts){var V=!0,G=W.onmessage;return W.onmessage=function(){V=!1},W.postMessage("","*"),W.onmessage=G,V}}()?W.MessageChannel?function installMessageChannelImplementation(){var W=new MessageChannel;W.port1.onmessage=function(W){runIfPresent(W.data)},ie=function(V){W.port2.postMessage(V)}}():se&&"onreadystatechange"in se.createElement("script")?function installReadyStateChangeImplementation(){var W=se.documentElement;ie=function(V){var G=se.createElement("script");G.onreadystatechange=function(){runIfPresent(V),G.onreadystatechange=null,W.removeChild(G),G=null},W.appendChild(G)}}():function installSetTimeoutImplementation(){ie=function(W){setTimeout(runIfPresent,0,W)}}():function installPostMessageImplementation(){var V="setImmediate$"+Math.random()+"$",onGlobalMessage=function(G){G.source===W&&"string"==typeof G.data&&0===G.data.indexOf(V)&&runIfPresent(+G.data.slice(V.length))};W.addEventListener?W.addEventListener("message",onGlobalMessage,!1):W.attachEvent("onmessage",onGlobalMessage),ie=function(G){W.postMessage(V+G,"*")}}(),de.setImmediate=function setImmediate(W){"function"!=typeof W&&(W=new Function(""+W));for(var V=new Array(arguments.length-1),G=0;G0)throw jsError(W,ve,ge,"uses non-zero precision (not supported)");switch(V.match(/-/)&&(se=!0),V.match(/0/)&&(de="0"),V.match(/\+/)&&(le=!0),ae){case"s":if(null==pe)throw jsError(W,ve,ge,"attempted to print undefined or null as a string (argument "+Fe+" to sprintf)");Ie+=doPad(de,G,se,pe.toString());break;case"d":pe=Math.floor(pe);case"f":Ie+=(le=le&&pe>0?"+":"")+doPad(de,G,se,pe.toString());break;case"x":Ie+=doPad(de,G,se,pe.toString(16));break;case"j":0===G&&(G=10),Ie+=oe.inspect(pe,!1,G);break;case"r":Ie+=dumpException(pe);break;default:throw jsError(W,ve,ge,"is not supported")}}else Ie+="%";return Ie+=Pe}function jsError(W,V,G,oe){return ie.equal(typeof W,"string"),ie.equal(typeof G,"string"),ie.equal(typeof V,"number"),ie.equal(typeof oe,"string"),new Error('format string "'+W+'": conversion specifier "'+G+'" at character '+V+" "+oe)}function jsFprintf(W){var V=Array.prototype.slice.call(arguments,1);return W.write(jsSprintf.apply(this,V))}function doPad(W,V,G,ie){for(var oe=ie;oe.length=0)){if(Qe.push(W),Ue[W]){var se=et(Ue[W],!0);try{for(var de=ie.__values(se),le=de.next();!le.done;le=de.next()){var pe=le.value;addToResults(Ue[W][pe],V)}}catch(W){G={error:W}}finally{try{le&&!le.done&&(oe=de.return)&&oe.call(de)}finally{if(G)throw G.error}}}if(V.push(W),ze[W]){var he=et(ze[W],!1);try{for(var ve=ie.__values(he),ge=ve.next();!ge.done;ge=ve.next()){pe=ge.value;addToResults(ze[W][pe],V)}}catch(W){ue={error:W}}finally{try{ge&&!ge.done&&(ae=ve.return)&&ae.call(ve)}finally{if(ue)throw ue.error}}}}}))};try{for(var rt=ie.__values(et(Le,!1)),nt=rt.next();!nt.done;nt=rt.next()){var it=nt.value;tt(Le[it],He)}}catch(W){oe={error:W}}finally{try{nt&&!nt.done&&(ue=rt.return)&&ue.call(rt)}finally{if(oe)throw oe.error}}try{for(var ot=ie.__values(et(Re,!0)),ut=ot.next();!ut.done;ut=ot.next()){it=ut.value;tt(Re[it],Ke)}}catch(W){ae={error:W}}finally{try{ut&&!ut.done&&(se=ot.return)&&se.call(ot)}finally{if(ae)throw ae.error}}try{for(var at=ie.__values(et(De,!0)),st=at.next();!st.done;st=at.next()){it=st.value;tt(De[it],Ze)}}catch(W){de={error:W}}finally{try{st&&!st.done&&(le=at.return)&&le.call(at)}finally{if(de)throw de.error}}try{for(var ct=ie.__values(Object.keys(Ue)),dt=ct.next();!dt.done;dt=ct.next()){var lt=dt.value;if(!(Qe.indexOf(lt)>=0))try{for(var ft=(ve=void 0,ie.__values(et(Ue[lt],!1))),pt=ft.next();!pt.done;pt=ft.next()){it=pt.value;tt(Ue[lt][it],He)}}catch(W){ve={error:W}}finally{try{pt&&!pt.done&&(ge=ft.return)&&ge.call(ft)}finally{if(ve)throw ve.error}}}}catch(W){pe={error:W}}finally{try{dt&&!dt.done&&(he=ct.return)&&he.call(ct)}finally{if(pe)throw pe.error}}try{for(var ht=ie.__values(Object.keys(ze)),bt=ht.next();!bt.done;bt=ht.next()){lt=bt.value;if(!(Qe.indexOf(lt)>=0))try{for(var yt=(Ce=void 0,ie.__values(et(ze[lt],!1))),vt=yt.next();!vt.done;vt=yt.next()){it=vt.value;tt(ze[lt][it],Ke)}}catch(W){Ce={error:W}}finally{try{vt&&!vt.done&&(Pe=yt.return)&&Pe.call(yt)}finally{if(Ce)throw Ce.error}}}}catch(W){Se={error:W}}finally{try{bt&&!bt.done&&(we=ht.return)&&we.call(ht)}finally{if(Se)throw Se.error}}return ie.__spread(He,Ke,Ze).map((function(W){return Fe[W]})).map((function(V){return W[V]}))}},function(W,V,G){"use strict";var __assign=function(){return(__assign=Object.assign||function(W){for(var V,G=1,ie=arguments.length;G0)&&!(ie=ue.next()).done;)ae.push(ie.value)}catch(W){oe={error:W}}finally{try{ie&&!ie.done&&(G=ue.return)&&G.call(ue)}finally{if(oe)throw oe.error}}return ae};Object.defineProperty(V,"__esModule",{value:!0}),V.useEditorTransactions=V.useEditorState=V.EditorContext=V.createEditor=V.editorReducer=void 0;var ue=__importStar(G(0)),ae=G(76),se=G(252),de=G(250),le=__importStar(G(202)),pe={enabledLinkOptions:[],editorOptions:{},isOpen:!1,initialValue:null};function editorReducer(W,V){switch(void 0===W&&(W=pe),V.type){case ae.getType(le.EditorWasOpened):return __assign(__assign({},V.payload),{isOpen:!0});case ae.getType(le.EditorWasDismissed):case ae.getType(le.ValueWasUnset):case ae.getType(le.ValueWasApplied):return pe;default:return W}}function createEditor(){var W=new se.Subject,V=function dispatch(V){return W.next(V)},G=new se.BehaviorSubject(pe);W.pipe(de.scan(editorReducer,pe),de.shareReplay(1)).subscribe(G);return{state$:G,tx:{dismiss:function dismiss(){return V(le.EditorWasDismissed())},unset:function unset(){return V(le.ValueWasUnset())},apply:function apply(W){return V(le.ValueWasApplied(W))},editLink:function editLink(G,ie,oe){return void 0===ie&&(ie=[]),void 0===oe&&(oe={}),new Promise((function(ue){V(le.EditorWasOpened(G,ie,oe)),W.subscribe((function(W){switch(W.type){case ae.getType(le.EditorWasDismissed):return ue({change:!1});case ae.getType(le.ValueWasUnset):return ue({change:!0,value:null});case ae.getType(le.ValueWasApplied):return ue({change:!0,value:W.payload});default:return}}))}))}},initialState:pe}}V.editorReducer=editorReducer,V.createEditor=createEditor,V.EditorContext=ue.createContext(createEditor()),V.useEditorState=function useEditorState(){var W=ue.useContext(V.EditorContext).state$,G=__read(ue.useState(W.getValue()),2),ie=G[0],oe=G[1];return ue.useEffect((function(){var V=W.subscribe(oe);return function(){return V.unsubscribe()}}),[W]),ie},V.useEditorTransactions=function useEditorTransactions(){return ue.useContext(V.EditorContext).tx}},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.ValueWasApplied=V.ValueWasUnset=V.EditorWasDismissed=V.EditorWasOpened=void 0;var ie=G(76);V.EditorWasOpened=ie.createAction("http://sitegeist.de/Sitegeist.Archaeopteryx/EditorWasOpened",(function(W,V,G){return void 0===G&&(G={}),{initialValue:W,enabledLinkOptions:V,editorOptions:G}}))(),V.EditorWasDismissed=ie.createAction("http://sitegeist.de/Sitegeist.Archaeopteryx/EditorWasDismissed")(),V.ValueWasUnset=ie.createAction("http://sitegeist.de/Sitegeist.Archaeopteryx/ValueWasUnset")(),V.ValueWasApplied=ie.createAction("http://sitegeist.de/Sitegeist.Archaeopteryx/ValueWasApplied",(function(W){return W}))()},function(W,V,G){"use strict";var __makeTemplateObject=function(W,V){return Object.defineProperty?Object.defineProperty(W,"raw",{value:V}):W.raw=V,W},ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V},__importDefault=function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(V,"__esModule",{value:!0}),V.IconCard=void 0;var ue,ae,se=__importStar(G(0)),de=__importDefault(G(17)),le=G(16),pe=G(120),he=G(204),ve=de.default.div(ue||(ue=__makeTemplateObject(["\n display: grid;\n grid-gap: 8px;\n grid-template-columns: 20px 1fr;\n grid-template-rows: repeat(2, 1fr);\n background-color: #141414;\n padding: 8px 16px;\n min-height: 50px;\n"],["\n display: grid;\n grid-gap: 8px;\n grid-template-columns: 20px 1fr;\n grid-template-rows: repeat(2, 1fr);\n background-color: #141414;\n padding: 8px 16px;\n min-height: 50px;\n"]))),ge=de.default.span(ae||(ae=__makeTemplateObject(["\n display: flex;\n justify-content: center;\n align-items: center;\n grid-column: 1 / span 1;\n grid-row: 1 / span ",";\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n grid-column: 1 / span 1;\n grid-row: 1 / span ",";\n"])),(function(W){return W.span}));V.IconCard=function IconCard(W){return se.createElement(ve,null,se.createElement(ge,{span:W.subTitle?1:2},se.createElement(le.Icon,{icon:W.icon})),se.createElement(pe.CardTitle,{span:W.subTitle?1:2},W.title),se.createElement(he.CardSubTitle,null,W.subTitle))}},function(W,V,G){"use strict";var __makeTemplateObject=function(W,V){return Object.defineProperty?Object.defineProperty(W,"raw",{value:V}):W.raw=V,W},ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V},__importDefault=function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(V,"__esModule",{value:!0}),V.CardSubTitle=void 0;var ue,ae=__importStar(G(0)),se=__importDefault(G(17)),de=G(121),le=se.default.span(ue||(ue=__makeTemplateObject(["\n display: flex;\n align-items: center;\n line-height: 1;\n font-size: 12px;\n color: #999;\n grid-column: 1 / span 2;\n grid-row: 2 / span 1;\n min-width: 0;\n"],["\n display: flex;\n align-items: center;\n line-height: 1;\n font-size: 12px;\n color: #999;\n grid-column: 1 / span 2;\n grid-row: 2 / span 1;\n min-width: 0;\n"])));V.CardSubTitle=function CardSubTitle(W){return ae.createElement(le,null,ae.createElement(de.Ellipsis,null,W.children))}},function(W,V,G){"use strict";var __makeTemplateObject=function(W,V){return Object.defineProperty?Object.defineProperty(W,"raw",{value:V}):W.raw=V,W},ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V},__importDefault=function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(V,"__esModule",{value:!0}),V.ImageCard=void 0;var ue,ae,se=__importStar(G(0)),de=__importDefault(G(17)),le=G(120),pe=de.default.div(ue||(ue=__makeTemplateObject(["\n display: grid;\n grid-gap: 8px;\n grid-template-columns: 75px 1fr;\n background-color: #141414;\n padding: 0 16px 0 0;\n"],["\n display: grid;\n grid-gap: 8px;\n grid-template-columns: 75px 1fr;\n background-color: #141414;\n padding: 0 16px 0 0;\n"]))),he=de.default.img(ae||(ae=__makeTemplateObject(["\n display: block;\n grid-column: 1 / span 1;\n width: 100%;\n height: 56px;\n object-fit: contain;\n background-color: #fff;\n background-size: 10px 10px;\n background-position: 0 0, 25px 25px;\n background-image: linear-gradient(45deg, #cccccc 25%, transparent 25%, transparent 75%, #cccccc 75%, #cccccc), linear-gradient(45deg, #cccccc 25%, transparent 25%, transparent 75%, #cccccc 75%, #cccccc);\n"],["\n display: block;\n grid-column: 1 / span 1;\n width: 100%;\n height: 56px;\n object-fit: contain;\n background-color: #fff;\n background-size: 10px 10px;\n background-position: 0 0, 25px 25px;\n background-image: linear-gradient(45deg, #cccccc 25%, transparent 25%, transparent 75%, #cccccc 75%, #cccccc), linear-gradient(45deg, #cccccc 25%, transparent 25%, transparent 75%, #cccccc 75%, #cccccc);\n"])));V.ImageCard=function ImageCard(W){return se.createElement(pe,null,se.createElement(he,{src:W.src}),se.createElement(le.CardTitle,{span:1},W.label))}},function(W,V,G){"use strict";var __makeTemplateObject=function(W,V){return Object.defineProperty?Object.defineProperty(W,"raw",{value:V}):W.raw=V,W},ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V};Object.defineProperty(V,"__esModule",{value:!0}),V.Tabs=void 0;var ue,ae,se,de,le,pe,he,ve=__importStar(G(0)),ge=__importStar(G(17)),Se=ge.default.ul(ue||(ue=__makeTemplateObject(["\n display: flex;\n margin: 0 0 -1px 0;\n padding: 0;\n list-style-type: none;\n\n > * + * {\n margin-left: -1px;\n }\n"],["\n display: flex;\n margin: 0 0 -1px 0;\n padding: 0;\n list-style-type: none;\n\n > * + * {\n margin-left: -1px;\n }\n"]))),we=ge.default.button(pe||(pe=__makeTemplateObject(["\n height: 40px;\n ","\n ","\n border-right: 1px solid #3f3f3f;\n border-left: 1px solid #3f3f3f;\n color: #FFF;\n background-color: #222;\n line-height: 40px;\n padding: 0 16px;\n cursor: pointer;\n"],["\n height: 40px;\n ","\n ","\n border-right: 1px solid #3f3f3f;\n border-left: 1px solid #3f3f3f;\n color: #FFF;\n background-color: #222;\n line-height: 40px;\n padding: 0 16px;\n cursor: pointer;\n"])),(function(W){return W.isActive?ge.css(ae||(ae=__makeTemplateObject(["border-top: 2px solid #00adee;"],["border-top: 2px solid #00adee;"]))):ge.css(se||(se=__makeTemplateObject(["border-top: 1px solid #3f3f3f;"],["border-top: 1px solid #3f3f3f;"])))}),(function(W){return W.isActive?ge.css(de||(de=__makeTemplateObject(["border-bottom: 1px solid #222;"],["border-bottom: 1px solid #222;"]))):ge.css(le||(le=__makeTemplateObject(["border-bottom: 1px solid #3f3f3f;"],["border-bottom: 1px solid #3f3f3f;"])))})),Ce=ge.default.div(he||(he=__makeTemplateObject(["\n padding: 16px;\n background-color: #222;\n border: 1px solid #3f3f3f;\n"],["\n padding: 16px;\n background-color: #222;\n border: 1px solid #3f3f3f;\n"])));V.Tabs=function Tabs(W){if(W.from.length<1)throw new Error("[Sitegeist.Archaeopteryx]: Tabs must have at least one item!");var V=ve.createElement("header",null,ve.createElement("nav",null,ve.createElement(Se,null,W.from.map((function(V){return ve.createElement("li",{key:W.getKey(V)},ve.createElement(we,{type:"button",isActive:W.getKey(V)===W.activeItemKey,onClick:function onClick(){W.onSwitchTab&&W.onSwitchTab(W.getKey(V))}},W.renderHeader(V)))}))))),G=W.lazy?ve.createElement("div",null,W.from.filter((function(V){return W.getKey(V)===W.activeItemKey})).map((function(V){return ve.createElement(Ce,{key:W.getKey(V)},W.renderPanel(V))}))):ve.createElement("div",null,W.from.map((function(V){return ve.createElement(Ce,{key:W.getKey(V),hidden:W.getKey(V)!==W.activeItemKey},W.renderPanel(V))})));return ve.createElement("div",null,V,G)}},function(W,V,G){"use strict";var __makeTemplateObject=function(W,V){return Object.defineProperty?Object.defineProperty(W,"raw",{value:V}):W.raw=V,W},ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V},__importDefault=function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(V,"__esModule",{value:!0}),V.Form=void 0;var ue,ae,se,de=__importStar(G(0)),le=__importDefault(G(17)),pe=le.default.form(ue||(ue=__makeTemplateObject(["\n > * + * {\n margin-top: 16px;\n }\n"],["\n > * + * {\n margin-top: 16px;\n }\n"]))),he=le.default.div(ae||(ae=__makeTemplateObject(["\n padding: 0 16px;\n"],["\n padding: 0 16px;\n"]))),ve=le.default.div(se||(se=__makeTemplateObject(["\n display: flex;\n justify-content: flex-end;\n"],["\n display: flex;\n justify-content: flex-end;\n"])));V.Form=function Form(W){return de.createElement(pe,{onSubmit:W.onSubmit},de.createElement(he,null,W.renderBody()),de.createElement(ve,null,W.renderActions()))}},function(W,V,G){"use strict";var __makeTemplateObject=function(W,V){return Object.defineProperty?Object.defineProperty(W,"raw",{value:V}):W.raw=V,W},ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V},__importDefault=function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(V,"__esModule",{value:!0}),V.Modal=void 0;var ue,ae=__importStar(G(0)),se=__importStar(G(209)),de=__importDefault(G(17)),le=G(16),pe=de.default(le.Dialog)(ue||(ue=__makeTemplateObject(['\n [class*="_dialog__contentsPosition "],\n [class$="_dialog__contentsPosition"] {\n top: 50%;\n transform: translateY(-50%)translateX(-50%)scale(1);\n }\n [class*="_dialog__contents "],\n [class$="_dialog__contents"] {\n width: auto;\n max-width: calc(100vw - 40px * 2);\n }\n [class*="_dialog__body "],\n [class$="_dialog__body"] {\n max-height: 80vh;\n }\n'],['\n [class*="_dialog__contentsPosition "],\n [class$="_dialog__contentsPosition"] {\n top: 50%;\n transform: translateY(-50%)translateX(-50%)scale(1);\n }\n [class*="_dialog__contents "],\n [class$="_dialog__contents"] {\n width: auto;\n max-width: calc(100vw - 40px * 2);\n }\n [class*="_dialog__body "],\n [class$="_dialog__body"] {\n max-height: 80vh;\n }\n'])));V.Modal=function Modal(W){return se.createPortal(ae.createElement(pe,{isOpen:!0,title:W.renderTitle(),onRequestClose:function onRequestClose(){},preventClosing:!0},W.renderBody()),document.body)}},function(W,V,G){"use strict";var ie=function _interopRequireDefault(W){return W&&W.__esModule?W:{default:W}}(G(46));W.exports=(0,ie.default)("vendor")().ReactDOM},function(W,V,G){"use strict";var __makeTemplateObject=function(W,V){return Object.defineProperty?Object.defineProperty(W,"raw",{value:V}):W.raw=V,W},ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V},__importDefault=function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(V,"__esModule",{value:!0}),V.Deletable=void 0;var ue,ae,se=__importStar(G(0)),de=__importDefault(G(17)),le=G(16),pe=de.default.div(ue||(ue=__makeTemplateObject(["\n display: grid;\n grid-template-columns: 1fr 40px;\n justify-content: stretch;\n border: 1px solid #3f3f3f;\n max-width: 420px;\n"],["\n display: grid;\n grid-template-columns: 1fr 40px;\n justify-content: stretch;\n border: 1px solid #3f3f3f;\n max-width: 420px;\n"]))),he=de.default(le.IconButton)(ae||(ae=__makeTemplateObject(["\n height: 100%;\n"],["\n height: 100%;\n"])));V.Deletable=function Deletable(W){return se.createElement(pe,null,se.createElement("div",null,W.children),se.createElement(he,{icon:"trash",hoverStyle:"error",onClick:W.onDelete}))}},function(W,V,G){"use strict";var __makeTemplateObject=function(W,V){return Object.defineProperty?Object.defineProperty(W,"raw",{value:V}):W.raw=V,W},ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V},__importDefault=function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(V,"__esModule",{value:!0}),V.IconLabel=void 0;var ue,ae=__importStar(G(0)),se=__importDefault(G(17)),de=G(16),le=se.default.div(ue||(ue=__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 8px;\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n"])));V.IconLabel=function IconLabel(W){return ae.createElement(le,null,ae.createElement(de.Icon,{icon:W.icon}),W.children)}},function(W,V,G){"use strict";var __makeTemplateObject=function(W,V){return Object.defineProperty?Object.defineProperty(W,"raw",{value:V}):W.raw=V,W},__importDefault=function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(V,"__esModule",{value:!0}),V.Columns=V.Stack=V.Container=void 0;var ie,oe,ue,ae=__importDefault(G(17));V.Container=ae.default.div(ie||(ie=__makeTemplateObject(["\n padding: 16px;\n"],["\n padding: 16px;\n"]))),V.Stack=ae.default.div(oe||(oe=__makeTemplateObject(["\n > * + * {\n margin-top: 16px;\n }\n"],["\n > * + * {\n margin-top: 16px;\n }\n"]))),V.Columns=ae.default.div(ue||(ue=__makeTemplateObject(["\n display: grid;\n gap: 16px;\n grid-template-columns: repeat(auto-fill, minmax(max(160px, calc(50% - 8px)), calc(33.3333% - 8px)));\n min-width: 600px;\n"],["\n display: grid;\n gap: 16px;\n grid-template-columns: repeat(auto-fill, minmax(max(160px, calc(50% - 8px)), calc(33.3333% - 8px)));\n min-width: 600px;\n"])))},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.Node=void 0;var ie=G(214);Object.defineProperty(V,"Node",{enumerable:!0,get:function get(){return ie.Node}})},function(W,V,G){"use strict";var ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V},__awaiter=function(W,V,G,ie){return new(G||(G=Promise))((function(oe,ue){function fulfilled(W){try{step(ie.next(W))}catch(W){ue(W)}}function rejected(W){try{step(ie.throw(W))}catch(W){ue(W)}}function step(W){W.done?oe(W.value):function adopt(W){return W instanceof G?W:new G((function(V){V(W)}))}(W.value).then(fulfilled,rejected)}step((ie=ie.apply(W,V||[])).next())}))},__generator=function(W,V){var G,ie,oe,ue,ae={label:0,sent:function sent(){if(1&oe[0])throw oe[1];return oe[1]},trys:[],ops:[]};return ue={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ue[Symbol.iterator]=function(){return this}),ue;function verb(ue){return function(se){return function step(ue){if(G)throw new TypeError("Generator is already executing.");for(;ae;)try{if(G=1,ie&&(oe=2&ue[0]?ie.return:ue[0]?ie.throw||((oe=ie.return)&&oe.call(ie),0):ie.next)&&!(oe=oe.call(ie,ue[1])).done)return oe;switch(ie=0,oe&&(ue=[2&ue[0],oe.value]),ue[0]){case 0:case 1:oe=ue;break;case 4:return ae.label++,{value:ue[1],done:!1};case 5:ae.label++,ie=ue[1],ue=[0];continue;case 7:ue=ae.ops.pop(),ae.trys.pop();continue;default:if(!(oe=ae.trys,(oe=oe.length>0&&oe[oe.length-1])||6!==ue[0]&&2!==ue[0])){ae=0;continue}if(3===ue[0]&&(!oe||ue[1]>oe[0]&&ue[1]=W.length&&(W=void 0),{value:W&&W[ie++],done:!W}}};throw new TypeError(V?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(V,"__esModule",{value:!0}),V.Node=void 0;var ue=__importStar(G(0)),ae=G(55),se=G(12),de=G(215),le=G(30),pe=G(38),he=G(43),ve=new Map,ge=function NodePreview(W){var V,G,ie,oe,ae,de,le,he=W.node,ve=se.useNodeSummary(he.identifier),ge=se.useNodeType(null!==(V=he.nodeType)&&void 0!==V?V:se.NodeTypeName("Neos.Neos:Document"));return ue.createElement(pe.IconCard,{icon:null!==(ie=null===(G=null==ge?void 0:ge.ui)||void 0===G?void 0:G.icon)&&void 0!==ie?ie:"square",title:null!==(ae=null===(oe=ve.value)||void 0===oe?void 0:oe.label)&&void 0!==ae?ae:he.label,subTitle:null!==(le=null===(de=ve.value)||void 0===de?void 0:de.breadcrumb)&&void 0!==le?le:"node://"+he.identifier})};V.Node=le.makeLinkType("Sitegeist.Archaeopteryx:Node",(function(W){var V=W.createError;return{supportedLinkOptions:["anchor","title","targetBlank","relNofollow"],isSuitableFor:function isSuitableFor(W){return W.href.startsWith("node://")},useResolvedModel:function useResolvedModel(W){var G=se.useSiteNodeContextPath(),ie=ae.useAsync((function(){return __awaiter(void 0,void 0,void 0,(function(){var ie,oe,ue,ae,de,le,pe,he,ge,Se;return __generator(this,(function(we){switch(we.label){case 0:if(!G)throw V("Could not find siteNodeContextPath.");if(!(ie=/node:\/\/(.*)/.exec(W.href)))throw V('Cannot handle href "'+W.href+'".');return oe=ie[1],ue=oe+"@"+G.context,ve.has(ue)?[2,{node:ve.get(ue),identifier:oe}]:[4,se.q(G).find("#"+oe).getForTree()];case 1:ae=we.sent();try{for(de=__values(ae),le=de.next();!le.done;le=de.next())return pe=le.value,he={node:pe,identifier:oe},ve.set(ue,he.node),[2,he]}catch(W){ge={error:W}}finally{try{le&&!le.done&&(Se=de.return)&&Se.call(de)}finally{if(ge)throw ge.error}}return[2,{node:void 0,identifier:oe}]}}))}))}),[W.href,G]);return he.Process.fromAsyncState(ie)},convertModelToLink:function convertModelToLink(W){var V=W.node;return{href:"node://"+(null==V?void 0:V.identifier)}},TabHeader:function TabHeader(){var W=se.useI18n();return ue.createElement(pe.IconLabel,{icon:"file"},W("Sitegeist.Archaeopteryx:LinkTypes.Node:title"))},Preview:function Preview(W){var V=W.model,G=V.node,ie=V.identifier,oe=se.useI18n();return G?ue.createElement(ge,{node:G}):ue.createElement(pe.IconCard,{icon:"ban",title:"["+oe("Sitegeist.Archaeopteryx:LinkTypes.Node:labelOfNonExistingNode")+"]",subTitle:"node://"+ie})},Editor:function Editor(W){var G,ie,oe,ae,le=W.model,pe=W.options,ge=se.useI18n(),Se=se.useSiteNodeContextPath(),we=se.useDocumentNodeContextPath(),Ce=null!==(G=se.useConfiguration((function(W){var V,G,ie;return null===(ie=null===(G=null===(V=W.nodeTree)||void 0===V?void 0:V.presets)||void 0===G?void 0:G.default)||void 0===ie?void 0:ie.baseNodeType})))&&void 0!==G?G:se.NodeTypeName("Neos.Neos:Document"),Pe=null!==(ie=se.useConfiguration((function(W){var V;return null===(V=W.nodeTree)||void 0===V?void 0:V.loadingDepth})))&&void 0!==ie?ie:4,Ie=null!==(oe=se.useSelector((function(W){var V,G;return null===(G=null===(V=W.ui)||void 0===V?void 0:V.pageTree)||void 0===G?void 0:G.query})))&&void 0!==oe?oe:"",Fe=null!==(ae=se.useSelector((function(W){var V,G;return null===(G=null===(V=W.ui)||void 0===V?void 0:V.pageTree)||void 0===G?void 0:G.filterNodeType})))&&void 0!==ae?ae:"",Re=ue.useMemo((function(){var W;return pe.startingPoint&&null!==(W=null==Se?void 0:Se.adopt(pe.startingPoint))&&void 0!==W?W:Se}),[pe.startingPoint,Se]);if(Re){if(we)return ue.createElement(he.Field,{name:"node",initialValue:null==le?void 0:le.node,validate:function validate(W){if(!W)return ge("Sitegeist.Archaeopteryx:LinkTypes.Node:node.validation.required")}},(function(W){var V,G,ie,oe=W.input;return ue.createElement(de.NodeTree,{configuration:{baseNodeTypeName:null!==(V=pe.baseNodeType)&&void 0!==V?V:Ce,allowedNodeTypes:pe.allowedNodeTypes,rootNodeContextPath:Re,documentNodeContextPath:we,selectedNodeContextPath:null===(G=oe.value)||void 0===G?void 0:G.contextPath,loadingDepth:null!==(ie=pe.loadingDepth)&&void 0!==ie?ie:Pe},options:{enableSearch:!0,enableNodeTypeFilter:!0},initialSearchTerm:Ie,initialNodeTypeFilter:Fe,onSelect:function onSelect(W){var V=W.identifier+"@"+Re.context;ve.set(V,W),oe.onChange(W)}})}));throw V("Could not load node tree, because documentNodeContextPath could not be determined.")}throw V("Could not load node tree, because rootNodeContextPath could not be determined.")}}}))},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.NodeTree=void 0;var ie=G(216);Object.defineProperty(V,"NodeTree",{enumerable:!0,get:function get(){return ie.NodeTree}})},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.NodeTree=void 0;var ie=G(217);Object.defineProperty(V,"NodeTree",{enumerable:!0,get:function get(){return ie.NodeTree}})},function(W,V,G){"use strict";var __assign=function(){return(__assign=Object.assign||function(W){for(var V,G=1,ie=arguments.length;G0&&oe[oe.length-1])||6!==ue[0]&&2!==ue[0])){ae=0;continue}if(3===ue[0]&&(!oe||ue[1]>oe[0]&&ue[1]0)&&!(ie=ue.next()).done;)ae.push(ie.value)}catch(W){oe={error:W}}finally{try{ie&&!ie.done&&(G=ue.return)&&G.call(ue)}finally{if(oe)throw oe.error}}return ae};Object.defineProperty(V,"__esModule",{value:!0}),V.NodeTree=void 0;var ue=__importStar(G(0)),ae=G(55),se=G(72),de=G(16),le=G(12),pe=G(78),he=G(79),ve=G(228),ge=G(229),Se=G(232);V.NodeTree=function NodeTree(W){return ue.createElement(pe.ErrorBoundary,null,ue.createElement(we,__assign({},W)))};var we=function NodeTreeWithoutErrorHandling(W){var V,G,ie,oe,we=le.useNeos(),Ce=le.useNodeTypesRegistry(),Pe=__read(ue.useReducer(he.nodeTreeReducer,he.initialNodeTreeState),2),Ie=Pe[0],Fe=Pe[1],Re=ue.useRef(Ie);Re.current=Ie;var Le,De=function useCanBeLoadedFromUiState(W){var V=le.useSiteNodeContextPath(),G=le.useDocumentNodeContextPath(),ie=le.useConfiguration((function(W){var V,G,ie;return null===(ie=null===(G=null===(V=W.nodeTree)||void 0===V?void 0:V.presets)||void 0===G?void 0:G.default)||void 0===ie?void 0:ie.baseNodeType})),oe=le.useConfiguration((function(W){var V;return null===(V=W.nodeTree)||void 0===V?void 0:V.loadingDepth}));return le.useHasNode(W.selectedNodeContextPath)&&V&&W.rootNodeContextPath.equals(V)&&G&&W.documentNodeContextPath.equals(G)&&W.baseNodeTypeName===ie&&W.loadingDepth===oe}(W.configuration),Ue=ae.useAsync((function(){return __awaiter(void 0,void 0,void 0,(function(){var V;return __generator(this,(function(G){switch(G.label){case 0:return De?[4,he.loadNodeTreeFromUiState({state:Ie,dispatch:Fe},Ce,we,W.configuration)]:[3,2];case 1:return G.sent(),[3,4];case 2:return[4,he.loadNodeTree({state:Ie,dispatch:Fe},Ce,W.configuration)];case 3:G.sent(),G.label=4;case 4:return W.initialSearchTerm||W.initialNodeTypeFilter?[4,he.filterNodesInNodeTree({state:Re.current,dispatch:Fe},Ce,{searchTerm:null!==(V=W.initialSearchTerm)&&void 0!==V?V:null,nodeTypeFilter:W.initialNodeTypeFilter?le.NodeTypeName(W.initialNodeTypeFilter):null})]:[3,6];case 5:G.sent(),G.label=6;case 6:return[2]}}))}))}),[we,De,W.configuration.baseNodeTypeName,W.configuration.rootNodeContextPath,W.initialSearchTerm,W.initialNodeTypeFilter,W.configuration.allowedNodeTypes]),ze=ue.useMemo((function(){return W.configuration.selectedNodeContextPath?he.findNodeByContextPath(Ie,W.configuration.selectedNodeContextPath):null}),[W.configuration,Ie.nodesByContextPath]),He=ue.useCallback((function(W){Ce&&he.toggleNodeInNodeTree({state:Ie,dispatch:Fe},Ce,W)}),[Ie.nodesByContextPath,Ie.nodesByState.uncollapsed,Ce,Fe]);if(Ue.error)throw new se.VError(pe.decodeError(Ue.error),"NodeTree could not be loaded.");Le=Ue.loading||!Ie.rootNode?ue.createElement("div",null,"Loading..."):ue.createElement(de.Tree,null,ue.createElement(ve.NodeTreeNode,{state:Ie,dispatch:Fe,node:Ie.rootNode,selectedNode:ze,level:1,onToggle:He,onClick:function handleClick(V){return W.onSelect(V)},allowedNodeTypes:W.configuration.allowedNodeTypes}));var Ke=null;(null===(V=W.options)||void 0===V?void 0:V.enableSearch)&&(Ke=ue.createElement(ge.Search,{state:Ie,dispatch:Fe,initialValue:null!==(G=W.initialSearchTerm)&&void 0!==G?G:""}));var Ze=null;return(null===(ie=W.options)||void 0===ie?void 0:ie.enableNodeTypeFilter)&&(Ze=ue.createElement(Se.NodeTypeFilter,{state:Ie,dispatch:Fe,initialValue:null!==(oe=W.initialNodeTypeFilter)&&void 0!==oe?oe:""})),ue.createElement("div",{style:{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",backgroundColor:"#141414",border:"1px solid #3f3f3f"}},Ke?ue.createElement("div",{style:{gridColumn:Ze?"1 / span 1":"1 / span 2"}},Ke):null,Ze?ue.createElement("div",{style:{gridColumn:Ke?"2 / span 1":"1 / span 2"}},Ze):null,Le?ue.createElement("div",{style:{marginTop:"-5px",borderTop:"1px solid #3f3f3f",gridColumn:"1 / span 2",height:"50vh",maxHeight:"300px",overflowY:"auto"}},Le):null)}},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.decodeError=V.ErrorBoundary=void 0;var ie=G(219);Object.defineProperty(V,"ErrorBoundary",{enumerable:!0,get:function get(){return ie.ErrorBoundary}});var oe=G(224);Object.defineProperty(V,"decodeError",{enumerable:!0,get:function get(){return oe.decodeError}})},function(W,V,G){"use strict";var ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V};Object.defineProperty(V,"__esModule",{value:!0}),V.ErrorBoundary=void 0;var ue=__importStar(G(0)),ae=G(220),se=G(72),de=G(221),le=function ErrorFallback(W){var V=Boolean(document.querySelector('[data-env^="Development"]'));return ue.createElement(de.Alert,{title:""+W.error.name},ue.createElement("div",null,W.error.message),W.error instanceof se.VError?ue.createElement(pe,{error:W.error,level:0}):null,V?ue.createElement(de.Trace,{title:"Stacktrace"},W.error.stack):null)},pe=function RecursiveCauseChain(W){return W.error?ue.createElement(de.Trace,{title:"Cause: "+W.error.name},W.error.message,W.error instanceof se.VError&&W.level<10?ue.createElement(RecursiveCauseChain,{error:W.error.cause(),level:W.level+1}):null):null};function logError(W,V){console.warn("[Sitegeist.Archaeopteryx::"+W.name+"]: An error occurred."),console.error("[Sitegeist.Archaeopteryx::"+W.name+"]: ",W),console.error("[Sitegeist.Archaeopteryx::"+W.name+"]: Component Stack:",V.componentStack)}V.ErrorBoundary=function ErrorBoundary(W){return ue.createElement(ae.ErrorBoundary,{fallbackRender:le,onError:logError},W.children)}},function(W,V,G){!function(W,V){"use strict";function _interopNamespace(W){if(W&&W.__esModule)return W;var V=Object.create(null);return W&&Object.keys(W).forEach((function(G){if("default"!==G){var ie=Object.getOwnPropertyDescriptor(W,G);Object.defineProperty(V,G,ie.get?ie:{enumerable:!0,get:function(){return W[G]}})}})),V.default=W,Object.freeze(V)}var G=_interopNamespace(V);function _setPrototypeOf(W,V){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(W,V){return W.__proto__=V,W})(W,V)}var ie={error:null},oe=function(W){function ErrorBoundary(){for(var V,G=arguments.length,oe=new Array(G),ue=0;ue * + * {\n margin-top: 8px;\n }\n"],["\n padding: 8px;\n background-color: #ff6a3c;\n color: #fff;\n\n > * + * {\n margin-top: 8px;\n }\n"]))),he=de.default.header(ae||(ae=__makeTemplateObject(["\n display: flex;\n gap: 8px;\n align-items: center;\n"],["\n display: flex;\n gap: 8px;\n align-items: center;\n"])));V.Alert=function Alert(W){return se.createElement(pe,{role:"alert"},se.createElement(he,null,se.createElement(le.Icon,{icon:"exclamation-triangle"}),W.title),W.children)}},function(W,V,G){"use strict";var __makeTemplateObject=function(W,V){return Object.defineProperty?Object.defineProperty(W,"raw",{value:V}):W.raw=V,W},ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V},__importDefault=function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(V,"__esModule",{value:!0}),V.Trace=void 0;var ue,ae,se,de=__importStar(G(0)),le=__importDefault(G(17)),pe=le.default.details(ue||(ue=__makeTemplateObject(["\n"],["\n"]))),he=le.default.summary(ae||(ae=__makeTemplateObject(["\n cursor: pointer;\n"],["\n cursor: pointer;\n"]))),ve=le.default.pre(se||(se=__makeTemplateObject(["\n height: 60vh;\n max-height: 600px;\n padding: 8px;\n margin: 0;\n overflow: scroll;\n background-color: #111;\n box-shadow: inset 5px 5px 5px #000;\n"],["\n height: 60vh;\n max-height: 600px;\n padding: 8px;\n margin: 0;\n overflow: scroll;\n background-color: #111;\n box-shadow: inset 5px 5px 5px #000;\n"])));V.Trace=function Trace(W){return de.createElement(pe,null,de.createElement(he,null,W.title),de.createElement(ve,null,W.children))}},function(W,V,G){"use strict";function decodeErrorMessage(W){var V;if(W.includes("")){var G=(new DOMParser).parseFromString(W,"text/html");return"["+G.title+"] "+(null===(V=G.querySelector("h1"))||void 0===V?void 0:V.innerText)}return W}Object.defineProperty(V,"__esModule",{value:!0}),V.decodeError=void 0,V.decodeError=function decodeError(W){return W instanceof Error?(W.message=decodeErrorMessage(W.message),W):new Error(decodeErrorMessage(W))}},function(W,V,G){"use strict";var ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V},__values=function(W){var V="function"==typeof Symbol&&Symbol.iterator,G=V&&W[V],ie=0;if(G)return G.call(W);if(W&&"number"==typeof W.length)return{next:function next(){return W&&ie>=W.length&&(W=void 0),{value:W&&W[ie++],done:!W}}};throw new TypeError(V?"Object is not iterable.":"Symbol.iterator is not defined.")},__importDefault=function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(V,"__esModule",{value:!0}),V.nodeTreeReducer=V.initialNodeTreeState=void 0;var ue=__importDefault(G(226)),ae=G(76),se=G(12),de=__importStar(G(122));V.initialNodeTreeState={rootNode:null,baseNodeTypeName:se.NodeTypeName("Neos.Neos:Document"),filterParams:{searchTerm:null,nodeTypeFilter:null},nodesByContextPath:{all:{},filtered:null},nodesByState:{uncollapsed:[],loading:[]}},V.nodeTreeReducer=function nodeTreeReducer(W,G){switch(void 0===W&&(W=V.initialNodeTreeState),G.type){case ae.getType(de.NodesWereLoaded):return ue.default(W,(function(V){var ie,oe;V.rootNode=G.payload.rootNode,V.baseNodeTypeName=G.payload.baseNodeTypeName,V.nodesByContextPath.filtered=null,V.nodesByState.loading=W.nodesByState.loading.filter((function(V){return V!==W.rootNode})),V.nodesByState.uncollapsed=G.payload.uncollapsedNodes;try{for(var ue=__values(G.payload.nodes),ae=ue.next();!ae.done;ae=ue.next()){var se=ae.value;V.nodesByContextPath.all[se.contextPath.toString()]=se}}catch(W){ie={error:W}}finally{try{ae&&!ae.done&&(oe=ue.return)&&oe.call(ue)}finally{if(ie)throw ie.error}}}));case ae.getType(de.ChildNodesWereRequested):return ue.default(W,(function(W){W.nodesByState.loading.push(G.payload)}));case ae.getType(de.ChildNodesWereLoaded):return ue.default(W,(function(V){var ie,oe;V.nodesByState.loading=W.nodesByState.loading.filter((function(W){return W!==G.payload.parentNode}));try{for(var ue=__values(G.payload.childNodes),ae=ue.next();!ae.done;ae=ue.next()){var se=ae.value;V.nodesByContextPath.all[se.contextPath.toString()]=se}}catch(W){ie={error:W}}finally{try{ae&&!ae.done&&(oe=ue.return)&&oe.call(ue)}finally{if(ie)throw ie.error}}}));case ae.getType(de.NodeWasToggled):return ue.default(W,(function(V){(void 0===G.payload.forceToggleState?W.nodesByState.uncollapsed.includes(G.payload.node):!G.payload.forceToggleState)?V.nodesByState.uncollapsed=W.nodesByState.uncollapsed.filter((function(W){return W!==G.payload.node})):V.nodesByState.uncollapsed.push(G.payload.node)}));case ae.getType(de.FilteredNodesWereRequested):return ue.default(W,(function(V){W.rootNode&&!W.nodesByState.loading.includes(W.rootNode)&&V.nodesByState.loading.push(W.rootNode),V.filterParams=G.payload,V.nodesByContextPath.filtered={}}));case ae.getType(de.FilteredNodesWereLoaded):return ue.default(W,(function(V){var ie,oe;V.nodesByState.loading=W.nodesByState.loading.filter((function(V){return V!==W.rootNode})),V.nodesByContextPath.filtered={};try{for(var ue=__values(G.payload),ae=ue.next();!ae.done;ae=ue.next()){var se=ae.value;V.nodesByContextPath.filtered[se.contextPath.toString()]=se}}catch(W){ie={error:W}}finally{try{ae&&!ae.done&&(oe=ue.return)&&oe.call(ue)}finally{if(ie)throw ie.error}}}));case ae.getType(de.FilteredNodesWereReset):return ue.default(W,(function(V){V.nodesByState.loading=W.nodesByState.loading.filter((function(V){return V!==W.rootNode})),V.nodesByContextPath.filtered=null}));default:return W}}},function(W,V,G){"use strict";function n(W){for(var V=arguments.length,G=Array(V>1?V-1:0),ie=1;ie3?V.i-4:V.i:Array.isArray(W)?1:s(W)?2:v(W)?3:0}function u(W,V){return 2===o(W)?W.has(V):Object.prototype.hasOwnProperty.call(W,V)}function a(W,V){return 2===o(W)?W.get(V):W[V]}function f(W,V,G){var ie=o(W);2===ie?W.set(V,G):3===ie?(W.delete(V),W.add(G)):W[V]=G}function c(W,V){return W===V?0!==W||1/W==1/V:W!=W&&V!=V}function s(W){return ae&&W instanceof Map}function v(W){return se&&W instanceof Set}function p(W){return W.o||W.t}function l(W){if(Array.isArray(W))return Array.prototype.slice.call(W);var V=we(W);delete V[he];for(var G=Se(V),ie=0;ie1&&(W.set=W.add=W.clear=W.delete=h),Object.freeze(W),V&&i(W,(function(W,V){return d(V,!0)}),!0)),W}function h(){n(2)}function y(W){return null==W||"object"!=typeof W||Object.isFrozen(W)}function b(W){var V=Ce[W];return V||n(18,W),V}function m(W,V){Ce[W]||(Ce[W]=V)}function _(){return oe}function j(W,V){V&&(b("Patches"),W.u=[],W.s=[],W.v=V)}function g(W){O(W),W.p.forEach(S),W.p=null}function O(W){W===oe&&(oe=W.l)}function w(W){return oe={p:[],l:oe,h:W,m:!0,_:0}}function S(W){var V=W[he];0===V.i||1===V.i?V.j():V.g=!0}function P(W,V){V._=V.p.length;var G=V.p[0],ie=void 0!==W&&W!==G;return V.h.O||b("ES5").S(V,W,ie),ie?(G[he].P&&(g(V),n(4)),t(W)&&(W=M(V,W),V.l||x(V,W)),V.u&&b("Patches").M(G[he],W,V.u,V.s)):W=M(V,G,[]),g(V),V.u&&V.v(V.u,V.s),W!==le?W:void 0}function M(W,V,G){if(y(V))return V;var ie=V[he];if(!ie)return i(V,(function(oe,ue){return A(W,ie,V,oe,ue,G)}),!0),V;if(ie.A!==W)return V;if(!ie.P)return x(W,ie.t,!0),ie.t;if(!ie.I){ie.I=!0,ie.A._--;var oe=4===ie.i||5===ie.i?ie.o=l(ie.k):ie.o;i(3===ie.i?new Set(oe):oe,(function(V,ue){return A(W,ie,oe,V,ue,G)})),x(W,oe,!1),G&&W.u&&b("Patches").R(ie,G,W.u,W.s)}return ie.o}function A(W,V,G,ie,oe,ue){if(r(oe)){var ae=M(W,oe,ue&&V&&3!==V.i&&!u(V.D,ie)?ue.concat(ie):void 0);if(f(G,ie,ae),!r(ae))return;W.m=!1}if(t(oe)&&!y(oe)){if(!W.h.F&&W._<1)return;M(W,oe),V&&V.A.l||x(W,oe)}}function x(W,V,G){void 0===G&&(G=!1),W.h.F&&W.m&&d(V,G)}function z(W,V){var G=W[he];return(G?p(G):W)[V]}function I(W,V){if(V in W)for(var G=Object.getPrototypeOf(W);G;){var ie=Object.getOwnPropertyDescriptor(G,V);if(ie)return ie;G=Object.getPrototypeOf(G)}}function k(W){W.P||(W.P=!0,W.l&&k(W.l))}function E(W){W.o||(W.o=l(W.t))}function R(W,V,G){var ie=s(V)?b("MapSet").N(V,G):v(V)?b("MapSet").T(V,G):W.O?function(W,V){var G=Array.isArray(W),ie={i:G?1:0,A:V?V.A:_(),P:!1,I:!1,D:{},l:V,t:W,k:null,o:null,j:null,C:!1},oe=ie,ue=Pe;G&&(oe=[ie],ue=Ie);var ae=Proxy.revocable(oe,ue),se=ae.revoke,de=ae.proxy;return ie.k=de,ie.j=se,de}(V,G):b("ES5").J(V,G);return(G?G.A:_()).p.push(ie),ie}function D(W){return r(W)||n(22,W),function n(W){if(!t(W))return W;var V,G=W[he],ie=o(W);if(G){if(!G.P&&(G.i<4||!b("ES5").K(G)))return G.t;G.I=!0,V=F(W,ie),G.I=!1}else V=F(W,ie);return i(V,(function(W,ie){G&&a(G.t,W)===ie||f(V,W,n(ie))})),3===ie?new Set(V):V}(W)}function F(W,V){switch(V){case 2:return new Map(W);case 3:return Array.from(W)}return l(W)}function N(){function t(V,G){var ie=W[V];return ie?ie.enumerable=G:W[V]=ie={configurable:!0,enumerable:G,get:function(){var W=this[he];return Pe.get(W,V)},set:function(W){var G=this[he];Pe.set(G,V,W)}},ie}function e(W){for(var V=W.length-1;V>=0;V--){var G=W[V][he];if(!G.P)switch(G.i){case 5:a(G)&&k(G);break;case 4:o(G)&&k(G)}}}function o(W){for(var V=W.t,G=W.k,ie=Se(G),oe=ie.length-1;oe>=0;oe--){var ue=ie[oe];if(ue!==he){var ae=V[ue];if(void 0===ae&&!u(V,ue))return!0;var se=G[ue],de=se&&se[he];if(de?de.t!==ae:!c(se,ae))return!0}}var le=!!V[he];return ie.length!==Se(V).length+(le?0:1)}function a(W){var V=W.k;if(V.length!==W.t.length)return!0;var G=Object.getOwnPropertyDescriptor(V,V.length-1);return!(!G||G.get)}var W={};m("ES5",{J:function(W,V){var G=Array.isArray(W),ie=function(W,V){if(W){for(var G=Array(V.length),ie=0;ie1?ie-1:0),se=1;se1?ie-1:0),ue=1;ue=0;G--){var ie=V[G];if(0===ie.path.length&&"replace"===ie.op){W=ie.value;break}}var oe=b("Patches").$;return r(W)?oe(W,V):this.produce(W,(function(W){return oe(W,V.slice(G+1))}))},e}(),Re=new Fe,Le=Re.produce,De=Re.produceWithPatches.bind(Re),Ue=Re.setAutoFreeze.bind(Re),ze=Re.setUseProxies.bind(Re),He=Re.applyPatches.bind(Re),Ke=Re.createDraft.bind(Re),Ze=Re.finishDraft.bind(Re);V.default=Le},function(W,V,G){"use strict";var __assign=function(){return(__assign=Object.assign||function(W){for(var V,G=1,ie=arguments.length;G0&&oe[oe.length-1])||6!==ue[0]&&2!==ue[0])){ae=0;continue}if(3===ue[0]&&(!oe||ue[1]>oe[0]&&ue[1]0,isLastChild:!0,isCollapsed:he,isActive:ge,isFocused:ge,isLoading:ve,isDirty:!1,isHidden:W.node.properties._hidden,isHiddenInIndex:W.node.properties._hiddenInIndex,isDragging:!1,hasError:!1,label:W.node.label,icon:Se?"fas fa-unlink":null===(G=null==oe?void 0:oe.ui)||void 0===G?void 0:G.icon,iconLabel:null==oe?void 0:oe.label,level:W.level,onToggle:le,onClick:Se?function(){}:pe,dragForbidden:!0,title:W.node.label}),he?null:de.findChildNodesForNode(W.state,W.node).map((function(G){return ue.createElement(V.NodeTreeNode,__assign({},W,{node:G,level:W.level+1,allowedNodeTypes:W.allowedNodeTypes}))})))}},function(W,V,G){"use strict";var ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V},__read=function(W,V){var G="function"==typeof Symbol&&W[Symbol.iterator];if(!G)return W;var ie,oe,ue=G.call(W),ae=[];try{for(;(void 0===V||V-- >0)&&!(ie=ue.next()).done;)ae.push(ie.value)}catch(W){oe={error:W}}finally{try{ie&&!ie.done&&(G=ue.return)&&G.call(ue)}finally{if(oe)throw oe.error}}return ae};Object.defineProperty(V,"__esModule",{value:!0}),V.Search=void 0;var ue=__importStar(G(0)),ae=G(55),se=G(12),de=G(79),le=G(230);V.Search=function Search(W){var V=ue.useRef(!1),G=ue.useRef(!1),ie=se.useNodeTypesRegistry(),oe=__read(ue.useState(W.initialValue),2),pe=oe[0],he=oe[1],ve=ue.useCallback((function(){he(""),ie&&de.searchForNodesInNodeTree({state:W.state,dispatch:W.dispatch},ie,null),G.current=!0}),[he,ie]);return ae.useDebounce((function(){V.current&&!G.current?de.searchForNodesInNodeTree({state:W.state,dispatch:W.dispatch},ie,pe||null):(V.current=!0,G.current=!1)}),300,[pe,ie]),ue.createElement(le.SearchInput,{value:pe,onChange:he,onClear:ve})}},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.SearchInput=void 0;var ie=G(231);Object.defineProperty(V,"SearchInput",{enumerable:!0,get:function get(){return ie.SearchInput}})},function(W,V,G){"use strict";var __makeTemplateObject=function(W,V){return Object.defineProperty?Object.defineProperty(W,"raw",{value:V}):W.raw=V,W},ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V},__importDefault=function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(V,"__esModule",{value:!0}),V.SearchInput=void 0;var ue,ae,se,de,le=__importStar(G(0)),pe=__importDefault(G(17)),he=G(16),ve=G(12),ge=pe.default(he.Icon)(ue||(ue=__makeTemplateObject(["\n position: absolute;\n top: 50%;\n left: 21px;\n transform: translate(-50%, -50%);\n"],["\n position: absolute;\n top: 50%;\n left: 21px;\n transform: translate(-50%, -50%);\n"]))),Se=pe.default(he.IconButton)(ae||(ae=__makeTemplateObject(["\n position: absolute;\n top: 0;\n right: 0;\n color: #000;\n"],["\n position: absolute;\n top: 0;\n right: 0;\n color: #000;\n"]))),we=pe.default(he.TextInput)(se||(se=__makeTemplateObject(["\n padding-left: 42px;\n\n &:focus {\n background: #3f3f3f;\n color: #fff;\n }\n"],["\n padding-left: 42px;\n\n &:focus {\n background: #3f3f3f;\n color: #fff;\n }\n"]))),Ce=pe.default.div(de||(de=__makeTemplateObject(["\n position: relative;\n"],["\n position: relative;\n"])));V.SearchInput=function SearchInput(W){var V=ve.useI18n(),G=le.useRef(W.value);return le.useEffect((function(){G.current===W.value||W.value||W.onClear(),G.current=W.value}),[W.value]),le.createElement(Ce,null,le.createElement(ge,{icon:"search"}),le.createElement(we,{type:"search",value:W.value,placeholder:V("Neos.Neos:Main:search"),onChange:W.onChange}),W.value&&le.createElement(Se,{icon:"times",onClick:W.onClear}))}},function(W,V,G){"use strict";var ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V},__read=function(W,V){var G="function"==typeof Symbol&&W[Symbol.iterator];if(!G)return W;var ie,oe,ue=G.call(W),ae=[];try{for(;(void 0===V||V-- >0)&&!(ie=ue.next()).done;)ae.push(ie.value)}catch(W){oe={error:W}}finally{try{ie&&!ie.done&&(G=ue.return)&&G.call(ue)}finally{if(oe)throw oe.error}}return ae};Object.defineProperty(V,"__esModule",{value:!0}),V.NodeTypeFilter=void 0;var ue=__importStar(G(0)),ae=G(12),se=G(16),de=G(79),le=function searchOptions(W,V){return V.filter((function(V){return V.label&&-1!==V.label.toLowerCase().indexOf(W.toLowerCase())}))};V.NodeTypeFilter=function NodeTypeFilter(W){var V,G=ae.useI18n(),ie=null!==(V=ae.useConfiguration((function(W){var V;return null===(V=W.nodeTree)||void 0===V?void 0:V.presets})))&&void 0!==V?V:{},oe=ae.useNodeTypesRegistry(),pe=__read(ue.useState(""),2),he=pe[0],ve=pe[1],ge=__read(ue.useState(W.initialValue),2),Se=ge[0],we=ge[1],Ce=ue.useMemo((function(){var W=Object.keys(ie).filter((function(W){return"default"!==W})).map((function(W){var V,oe;return{value:ie[W].baseNodeType,label:(null===(V=ie[W].ui)||void 0===V?void 0:V.label)?G(ie[W].ui.label):"["+W+"]",icon:null===(oe=ie[W].ui)||void 0===oe?void 0:oe.icon}}));0===W.length&&oe&&(W=oe.getSubTypesOf(oe.getRole("document")).map((function(W){return oe.get(W)})).filter(Boolean).map((function(W){var V;return{value:W.name,label:G(W.label),icon:null===(V=W.ui)||void 0===V?void 0:V.icon}})));return W}),[ie,oe]);return ue.useEffect((function(){de.filterNodesByNodeTypeInNodeTree({state:W.state,dispatch:W.dispatch},oe,Se?ae.NodeTypeName(Se):null)}),[Se,oe]),ue.createElement(se.SelectBox,{placeholder:G("Neos.Neos:Main:filter"),placeholderIcon:"filter",onValueChange:we,allowEmpty:!0,value:Se,options:le(he,Ce),displaySearchBox:!0,searchTerm:he,onSearchTermChange:ve,threshold:0,noMatchesFoundLabel:G("Neos.Neos:Main:noMatchesFound"),searchBoxLeftToTypeLabel:G("Neos.Neos:Main:searchBoxLeftToType")})}},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.Asset=void 0;var ie=G(234);Object.defineProperty(V,"Asset",{enumerable:!0,get:function get(){return ie.Asset}})},function(W,V,G){"use strict";var ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V};Object.defineProperty(V,"__esModule",{value:!0}),V.Asset=void 0;var ue=__importStar(G(0)),ae=G(12),se=G(43),de=G(30),le=G(38),pe=G(235);V.Asset=de.makeLinkType("Sitegeist.Archaeopteryx:Asset",(function(W){var V=W.createError;return{supportedLinkOptions:["title","targetBlank","relNofollow"],isSuitableFor:function isSuitableFor(W){return W.href.startsWith("asset://")},useResolvedModel:function useResolvedModel(W){var G=/asset:\/\/(.*)/.exec(W.href);return G?se.Process.success({identifier:G[1]}):se.Process.error(V('Cannot handle href "'+W.href+'".'))},convertModelToLink:function convertModelToLink(W){return{href:"asset://"+W.identifier}},TabHeader:function TabHeader(){var W=ae.useI18n();return ue.createElement(le.IconLabel,{icon:"camera"},W("Sitegeist.Archaeopteryx:LinkTypes.Asset:title"))},Preview:function Preview(W){var V,G,ie=W.model,oe=ae.useAssetSummary(ie.identifier);return oe.value?ue.createElement(le.ImageCard,{label:null===(V=oe.value)||void 0===V?void 0:V.label,src:null===(G=oe.value)||void 0===G?void 0:G.preview}):null},Editor:function Editor(W){var V=W.model,G=ae.useI18n();return ue.createElement(se.Field,{name:"identifier",initialValue:null==V?void 0:V.identifier,validate:function validate(W){if(!W)return G("Sitegeist.Archaeopteryx:LinkTypes.Asset:identifier.validation.required")}},(function(W){var V=W.input;return ue.createElement(pe.MediaBrowser,{assetIdentifier:V.value,onSelectAsset:V.onChange})}))}}}))},function(W,V,G){"use strict";var ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V};Object.defineProperty(V,"__esModule",{value:!0}),V.MediaBrowser=void 0;var ue=__importStar(G(0)),ae=G(12);V.MediaBrowser=function MediaBrowser(W){var V=ae.useRoutes((function(W){var V,G;return null===(G=null===(V=W.core)||void 0===V?void 0:V.modules)||void 0===G?void 0:G.mediaBrowser}));if(ue.useEffect((function(){window.NeosMediaBrowserCallbacks={assetChosen:function assetChosen(V){W.onSelectAsset(V)}}}),[W.onSelectAsset]),!V)throw new Error("[Sitegeist.Archaeopteryx]: Could not resolve mediaBrowserUri.");return W.assetIdentifier?ue.createElement("iframe",{name:"neos-media-selection-screen",src:V+"/images/edit.html?asset[__identity]="+W.assetIdentifier,style:{width:"calc(100vw - 160px)",maxWidth:"1260px",height:"calc(100vh - 480px)"},frameBorder:"0",onLoad:function onLoad(W){var V,G,ie=W.target.contentDocument;ie&&(ie.body.style.overflowX="hidden",ie.body.style.padding="0",null===(V=ie.querySelector("form > .neos-footer"))||void 0===V||V.remove(),null===(G=ie.querySelectorAll("input, select, textarea"))||void 0===G||G.forEach((function(W){W.readOnly=!0})))}}):ue.createElement("iframe",{name:"neos-media-selection-screen",src:V+"/assets/index.html",style:{width:"calc(100vw - 160px)",maxWidth:"1260px",height:"calc(100vh - 480px)"},frameBorder:"0",onLoad:function onLoad(W){var V=W.target.contentDocument;V&&(V.body.style.overflowX="hidden",V.body.style.padding="0")}})}},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.MailTo=void 0;var ie=G(237);Object.defineProperty(V,"MailTo",{enumerable:!0,get:function get(){return ie.MailTo}})},function(W,V,G){"use strict";var ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V};Object.defineProperty(V,"__esModule",{value:!0}),V.MailTo=void 0;var ue=__importStar(G(0)),ae=G(12),se=G(43),de=G(30),le=G(38),pe=/^[^\s@]+@[^\s@]+$/;V.MailTo=de.makeLinkType("Sitegeist.Archaeopteryx:MailTo",(function(W){var V=W.createError;return{isSuitableFor:function isSuitableFor(W){return W.href.startsWith("mailto:")},useResolvedModel:function useResolvedModel(W){var G,ie,oe,ue;if(!W.href.startsWith("mailto:"))return se.Process.error(V('Cannot handle href "'+W.href+'".'));var ae=new URL(W.href);return se.Process.success({recipient:ae.pathname,subject:null!==(G=ae.searchParams.get("subject"))&&void 0!==G?G:void 0,cc:null!==(ie=ae.searchParams.get("cc"))&&void 0!==ie?ie:void 0,bcc:null!==(oe=ae.searchParams.get("bcc"))&&void 0!==oe?oe:void 0,body:null!==(ue=ae.searchParams.get("body"))&&void 0!==ue?ue:void 0})},convertModelToLink:function convertModelToLink(W){var V="mailto:"+W.recipient+"?";return W.subject&&(V+="subject="+W.subject),W.cc&&!W.subject?V+="cc="+W.cc:W.cc&&(V+="&cc="+W.cc),!W.bcc||W.subject||W.cc?W.bcc&&(V+="&bcc="+W.bcc):V+="bcc="+W.bcc,!W.body||W.subject||W.cc||W.bcc?W.body&&(V+="&body="+W.body):V+="body="+W.body,{href:V}},TabHeader:function TabHeader(){var W=ae.useI18n();return ue.createElement(le.IconLabel,{icon:"envelope"},W("Sitegeist.Archaeopteryx:LinkTypes.MailTo:title"))},Preview:function Preview(W){var V,G,ie=W.model;return ue.createElement(le.IconCard,{icon:"envelope",title:ie.recipient,subTitle:ie.subject||ie.body?((null!==(V=ie.subject)&&void 0!==V?V:"")+" "+(null!==(G=ie.body)&&void 0!==G?G:"")).trim():void 0})},Editor:function Editor(W){var V,G,ie,oe,de=W.model,he=W.options,ve=ae.useI18n();return ue.createElement(le.Layout.Columns,null,ue.createElement(se.Field,{name:"recipient",initialValue:null==de?void 0:de.recipient,validate:function validate(W){return W?pe.test(W)?void 0:ve("Sitegeist.Archaeopteryx:LinkTypes.MailTo:recipient.validation.email"):ve("Sitegeist.Archaeopteryx:LinkTypes.MailTo:recipient.validation.required")}},(function(W){var V=W.input,G=W.meta;return ue.createElement("div",{style:{gridColumn:"1 / -1"}},ue.createElement(se.EditorEnvelope,{label:ve("Sitegeist.Archaeopteryx:LinkTypes.MailTo:recipient.label"),editor:"Neos.Neos/Inspector/Editors/TextFieldEditor",input:V,meta:G}))})),!1!==(null===(V=he.enabledFields)||void 0===V?void 0:V.subject)?ue.createElement(se.Field,{name:"subject",initialValue:null==de?void 0:de.subject},(function(W){var V=W.input,G=W.meta;return ue.createElement("div",{style:{gridColumn:"1 / -1"}},ue.createElement(se.EditorEnvelope,{label:ve("Sitegeist.Archaeopteryx:LinkTypes.MailTo:subject.label"),editor:"Neos.Neos/Inspector/Editors/TextFieldEditor",input:V,meta:G}))})):null,!1!==(null===(G=he.enabledFields)||void 0===G?void 0:G.cc)?ue.createElement(se.Field,{name:"cc",initialValue:null==de?void 0:de.cc,validate:function validate(W){if(null!=W&&!W.split(",").every((function(W){return pe.test(W.trim())})))return ve("Sitegeist.Archaeopteryx:LinkTypes.MailTo:cc.validation.emaillist")}},(function(W){var V=W.input,G=W.meta;return ue.createElement("div",{style:{gridColumn:"1 / -1"}},ue.createElement(se.EditorEnvelope,{label:ve("Sitegeist.Archaeopteryx:LinkTypes.MailTo:cc.label"),editor:"Neos.Neos/Inspector/Editors/TextFieldEditor",editorOptions:{placeholder:ve("Sitegeist.Archaeopteryx:LinkTypes.MailTo:cc.placeholder")},input:V,meta:G}))})):null,!1!==(null===(ie=he.enabledFields)||void 0===ie?void 0:ie.bcc)?ue.createElement(se.Field,{name:"bcc",initialValue:null==de?void 0:de.bcc,validate:function validate(W){if(null!=W&&!W.split(",").every((function(W){return pe.test(W.trim())})))return ve("Sitegeist.Archaeopteryx:LinkTypes.MailTo:bcc.validation.emaillist")}},(function(W){var V=W.input,G=W.meta;return ue.createElement("div",{style:{gridColumn:"1 / -1"}},ue.createElement(se.EditorEnvelope,{label:ve("Sitegeist.Archaeopteryx:LinkTypes.MailTo:bcc.label"),editor:"Neos.Neos/Inspector/Editors/TextFieldEditor",editorOptions:{placeholder:ve("Sitegeist.Archaeopteryx:LinkTypes.MailTo:bcc.placeholder")},input:V,meta:G}))})):null,!1!==(null===(oe=he.enabledFields)||void 0===oe?void 0:oe.body)?ue.createElement(se.Field,{name:"body",initialValue:null==de?void 0:de.body},(function(W){var V=W.input,G=W.meta;return ue.createElement("div",{style:{gridColumn:"1 / -1"}},ue.createElement(se.EditorEnvelope,{label:ve("Sitegeist.Archaeopteryx:LinkTypes.MailTo:body.label"),editor:"Neos.Neos/Inspector/Editors/TextAreaEditor",input:V,meta:G}))})):null)}}}))},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.PhoneNumber=void 0;var ie=G(239);Object.defineProperty(V,"PhoneNumber",{enumerable:!0,get:function get(){return ie.PhoneNumber}})},function(W,V,G){"use strict";var ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V},__read=function(W,V){var G="function"==typeof Symbol&&W[Symbol.iterator];if(!G)return W;var ie,oe,ue=G.call(W),ae=[];try{for(;(void 0===V||V-- >0)&&!(ie=ue.next()).done;)ae.push(ie.value)}catch(W){oe={error:W}}finally{try{ie&&!ie.done&&(G=ue.return)&&G.call(ue)}finally{if(oe)throw oe.error}}return ae};Object.defineProperty(V,"__esModule",{value:!0}),V.PhoneNumber=void 0;var ue=__importStar(G(0)),ae=G(0),se=G(69),de=G(16),le=G(12),pe=G(251),he=G(30),ve=G(43),ge=G(38);V.PhoneNumber=he.makeLinkType("Sitegeist.Archaeopteryx:PhoneNumber",(function(W){var V=W.createError;return{isSuitableFor:function isSuitableFor(W){return W.href.startsWith("tel:")},useResolvedModel:function useResolvedModel(W){var G=pe.parsePhoneNumber(W.href.replace("tel:",""));return G?ve.Process.success({phoneNumber:G.number.replace("+"+G.countryCallingCode,""),countryCallingCode:"+"+G.countryCallingCode.toString()}):ve.Process.error(V('Cannot handle href "'+W.href+'".'))},convertModelToLink:function convertModelToLink(W){return{href:"tel:"+W.countryCallingCode+W.phoneNumber}},TabHeader:function TabHeader(){var W=le.useI18n();return ue.createElement(ge.IconLabel,{icon:"phone-alt"},W("Sitegeist.Archaeopteryx:LinkTypes.PhoneNumber:title"))},Preview:function Preview(W){var V=W.model;return ue.createElement(ge.IconCard,{icon:"phone-alt",title:(new pe.AsYouType).input(""+V.countryCallingCode+V.phoneNumber)})},Editor:function Editor(W){var V,G=W.model,ie=W.options,oe=(null==G?void 0:G.countryCallingCode)||((null==ie?void 0:ie.defaultCountry)?"+"+pe.getCountryCallingCode(null==ie?void 0:ie.defaultCountry).toString():"+"+pe.getCountryCallingCode(pe.getCountries()[0]).toString()),he=__read(ae.useState(oe),2),ge=he[0],Se=he[1],we=le.useI18n(),Ce={};null===(V=ie.favoredCountries)||void 0===V||V.map((function(W){Ce["+"+pe.getCountryCallingCode(W)]?Ce["+"+pe.getCountryCallingCode(W)]={value:"+"+pe.getCountryCallingCode(W),label:Ce["+"+pe.getCountryCallingCode(W)].label.split(/\s\+/)[0]+", "+W+" +"+pe.getCountryCallingCode(W)}:Ce["+"+pe.getCountryCallingCode(W)]={value:"+"+pe.getCountryCallingCode(W),label:W+" +"+pe.getCountryCallingCode(W)}})),pe.getCountries().map((function(W){var V;(null===(V=ie.favoredCountries)||void 0===V?void 0:V.includes(W))||(Ce["+"+pe.getCountryCallingCode(W)]?Ce["+"+pe.getCountryCallingCode(W)]={value:"+"+pe.getCountryCallingCode(W),label:Ce["+"+pe.getCountryCallingCode(W)].label.split(/\s\+/)[0]+", "+W+" +"+pe.getCountryCallingCode(W)}:Ce["+"+pe.getCountryCallingCode(W)]={value:"+"+pe.getCountryCallingCode(W),label:W+" +"+pe.getCountryCallingCode(W)})}));var Pe=/^[1-9][0-9]*$/;return ue.createElement("div",null,ue.createElement("label",{htmlFor:"linkTypeProps.Sitegeist_Archaeopteryx:PhoneNumber.phoneNumber"},we("Sitegeist.Archaeopteryx:LinkTypes.PhoneNumber:phoneNumber.label")),ue.createElement("div",{style:{display:"grid",gridTemplateColumns:"160px 1fr",minWidth:"600px"}},ue.createElement(ve.Field,{name:"countryCallingCode",format:function format(W){return void 0===W&&""===W||Se(W),""!==W&&void 0!==W||se.useForm().change("linkTypeProps.Sitegeist_Archaeopteryx:PhoneNumber.countryCallingCode",ge),W},initialValue:ge||oe,validate:function validate(W){if(!W)return we("Sitegeist.Archaeopteryx:LinkTypes.PhoneNumber:countryCallingCode.validation.required")}},(function(W){var V=W.input;return ue.createElement("div",{style:{margin:"0.25rem 0 0 0"}},ue.createElement(de.SelectBox,{allowEmpty:!1,options:Object.values(Ce),onValueChange:function onValueChange(W){Se(W),V.onChange(W)},value:V.value}))})),ue.createElement(ve.Field,{name:"phoneNumber",initialValue:null==G?void 0:G.phoneNumber,validate:function validate(W){return W?Pe.test(W)?void 0:we("Sitegeist.Archaeopteryx:LinkTypes.PhoneNumber:phoneNumber.validation.numbersOnly"):we("Sitegeist.Archaeopteryx:LinkTypes.PhoneNumber:phoneNumber.validation.required")}},(function(W){var V=W.input,G=W.meta;return ue.createElement(ve.EditorEnvelope,{label:"",editor:"Neos.Neos/Inspector/Editors/TextFieldEditor",editorOptions:{placeholder:we("Sitegeist.Archaeopteryx:LinkTypes.PhoneNumber:phoneNumber.placeholder")},input:V,meta:G})}))))}}}))},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.CustomLink=void 0;var ie=G(241);Object.defineProperty(V,"CustomLink",{enumerable:!0,get:function get(){return ie.CustomLink}})},function(W,V,G){"use strict";var __assign=function(){return(__assign=Object.assign||function(W){for(var V,G=1,ie=arguments.length;G...'})},Editor:function Editor(W){var V=W.model,G=ae.useI18n();return ue.createElement("div",null,ue.createElement("label",null,G("Sitegeist.Archaeopteryx:LinkTypes.CustomLink:customLink.label")),ue.createElement("div",{style:{display:"grid",gridTemplateColumns:"400px 1fr",minWidth:"600px"}},ue.createElement(le.Field,{name:"customLink",initialValue:null==V?void 0:V.customLink,validate:function validate(W){if(!W)return G("Sitegeist.Archaeopteryx:LinkTypes.CustomLink:validation.required")}},(function(W){var V=W.input;return ue.createElement(se.TextInput,__assign({id:V.name,type:"text",placeHolder:G("Sitegeist.Archaeopteryx:LinkTypes.CustomLink:customLink.placeholder")},V))}))))}}}))},function(W,V,G){"use strict";var ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V};Object.defineProperty(V,"__esModule",{value:!0}),V.registerDialog=void 0;var ue=__importStar(G(0)),ae=G(12),se=G(30),de=G(243);V.registerDialog=function registerDialog(W,V){var G=W.globalRegistry.get("containers");null==G||G.set("Modals/Sitegeist.Archaeopteryx",(function(G){return ue.createElement(ae.NeosContext.Provider,{value:W},ue.createElement(se.EditorContext.Provider,{value:V},ue.createElement(de.Dialog,G)))}))}},function(W,V,G){"use strict";var __assign=function(){return(__assign=Object.assign||function(W){for(var V,G=1,ie=arguments.length;G0)&&!(ie=ue.next()).done;)ae.push(ie.value)}catch(W){oe={error:W}}finally{try{ie&&!ie.done&&(G=ue.return)&&G.call(ue)}finally{if(oe)throw oe.error}}return ae};Object.defineProperty(V,"__esModule",{value:!0}),V.Dialog=void 0;var ue=__importStar(G(0)),ae=G(69),se=G(55),de=G(16),le=G(12),pe=G(78),he=G(43),ve=G(30),ge=G(38),Se=G(244),we=G(245);V.Dialog=function Dialog(){var W=le.useI18n(),V=ve.useLinkTypes(),G=le.useSelector((function(W){var V;return!(null===(V=W.system)||void 0===V?void 0:V.authenticationTimeout)})),ie=ve.useEditorTransactions(),oe=ie.dismiss,he=ie.apply,Se=ie.unset,we=ve.useEditorState(),Ie=we.isOpen,Fe=we.initialValue,Re=__read(ue.useState(!1),2),Le=Re[0],De=Re[1],Ue=ue.useCallback((function(W){var G,ie=V.find((function(V){return V.id===W.linkTypeId}));if(ie){var oe=null===(G=W.linkTypeProps)||void 0===G?void 0:G[ie.id.split(".").join("_")];if(oe){var ue=__assign(__assign({},ie.convertModelToLink(oe)),{options:W.options?Object.keys(W.options).filter((function(W){return ie.supportedLinkOptions.includes(W)})).reduce((function(V,G){return V[G]=W.options[G],V}),{}):{}});he(ue),De(!1)}}else Le&&(Se(),De(!1))}),[V,Le]);return se.useKey("Escape",oe),Ie&&G?ue.createElement(ge.Modal,{renderTitle:function renderTitle(){return ue.createElement("div",null,W("Sitegeist.Archaeopteryx:Main:dialog.title"))},renderBody:function renderBody(){return ue.createElement(ae.Form,{onSubmit:Ue},(function(V){var G=V.handleSubmit,ie=V.valid,ae=V.dirty;V.values;return ue.createElement(pe.ErrorBoundary,null,ue.createElement(ge.Form,{renderBody:function renderBody(){return null===Fe||Le?ue.createElement(Ce,{valid:ie,onDelete:function onDelete(){return De(!0)}}):ue.createElement(Pe,{value:Fe,onDelete:function onDelete(){return De(!0)}})},renderActions:function renderActions(){return ue.createElement(ue.Fragment,null,ue.createElement(de.Button,{onClick:oe},W("Sitegeist.Archaeopteryx:Main:dialog.action.cancel")),ie&&ae||!Le?ue.createElement(de.Button,{style:"success",type:"submit",disabled:!ie||!ae},W("Sitegeist.Archaeopteryx:Main:dialog.action.apply")):ue.createElement(de.Button,{style:"success",type:"button",onClick:Se},W("Sitegeist.Archaeopteryx:Main:dialog.action.apply")))},onSubmit:G}))}))}}):(Le&&De(!1),null)};var Ce=function DialogWithEmptyValue(W){var V,G=ae.useForm(),ie=ve.useEditorState(),oe=ie.enabledLinkOptions,se=ie.editorOptions,de=ve.useSortedAndFilteredLinkTypes();return ue.createElement(he.Field,{name:"linkTypeId",initialValue:null===(V=de[0])||void 0===V?void 0:V.id},(function(V){var ie=V.input;return ue.createElement(ge.Tabs,{lazy:!0,from:de,activeItemKey:ie.value,getKey:function getKey(W){return W.id},renderHeader:function renderHeader(W){var V,G,ie=W.id,oe=W.TabHeader;return ue.createElement(oe,{options:null!==(G=null===(V=se.linkTypes)||void 0===V?void 0:V[ie])&&void 0!==G?G:{}})},renderPanel:function renderPanel(V){var ie,ae,de,le,he=V.Preview,ve=null===(ie=G.getState().values.linkTypeProps)||void 0===ie?void 0:ie[V.id.split(".").join("_")];return ue.createElement(ge.Layout.Stack,null,W.valid&&ve?ue.createElement(ge.Deletable,{onDelete:function onDelete(){W.onDelete(),G.change("linkTypeProps",null)}},ue.createElement(pe.ErrorBoundary,null,ue.createElement(he,{model:null===(ae=G.getState().values.linkTypeProps)||void 0===ae?void 0:ae[V.id.split(".").join("_")],options:null!==(le=null===(de=se.linkTypes)||void 0===de?void 0:de[V.id])&&void 0!==le?le:{},link:{href:""}}))):null,ue.createElement("div",{style:{overflow:"auto"}},ue.createElement(Se.LinkEditor,{key:V.id,link:null,linkType:V}),oe.length&&V.supportedLinkOptions.length?ue.createElement(we.Settings,{enabledLinkOptions:oe.filter((function(W){return V.supportedLinkOptions.includes(W)}))}):null))},onSwitchTab:ie.onChange})}))},Pe=function DialogWithValue(W){var V,G,ie,oe=ae.useForm(),se=ve.useEditorState(),de=se.enabledLinkOptions,le=se.editorOptions,Ce=ve.useLinkTypeForHref(W.value.href),Pe=Ce.useResolvedModel(W.value).result,Ie=Ce.Preview,Fe=oe.getState(),Re=null!==(G=Fe.valid?null===(V=Fe.values.linkTypeProps)||void 0===V?void 0:V[Ce.id.split(".").join("_")]:Pe)&&void 0!==G?G:Pe,Le=ve.useSortedAndFilteredLinkTypes();return ue.createElement(he.Field,{name:"linkTypeId",initialValue:null===(ie=Le[0])||void 0===ie?void 0:ie.id},(function(V){var G=V.input;return ue.createElement(ge.Tabs,{lazy:!0,from:Le,activeItemKey:G.value||Ce.id,getKey:function getKey(W){return W.id},renderHeader:function renderHeader(W){var V,G,ie=W.id,oe=W.TabHeader;return ue.createElement(oe,{options:null!==(G=null===(V=le.linkTypes)||void 0===V?void 0:V[ie])&&void 0!==G?G:{}})},renderPanel:function renderPanel(V){var G,ie,ae,se=null===(G=oe.getState().values.linkTypeProps)||void 0===G?void 0:G[V.id.split(".").join("_")],he=V.Preview,ve=se;return(!se||"Sitegeist.Archaeopteryx:Web"===V.id&&!(null==se?void 0:se.urlWithoutProtocol)||"Sitegeist.Archaeopteryx:PhoneNumber"===V.id&&!(null==se?void 0:se.phoneNumber)||"Sitegeist.Archaeopteryx:CustomLink"===V.id&&!(null==se?void 0:se.CustomLink))&&(he=Ie,ve=Re),ue.createElement(ge.Layout.Stack,null,ve?ue.createElement(ge.Deletable,{onDelete:function onDelete(){W.onDelete(),oe.change("linkTypeProps",null)}},ue.createElement(pe.ErrorBoundary,null,ue.createElement(he,{model:ve,options:null!==(ae=null===(ie=le.linkTypes)||void 0===ie?void 0:ie[V.id])&&void 0!==ae?ae:{},link:W.value}))):null,ue.createElement(Se.LinkEditor,{key:V.id,link:V.isSuitableFor(W.value)?W.value:null,linkType:V}),de.length&&V.supportedLinkOptions.length?ue.createElement(we.Settings,{initialValue:W.value.options,enabledLinkOptions:de.filter((function(W){return V.supportedLinkOptions.includes(W)}))}):null)},onSwitchTab:G.onChange})}))}},function(W,V,G){"use strict";var ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V};Object.defineProperty(V,"__esModule",{value:!0}),V.LinkEditor=void 0;var ue=__importStar(G(0)),ae=G(78),se=G(43),de=G(30);V.LinkEditor=function LinkEditor(W){return ue.createElement(ae.ErrorBoundary,null,null===W.link?ue.createElement(le,{linkType:W.linkType}):ue.createElement(pe,{link:W.link,linkType:W.linkType}))};var le=function LinkEditorWithoutValue(W){var V,G,ie=de.useEditorState().editorOptions,oe=W.linkType.Editor,ae="linkTypeProps."+W.linkType.id.split(".").join("_");return ue.createElement(se.FieldGroup,{prefix:ae},ue.createElement(oe,{model:null,options:null!==(G=null===(V=ie.linkTypes)||void 0===V?void 0:V[W.linkType.id])&&void 0!==G?G:{},link:null}))},pe=function LinkEditorWithValue(W){var V,G,ie,oe,ae,le=de.useEditorState().editorOptions,pe=W.linkType.useResolvedModel(W.link),he=pe.busy,ve=pe.error,ge=function useLastNonNull(W){var V=ue.useRef(W);return null!==W&&(V.current=W),V.current}(pe.result),Se=W.linkType,we=Se.Editor,Ce=Se.LoadingEditor;if(ve)throw ve;return he&&!ge?ue.createElement(Ce,{link:null!==(V=W.link)&&void 0!==V?V:void 0,options:null!==(ie=null===(G=le.linkTypes)||void 0===G?void 0:G[W.linkType.id])&&void 0!==ie?ie:{}}):ue.createElement(se.FieldGroup,{prefix:"linkTypeProps."+W.linkType.id.split(".").join("_")},ue.createElement(we,{model:ge,options:null!==(ae=null===(oe=le.linkTypes)||void 0===oe?void 0:oe[W.linkType.id])&&void 0!==ae?ae:{},link:W.link}))}},function(W,V,G){"use strict";var __assign=function(){return(__assign=Object.assign||function(W){for(var V,G=1,ie=arguments.length;G0&&oe[oe.length-1])||6!==ue[0]&&2!==ue[0])){ae=0;continue}if(3===ue[0]&&(!oe||ue[1]>oe[0]&&ue[1]0&&oe[oe.length-1])||6!==ue[0]&&2!==ue[0])){ae=0;continue}if(3===ue[0]&&(!oe||ue[1]>oe[0]&&ue[1]0)&&!(ie=ue.next()).done;)ae.push(ie.value)}catch(W){oe={error:W}}finally{try{ie&&!ie.done&&(G=ue.return)&&G.call(ue)}finally{if(oe)throw oe.error}}return ae};Object.defineProperty(V,"__esModule",{value:!0}),V.LinkButton=void 0;var ue=__importStar(G(0)),ae=G(16),se=G(67),de=G(12);V.LinkButton=function LinkButton(W){var V,G,ie,oe,le,pe,he,ve,ge=de.useI18n(),Se=se.useEditorTransactions(),we=__assign(__assign({},null===(G=null===(V=W.inlineEditorOptions)||void 0===V?void 0:V.linking)||void 0===G?void 0:G["Sitegeist.Archaeopteryx"]),{linkTypes:__assign({},null===(le=null===(oe=null===(ie=W.inlineEditorOptions)||void 0===ie?void 0:ie.linking)||void 0===oe?void 0:oe["Sitegeist.Archaeopteryx"])||void 0===le?void 0:le.linkTypes)});(null===(he=null===(pe=W.inlineEditorOptions)||void 0===pe?void 0:pe.linking)||void 0===he?void 0:he.startingPoint)&&(we.linkTypes["Sitegeist.Archaeopteryx:Node"]=__assign(__assign({},we.linkTypes["Sitegeist.Archaeopteryx:Node"]),{startingPoint:null!==(ve=we.linkTypes["Sitegeist.Archaeopteryx:Node"].startingPoint)&&void 0!==ve?ve:W.inlineEditorOptions.linking.startingPoint}));var Ce=ue.useCallback((function(){return __awaiter(void 0,void 0,void 0,(function(){var V,G,ie,oe,ue,ae,se,de,le,pe;return __generator(this,(function(he){switch(he.label){case 0:return V=function(){if(W.formattingUnderCursor.link){var V=__read(W.formattingUnderCursor.link.split("#"),2);return{href:V[0],options:{anchor:V[1],title:W.formattingUnderCursor.linkTitle,targetBlank:W.formattingUnderCursor.linkTargetBlank,relNofollow:W.formattingUnderCursor.linkRelNofollow}}}return null}(),G=function(){var V,G,ie,oe,ue,ae,se,de,le=[];return(null===(G=null===(V=W.inlineEditorOptions)||void 0===V?void 0:V.linking)||void 0===G?void 0:G.anchor)&&le.push("anchor"),(null===(oe=null===(ie=W.inlineEditorOptions)||void 0===ie?void 0:ie.linking)||void 0===oe?void 0:oe.title)&&le.push("title"),(null===(ae=null===(ue=W.inlineEditorOptions)||void 0===ue?void 0:ue.linking)||void 0===ae?void 0:ae.relNofollow)&&le.push("relNofollow"),(null===(de=null===(se=W.inlineEditorOptions)||void 0===se?void 0:se.linking)||void 0===de?void 0:de.targetBlank)&&le.push("targetBlank"),le}(),[4,Se.editLink(V,G,we)];case 1:return(ie=he.sent()).change?null===ie.value?(W.executeCommand("linkTitle",!1,!1),W.executeCommand("linkRelNofollow",!1,!1),W.executeCommand("linkTargetBlank",!1,!1),W.executeCommand("unlink",void 0,!0)):(W.executeCommand("linkTitle",(null===(oe=ie.value.options)||void 0===oe?void 0:oe.title)||!1,!1),W.executeCommand("linkTargetBlank",null!==(ae=null===(ue=ie.value.options)||void 0===ue?void 0:ue.targetBlank)&&void 0!==ae&&ae,!1),W.executeCommand("linkRelNofollow",null!==(de=null===(se=ie.value.options)||void 0===se?void 0:se.relNofollow)&&void 0!==de&&de,!1),(null===(le=ie.value.options)||void 0===le?void 0:le.anchor)?W.executeCommand("link",ie.value.href+"#"+(null===(pe=ie.value.options)||void 0===pe?void 0:pe.anchor),!0):W.executeCommand("link",ie.value.href,!0)):(W.executeCommand("undo",void 0,!0),W.executeCommand("redo",void 0,!0)),[2]}}))}))}),[W.executeCommand,W.formattingUnderCursor.link,Se,we]);return ue.createElement(ae.IconButton,{title:ge("Sitegeist.Archaeopteryx:Main:linkButton.title"),isActive:Boolean(W.formattingUnderCursor.link),icon:Boolean(W.formattingUnderCursor.link)?"unlink":"link",onClick:Ce})}},function(W,V,G){"use strict";G.r(V),G.d(V,"audit",(function(){return audit})),G.d(V,"auditTime",(function(){return auditTime})),G.d(V,"buffer",(function(){return buffer_buffer})),G.d(V,"bufferCount",(function(){return bufferCount})),G.d(V,"bufferTime",(function(){return bufferTime})),G.d(V,"bufferToggle",(function(){return bufferToggle})),G.d(V,"bufferWhen",(function(){return bufferWhen})),G.d(V,"catchError",(function(){return catchError})),G.d(V,"combineAll",(function(){return combineAll})),G.d(V,"combineLatest",(function(){return combineLatest_combineLatest})),G.d(V,"concat",(function(){return concat_concat})),G.d(V,"concatAll",(function(){return nt.a})),G.d(V,"concatMap",(function(){return concatMap})),G.d(V,"concatMapTo",(function(){return concatMapTo})),G.d(V,"count",(function(){return count_count})),G.d(V,"debounce",(function(){return debounce})),G.d(V,"debounceTime",(function(){return debounceTime})),G.d(V,"defaultIfEmpty",(function(){return defaultIfEmpty})),G.d(V,"delay",(function(){return delay_delay})),G.d(V,"delayWhen",(function(){return delayWhen})),G.d(V,"dematerialize",(function(){return dematerialize})),G.d(V,"distinct",(function(){return distinct})),G.d(V,"distinctUntilChanged",(function(){return distinctUntilChanged})),G.d(V,"distinctUntilKeyChanged",(function(){return distinctUntilKeyChanged})),G.d(V,"elementAt",(function(){return elementAt})),G.d(V,"endWith",(function(){return endWith})),G.d(V,"every",(function(){return every})),G.d(V,"exhaust",(function(){return exhaust})),G.d(V,"exhaustMap",(function(){return exhaustMap})),G.d(V,"expand",(function(){return expand})),G.d(V,"filter",(function(){return Nt.a})),G.d(V,"finalize",(function(){return finalize})),G.d(V,"find",(function(){return find})),G.d(V,"findIndex",(function(){return findIndex})),G.d(V,"first",(function(){return first})),G.d(V,"groupBy",(function(){return Zt.b})),G.d(V,"ignoreElements",(function(){return ignoreElements})),G.d(V,"isEmpty",(function(){return isEmpty})),G.d(V,"last",(function(){return last})),G.d(V,"map",(function(){return Wt.a})),G.d(V,"mapTo",(function(){return mapTo})),G.d(V,"materialize",(function(){return materialize})),G.d(V,"max",(function(){return max_max})),G.d(V,"merge",(function(){return merge_merge})),G.d(V,"mergeAll",(function(){return fr.a})),G.d(V,"mergeMap",(function(){return it.b})),G.d(V,"flatMap",(function(){return it.a})),G.d(V,"mergeMapTo",(function(){return mergeMapTo})),G.d(V,"mergeScan",(function(){return mergeScan})),G.d(V,"min",(function(){return min_min})),G.d(V,"multicast",(function(){return multicast})),G.d(V,"observeOn",(function(){return vr.b})),G.d(V,"onErrorResumeNext",(function(){return onErrorResumeNext})),G.d(V,"pairwise",(function(){return pairwise})),G.d(V,"partition",(function(){return partition})),G.d(V,"pluck",(function(){return pluck})),G.d(V,"publish",(function(){return publish})),G.d(V,"publishBehavior",(function(){return publishBehavior})),G.d(V,"publishLast",(function(){return publishLast})),G.d(V,"publishReplay",(function(){return publishReplay})),G.d(V,"race",(function(){return race_race})),G.d(V,"reduce",(function(){return reduce})),G.d(V,"repeat",(function(){return repeat})),G.d(V,"repeatWhen",(function(){return repeatWhen})),G.d(V,"retry",(function(){return retry})),G.d(V,"retryWhen",(function(){return retryWhen})),G.d(V,"refCount",(function(){return Fr.a})),G.d(V,"sample",(function(){return sample})),G.d(V,"sampleTime",(function(){return sampleTime})),G.d(V,"scan",(function(){return scan})),G.d(V,"sequenceEqual",(function(){return sequenceEqual})),G.d(V,"share",(function(){return share})),G.d(V,"shareReplay",(function(){return shareReplay})),G.d(V,"single",(function(){return single})),G.d(V,"skip",(function(){return skip})),G.d(V,"skipLast",(function(){return skipLast})),G.d(V,"skipUntil",(function(){return skipUntil})),G.d(V,"skipWhile",(function(){return skipWhile})),G.d(V,"startWith",(function(){return startWith})),G.d(V,"subscribeOn",(function(){return subscribeOn})),G.d(V,"switchAll",(function(){return switchAll})),G.d(V,"switchMap",(function(){return switchMap})),G.d(V,"switchMapTo",(function(){return switchMapTo})),G.d(V,"take",(function(){return take})),G.d(V,"takeLast",(function(){return takeLast})),G.d(V,"takeUntil",(function(){return takeUntil})),G.d(V,"takeWhile",(function(){return takeWhile})),G.d(V,"tap",(function(){return tap})),G.d(V,"throttle",(function(){return throttle})),G.d(V,"throttleTime",(function(){return throttleTime})),G.d(V,"throwIfEmpty",(function(){return throwIfEmpty})),G.d(V,"timeInterval",(function(){return timeInterval})),G.d(V,"timeout",(function(){return timeout})),G.d(V,"timeoutWith",(function(){return timeoutWith})),G.d(V,"timestamp",(function(){return timestamp})),G.d(V,"toArray",(function(){return toArray})),G.d(V,"window",(function(){return window_window})),G.d(V,"windowCount",(function(){return windowCount})),G.d(V,"windowTime",(function(){return windowTime_windowTime})),G.d(V,"windowToggle",(function(){return windowToggle})),G.d(V,"windowWhen",(function(){return windowWhen})),G.d(V,"withLatestFrom",(function(){return withLatestFrom})),G.d(V,"zip",(function(){return zip_zip})),G.d(V,"zipAll",(function(){return zipAll}));var ie=G(1),oe=G(3);function audit(W){return function auditOperatorFunction(V){return V.lift(new ue(W))}}var ue=function(){function AuditOperator(W){this.durationSelector=W}return AuditOperator.prototype.call=function(W,V){return V.subscribe(new ae(W,this.durationSelector))},AuditOperator}(),ae=function(W){function AuditSubscriber(V,G){var ie=W.call(this,V)||this;return ie.durationSelector=G,ie.hasValue=!1,ie}return ie.__extends(AuditSubscriber,W),AuditSubscriber.prototype._next=function(W){if(this.value=W,this.hasValue=!0,!this.throttled){var V=void 0;try{V=(0,this.durationSelector)(W)}catch(W){return this.destination.error(W)}var G=Object(oe.c)(V,new oe.a(this));!G||G.closed?this.clearThrottle():this.add(this.throttled=G)}},AuditSubscriber.prototype.clearThrottle=function(){var W=this.value,V=this.hasValue,G=this.throttled;G&&(this.remove(G),this.throttled=void 0,G.unsubscribe()),V&&(this.value=void 0,this.hasValue=!1,this.destination.next(W))},AuditSubscriber.prototype.notifyNext=function(){this.clearThrottle()},AuditSubscriber.prototype.notifyComplete=function(){this.clearThrottle()},AuditSubscriber}(oe.b),se=G(8),de=G(87);function auditTime(W,V){return void 0===V&&(V=se.a),audit((function(){return Object(de.a)(W,V)}))}function buffer_buffer(W){return function bufferOperatorFunction(V){return V.lift(new le(W))}}var le=function(){function BufferOperator(W){this.closingNotifier=W}return BufferOperator.prototype.call=function(W,V){return V.subscribe(new pe(W,this.closingNotifier))},BufferOperator}(),pe=function(W){function BufferSubscriber(V,G){var ie=W.call(this,V)||this;return ie.buffer=[],ie.add(Object(oe.c)(G,new oe.a(ie))),ie}return ie.__extends(BufferSubscriber,W),BufferSubscriber.prototype._next=function(W){this.buffer.push(W)},BufferSubscriber.prototype.notifyNext=function(){var W=this.buffer;this.buffer=[],this.destination.next(W)},BufferSubscriber}(oe.b),he=G(2);function bufferCount(W,V){return void 0===V&&(V=null),function bufferCountOperatorFunction(G){return G.lift(new ve(W,V))}}var ve=function(){function BufferCountOperator(W,V){this.bufferSize=W,this.startBufferEvery=V,this.subscriberClass=V&&W!==V?Se:ge}return BufferCountOperator.prototype.call=function(W,V){return V.subscribe(new this.subscriberClass(W,this.bufferSize,this.startBufferEvery))},BufferCountOperator}(),ge=function(W){function BufferCountSubscriber(V,G){var ie=W.call(this,V)||this;return ie.bufferSize=G,ie.buffer=[],ie}return ie.__extends(BufferCountSubscriber,W),BufferCountSubscriber.prototype._next=function(W){var V=this.buffer;V.push(W),V.length==this.bufferSize&&(this.destination.next(V),this.buffer=[])},BufferCountSubscriber.prototype._complete=function(){var V=this.buffer;V.length>0&&this.destination.next(V),W.prototype._complete.call(this)},BufferCountSubscriber}(he.a),Se=function(W){function BufferSkipCountSubscriber(V,G,ie){var oe=W.call(this,V)||this;return oe.bufferSize=G,oe.startBufferEvery=ie,oe.buffers=[],oe.count=0,oe}return ie.__extends(BufferSkipCountSubscriber,W),BufferSkipCountSubscriber.prototype._next=function(W){var V=this.bufferSize,G=this.startBufferEvery,ie=this.buffers,oe=this.count;this.count++,oe%G==0&&ie.push([]);for(var ue=ie.length;ue--;){var ae=ie[ue];ae.push(W),ae.length===V&&(ie.splice(ue,1),this.destination.next(ae))}},BufferSkipCountSubscriber.prototype._complete=function(){for(var V=this.buffers,G=this.destination;V.length>0;){var ie=V.shift();ie.length>0&&G.next(ie)}W.prototype._complete.call(this)},BufferSkipCountSubscriber}(he.a),we=G(11);function bufferTime(W){var V=arguments.length,G=se.a;Object(we.a)(arguments[arguments.length-1])&&(G=arguments[arguments.length-1],V--);var ie=null;V>=2&&(ie=arguments[1]);var oe=Number.POSITIVE_INFINITY;return V>=3&&(oe=arguments[2]),function bufferTimeOperatorFunction(V){return V.lift(new Ce(W,ie,oe,G))}}var Ce=function(){function BufferTimeOperator(W,V,G,ie){this.bufferTimeSpan=W,this.bufferCreationInterval=V,this.maxBufferSize=G,this.scheduler=ie}return BufferTimeOperator.prototype.call=function(W,V){return V.subscribe(new Ie(W,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},BufferTimeOperator}(),Pe=function(){return function Context(){this.buffer=[]}}(),Ie=function(W){function BufferTimeSubscriber(V,G,ie,oe,ue){var ae=W.call(this,V)||this;ae.bufferTimeSpan=G,ae.bufferCreationInterval=ie,ae.maxBufferSize=oe,ae.scheduler=ue,ae.contexts=[];var se=ae.openContext();if(ae.timespanOnly=null==ie||ie<0,ae.timespanOnly){var de={subscriber:ae,context:se,bufferTimeSpan:G};ae.add(se.closeAction=ue.schedule(dispatchBufferTimeSpanOnly,G,de))}else{var le={subscriber:ae,context:se},pe={bufferTimeSpan:G,bufferCreationInterval:ie,subscriber:ae,scheduler:ue};ae.add(se.closeAction=ue.schedule(dispatchBufferClose,G,le)),ae.add(ue.schedule(dispatchBufferCreation,ie,pe))}return ae}return ie.__extends(BufferTimeSubscriber,W),BufferTimeSubscriber.prototype._next=function(W){for(var V,G=this.contexts,ie=G.length,oe=0;oe0;){var ie=V.shift();G.next(ie.buffer)}W.prototype._complete.call(this)},BufferTimeSubscriber.prototype._unsubscribe=function(){this.contexts=null},BufferTimeSubscriber.prototype.onBufferFull=function(W){this.closeContext(W);var V=W.closeAction;if(V.unsubscribe(),this.remove(V),!this.closed&&this.timespanOnly){W=this.openContext();var G=this.bufferTimeSpan,ie={subscriber:this,context:W,bufferTimeSpan:G};this.add(W.closeAction=this.scheduler.schedule(dispatchBufferTimeSpanOnly,G,ie))}},BufferTimeSubscriber.prototype.openContext=function(){var W=new Pe;return this.contexts.push(W),W},BufferTimeSubscriber.prototype.closeContext=function(W){this.destination.next(W.buffer);var V=this.contexts;(V?V.indexOf(W):-1)>=0&&V.splice(V.indexOf(W),1)},BufferTimeSubscriber}(he.a);function dispatchBufferTimeSpanOnly(W){var V=W.subscriber,G=W.context;G&&V.closeContext(G),V.closed||(W.context=V.openContext(),W.context.closeAction=this.schedule(W,W.bufferTimeSpan))}function dispatchBufferCreation(W){var V=W.bufferCreationInterval,G=W.bufferTimeSpan,ie=W.subscriber,oe=W.scheduler,ue=ie.openContext();ie.closed||(ie.add(ue.closeAction=oe.schedule(dispatchBufferClose,G,{subscriber:ie,context:ue})),this.schedule(W,V))}function dispatchBufferClose(W){var V=W.subscriber,G=W.context;V.closeContext(G)}var Fe=G(6),Re=G(18),Le=G(21);function bufferToggle(W,V){return function bufferToggleOperatorFunction(G){return G.lift(new De(W,V))}}var De=function(){function BufferToggleOperator(W,V){this.openings=W,this.closingSelector=V}return BufferToggleOperator.prototype.call=function(W,V){return V.subscribe(new Ue(W,this.openings,this.closingSelector))},BufferToggleOperator}(),Ue=function(W){function BufferToggleSubscriber(V,G,ie){var oe=W.call(this,V)||this;return oe.closingSelector=ie,oe.contexts=[],oe.add(Object(Re.a)(oe,G)),oe}return ie.__extends(BufferToggleSubscriber,W),BufferToggleSubscriber.prototype._next=function(W){for(var V=this.contexts,G=V.length,ie=0;ie0;){var ie=G.shift();ie.subscription.unsubscribe(),ie.buffer=null,ie.subscription=null}this.contexts=null,W.prototype._error.call(this,V)},BufferToggleSubscriber.prototype._complete=function(){for(var V=this.contexts;V.length>0;){var G=V.shift();this.destination.next(G.buffer),G.subscription.unsubscribe(),G.buffer=null,G.subscription=null}this.contexts=null,W.prototype._complete.call(this)},BufferToggleSubscriber.prototype.notifyNext=function(W,V){W?this.closeBuffer(W):this.openBuffer(V)},BufferToggleSubscriber.prototype.notifyComplete=function(W){this.closeBuffer(W.context)},BufferToggleSubscriber.prototype.openBuffer=function(W){try{var V=this.closingSelector.call(this,W);V&&this.trySubscribe(V)}catch(W){this._error(W)}},BufferToggleSubscriber.prototype.closeBuffer=function(W){var V=this.contexts;if(V&&W){var G=W.buffer,ie=W.subscription;this.destination.next(G),V.splice(V.indexOf(W),1),this.remove(ie),ie.unsubscribe()}},BufferToggleSubscriber.prototype.trySubscribe=function(W){var V=this.contexts,G=new Fe.a,ie={buffer:[],subscription:G};V.push(ie);var oe=Object(Re.a)(this,W,ie);!oe||oe.closed?this.closeBuffer(ie):(oe.context=ie,this.add(oe),G.add(oe))},BufferToggleSubscriber}(Le.a);function bufferWhen(W){return function(V){return V.lift(new ze(W))}}var ze=function(){function BufferWhenOperator(W){this.closingSelector=W}return BufferWhenOperator.prototype.call=function(W,V){return V.subscribe(new He(W,this.closingSelector))},BufferWhenOperator}(),He=function(W){function BufferWhenSubscriber(V,G){var ie=W.call(this,V)||this;return ie.closingSelector=G,ie.subscribing=!1,ie.openBuffer(),ie}return ie.__extends(BufferWhenSubscriber,W),BufferWhenSubscriber.prototype._next=function(W){this.buffer.push(W)},BufferWhenSubscriber.prototype._complete=function(){var V=this.buffer;V&&this.destination.next(V),W.prototype._complete.call(this)},BufferWhenSubscriber.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},BufferWhenSubscriber.prototype.notifyNext=function(){this.openBuffer()},BufferWhenSubscriber.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},BufferWhenSubscriber.prototype.openBuffer=function(){var W=this.closingSubscription;W&&(this.remove(W),W.unsubscribe());var V,G=this.buffer;this.buffer&&this.destination.next(G),this.buffer=[];try{V=(0,this.closingSelector)()}catch(W){return this.error(W)}W=new Fe.a,this.closingSubscription=W,this.add(W),this.subscribing=!0,W.add(Object(oe.c)(V,new oe.a(this))),this.subscribing=!1},BufferWhenSubscriber}(oe.b);function catchError(W){return function catchErrorOperatorFunction(V){var G=new Ke(W),ie=V.lift(G);return G.caught=ie}}var Ke=function(){function CatchOperator(W){this.selector=W}return CatchOperator.prototype.call=function(W,V){return V.subscribe(new Ze(W,this.selector,this.caught))},CatchOperator}(),Ze=function(W){function CatchSubscriber(V,G,ie){var oe=W.call(this,V)||this;return oe.selector=G,oe.caught=ie,oe}return ie.__extends(CatchSubscriber,W),CatchSubscriber.prototype.error=function(V){if(!this.isStopped){var G=void 0;try{G=this.selector(V,this.caught)}catch(V){return void W.prototype.error.call(this,V)}this._unsubscribeAndRecycle();var ie=new oe.a(this);this.add(ie);var ue=Object(oe.c)(G,ie);ue!==ie&&this.add(ue)}},CatchSubscriber}(oe.b),Qe=G(59);function combineAll(W){return function(V){return V.lift(new Qe.a(W))}}var et=G(9),tt=G(14);function combineLatest_combineLatest(){for(var W=[],V=0;V0&&G[0].time-ie.now()<=0;)G.shift().notification.observe(oe);if(G.length>0){var ue=Math.max(0,G[0].time-ie.now());this.schedule(W,ue)}else this.unsubscribe(),V.active=!1},DelaySubscriber.prototype._schedule=function(W){this.active=!0,this.destination.add(W.schedule(DelaySubscriber.dispatch,this.delay,{source:this,destination:this.destination,scheduler:W}))},DelaySubscriber.prototype.scheduleNotification=function(W){if(!0!==this.errored){var V=this.scheduler,G=new yt(V.now()+this.delay,W);this.queue.push(G),!1===this.active&&this._schedule(V)}},DelaySubscriber.prototype._next=function(W){this.scheduleNotification(pt.a.createNext(W))},DelaySubscriber.prototype._error=function(W){this.errored=!0,this.queue=[],this.destination.error(W),this.unsubscribe()},DelaySubscriber.prototype._complete=function(){this.scheduleNotification(pt.a.createComplete()),this.unsubscribe()},DelaySubscriber}(he.a),yt=function(){return function DelayMessage(W,V){this.time=W,this.notification=V}}(),vt=G(4);function delayWhen(W,V){return V?function(G){return new St(G,V).lift(new mt(W))}:function(V){return V.lift(new mt(W))}}var mt=function(){function DelayWhenOperator(W){this.delayDurationSelector=W}return DelayWhenOperator.prototype.call=function(W,V){return V.subscribe(new gt(W,this.delayDurationSelector))},DelayWhenOperator}(),gt=function(W){function DelayWhenSubscriber(V,G){var ie=W.call(this,V)||this;return ie.delayDurationSelector=G,ie.completed=!1,ie.delayNotifierSubscriptions=[],ie.index=0,ie}return ie.__extends(DelayWhenSubscriber,W),DelayWhenSubscriber.prototype.notifyNext=function(W,V,G,ie,oe){this.destination.next(W),this.removeSubscription(oe),this.tryComplete()},DelayWhenSubscriber.prototype.notifyError=function(W,V){this._error(W)},DelayWhenSubscriber.prototype.notifyComplete=function(W){var V=this.removeSubscription(W);V&&this.destination.next(V),this.tryComplete()},DelayWhenSubscriber.prototype._next=function(W){var V=this.index++;try{var G=this.delayDurationSelector(W,V);G&&this.tryDelay(G,W)}catch(W){this.destination.error(W)}},DelayWhenSubscriber.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},DelayWhenSubscriber.prototype.removeSubscription=function(W){W.unsubscribe();var V=this.delayNotifierSubscriptions.indexOf(W);return-1!==V&&this.delayNotifierSubscriptions.splice(V,1),W.outerValue},DelayWhenSubscriber.prototype.tryDelay=function(W,V){var G=Object(Re.a)(this,W,V);G&&!G.closed&&(this.destination.add(G),this.delayNotifierSubscriptions.push(G))},DelayWhenSubscriber.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},DelayWhenSubscriber}(Le.a),St=function(W){function SubscriptionDelayObservable(V,G){var ie=W.call(this)||this;return ie.source=V,ie.subscriptionDelay=G,ie}return ie.__extends(SubscriptionDelayObservable,W),SubscriptionDelayObservable.prototype._subscribe=function(W){this.subscriptionDelay.subscribe(new wt(W,this.source))},SubscriptionDelayObservable}(vt.a),wt=function(W){function SubscriptionDelaySubscriber(V,G){var ie=W.call(this)||this;return ie.parent=V,ie.source=G,ie.sourceSubscribed=!1,ie}return ie.__extends(SubscriptionDelaySubscriber,W),SubscriptionDelaySubscriber.prototype._next=function(W){this.subscribeToSource()},SubscriptionDelaySubscriber.prototype._error=function(W){this.unsubscribe(),this.parent.error(W)},SubscriptionDelaySubscriber.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},SubscriptionDelaySubscriber.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},SubscriptionDelaySubscriber}(he.a);function dematerialize(){return function dematerializeOperatorFunction(W){return W.lift(new _t)}}var _t=function(){function DeMaterializeOperator(){}return DeMaterializeOperator.prototype.call=function(W,V){return V.subscribe(new $t(W))},DeMaterializeOperator}(),$t=function(W){function DeMaterializeSubscriber(V){return W.call(this,V)||this}return ie.__extends(DeMaterializeSubscriber,W),DeMaterializeSubscriber.prototype._next=function(W){W.observe(this.destination)},DeMaterializeSubscriber}(he.a);function distinct(W,V){return function(G){return G.lift(new Ot(W,V))}}var Ot=function(){function DistinctOperator(W,V){this.keySelector=W,this.flushes=V}return DistinctOperator.prototype.call=function(W,V){return V.subscribe(new xt(W,this.keySelector,this.flushes))},DistinctOperator}(),xt=function(W){function DistinctSubscriber(V,G,ie){var ue=W.call(this,V)||this;return ue.keySelector=G,ue.values=new Set,ie&&ue.add(Object(oe.c)(ie,new oe.a(ue))),ue}return ie.__extends(DistinctSubscriber,W),DistinctSubscriber.prototype.notifyNext=function(){this.values.clear()},DistinctSubscriber.prototype.notifyError=function(W){this._error(W)},DistinctSubscriber.prototype._next=function(W){this.keySelector?this._useKeySelector(W):this._finalizeNext(W,W)},DistinctSubscriber.prototype._useKeySelector=function(W){var V,G=this.destination;try{V=this.keySelector(W)}catch(W){return void G.error(W)}this._finalizeNext(V,W)},DistinctSubscriber.prototype._finalizeNext=function(W,V){var G=this.values;G.has(W)||(G.add(W),this.destination.next(V))},DistinctSubscriber}(oe.b);function distinctUntilChanged(W,V){return function(G){return G.lift(new Et(W,V))}}var Et=function(){function DistinctUntilChangedOperator(W,V){this.compare=W,this.keySelector=V}return DistinctUntilChangedOperator.prototype.call=function(W,V){return V.subscribe(new Ct(W,this.compare,this.keySelector))},DistinctUntilChangedOperator}(),Ct=function(W){function DistinctUntilChangedSubscriber(V,G,ie){var oe=W.call(this,V)||this;return oe.keySelector=ie,oe.hasKey=!1,"function"==typeof G&&(oe.compare=G),oe}return ie.__extends(DistinctUntilChangedSubscriber,W),DistinctUntilChangedSubscriber.prototype.compare=function(W,V){return W===V},DistinctUntilChangedSubscriber.prototype._next=function(W){var V;try{var G=this.keySelector;V=G?G(W):W}catch(W){return this.destination.error(W)}var ie=!1;if(this.hasKey)try{ie=(0,this.compare)(this.key,V)}catch(W){return this.destination.error(W)}else this.hasKey=!0;ie||(this.key=V,this.destination.next(W))},DistinctUntilChangedSubscriber}(he.a);function distinctUntilKeyChanged(W,V){return distinctUntilChanged((function(G,ie){return V?V(G[W],ie[W]):G[W]===ie[W]}))}var Pt=G(28),Nt=G(22),Tt=G(31);function throwIfEmpty(W){return void 0===W&&(W=defaultErrorFactory),function(V){return V.lift(new jt(W))}}var jt=function(){function ThrowIfEmptyOperator(W){this.errorFactory=W}return ThrowIfEmptyOperator.prototype.call=function(W,V){return V.subscribe(new kt(W,this.errorFactory))},ThrowIfEmptyOperator}(),kt=function(W){function ThrowIfEmptySubscriber(V,G){var ie=W.call(this,V)||this;return ie.errorFactory=G,ie.hasValue=!1,ie}return ie.__extends(ThrowIfEmptySubscriber,W),ThrowIfEmptySubscriber.prototype._next=function(W){this.hasValue=!0,this.destination.next(W)},ThrowIfEmptySubscriber.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var W=void 0;try{W=this.errorFactory()}catch(V){W=V}this.destination.error(W)},ThrowIfEmptySubscriber}(he.a);function defaultErrorFactory(){return new Tt.a}var At=G(13);function take(W){return function(V){return 0===W?Object(At.b)():V.lift(new It(W))}}var It=function(){function TakeOperator(W){if(this.total=W,this.total<0)throw new Pt.a}return TakeOperator.prototype.call=function(W,V){return V.subscribe(new Mt(W,this.total))},TakeOperator}(),Mt=function(W){function TakeSubscriber(V,G){var ie=W.call(this,V)||this;return ie.total=G,ie.count=0,ie}return ie.__extends(TakeSubscriber,W),TakeSubscriber.prototype._next=function(W){var V=this.total,G=++this.count;G<=V&&(this.destination.next(W),G===V&&(this.destination.complete(),this.unsubscribe()))},TakeSubscriber}(he.a);function elementAt(W,V){if(W<0)throw new Pt.a;var G=arguments.length>=2;return function(ie){return ie.pipe(Object(Nt.a)((function(V,G){return G===W})),take(1),G?defaultIfEmpty(V):throwIfEmpty((function(){return new Pt.a})))}}var Ft=G(45);function endWith(){for(var W=[],V=0;V0&&this._next(W.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},ExpandSubscriber}(oe.b);function finalize(W){return function(V){return V.lift(new Yt(W))}}var Yt=function(){function FinallyOperator(W){this.callback=W}return FinallyOperator.prototype.call=function(W,V){return V.subscribe(new Gt(W,this.callback))},FinallyOperator}(),Gt=function(W){function FinallySubscriber(V,G){var ie=W.call(this,V)||this;return ie.add(new Fe.a(G)),ie}return ie.__extends(FinallySubscriber,W),FinallySubscriber}(he.a);function find(W,V){if("function"!=typeof W)throw new TypeError("predicate is not a function");return function(G){return G.lift(new Ht(W,G,!1,V))}}var Ht=function(){function FindValueOperator(W,V,G,ie){this.predicate=W,this.source=V,this.yieldIndex=G,this.thisArg=ie}return FindValueOperator.prototype.call=function(W,V){return V.subscribe(new Kt(W,this.predicate,this.source,this.yieldIndex,this.thisArg))},FindValueOperator}(),Kt=function(W){function FindValueSubscriber(V,G,ie,oe,ue){var ae=W.call(this,V)||this;return ae.predicate=G,ae.source=ie,ae.yieldIndex=oe,ae.thisArg=ue,ae.index=0,ae}return ie.__extends(FindValueSubscriber,W),FindValueSubscriber.prototype.notifyComplete=function(W){var V=this.destination;V.next(W),V.complete(),this.unsubscribe()},FindValueSubscriber.prototype._next=function(W){var V=this.predicate,G=this.thisArg,ie=this.index++;try{V.call(G||this,W,ie,this.source)&&this.notifyComplete(this.yieldIndex?ie:W)}catch(W){this.destination.error(W)}},FindValueSubscriber.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},FindValueSubscriber}(he.a);function findIndex(W,V){return function(G){return G.lift(new Ht(W,G,!0,V))}}var Xt=G(20);function first(W,V){var G=arguments.length>=2;return function(ie){return ie.pipe(W?Object(Nt.a)((function(V,G){return W(V,G,ie)})):Xt.a,take(1),G?defaultIfEmpty(V):throwIfEmpty((function(){return new Tt.a})))}}var Zt=G(77);function ignoreElements(){return function ignoreElementsOperatorFunction(W){return W.lift(new Jt)}}var Jt=function(){function IgnoreElementsOperator(){}return IgnoreElementsOperator.prototype.call=function(W,V){return V.subscribe(new Qt(W))},IgnoreElementsOperator}(),Qt=function(W){function IgnoreElementsSubscriber(){return null!==W&&W.apply(this,arguments)||this}return ie.__extends(IgnoreElementsSubscriber,W),IgnoreElementsSubscriber.prototype._next=function(W){},IgnoreElementsSubscriber}(he.a);function isEmpty(){return function(W){return W.lift(new er)}}var er=function(){function IsEmptyOperator(){}return IsEmptyOperator.prototype.call=function(W,V){return V.subscribe(new tr(W))},IsEmptyOperator}(),tr=function(W){function IsEmptySubscriber(V){return W.call(this,V)||this}return ie.__extends(IsEmptySubscriber,W),IsEmptySubscriber.prototype.notifyComplete=function(W){var V=this.destination;V.next(W),V.complete()},IsEmptySubscriber.prototype._next=function(W){this.notifyComplete(!1)},IsEmptySubscriber.prototype._complete=function(){this.notifyComplete(!0)},IsEmptySubscriber}(he.a);function takeLast(W){return function takeLastOperatorFunction(V){return 0===W?Object(At.b)():V.lift(new rr(W))}}var rr=function(){function TakeLastOperator(W){if(this.total=W,this.total<0)throw new Pt.a}return TakeLastOperator.prototype.call=function(W,V){return V.subscribe(new nr(W,this.total))},TakeLastOperator}(),nr=function(W){function TakeLastSubscriber(V,G){var ie=W.call(this,V)||this;return ie.total=G,ie.ring=new Array,ie.count=0,ie}return ie.__extends(TakeLastSubscriber,W),TakeLastSubscriber.prototype._next=function(W){var V=this.ring,G=this.total,ie=this.count++;V.length0)for(var G=this.count>=this.total?this.total:this.count,ie=this.ring,oe=0;oe=2;return function(ie){return ie.pipe(W?Object(Nt.a)((function(V,G){return W(V,G,ie)})):Xt.a,takeLast(1),G?defaultIfEmpty(V):throwIfEmpty((function(){return new Tt.a})))}}function mapTo(W){return function(V){return V.lift(new ir(W))}}var ir=function(){function MapToOperator(W){this.value=W}return MapToOperator.prototype.call=function(W,V){return V.subscribe(new or(W,this.value))},MapToOperator}(),or=function(W){function MapToSubscriber(V,G){var ie=W.call(this,V)||this;return ie.value=G,ie}return ie.__extends(MapToSubscriber,W),MapToSubscriber.prototype._next=function(W){this.destination.next(this.value)},MapToSubscriber}(he.a);function materialize(){return function materializeOperatorFunction(W){return W.lift(new ur)}}var ur=function(){function MaterializeOperator(){}return MaterializeOperator.prototype.call=function(W,V){return V.subscribe(new ar(W))},MaterializeOperator}(),ar=function(W){function MaterializeSubscriber(V){return W.call(this,V)||this}return ie.__extends(MaterializeSubscriber,W),MaterializeSubscriber.prototype._next=function(W){this.destination.next(pt.a.createNext(W))},MaterializeSubscriber.prototype._error=function(W){var V=this.destination;V.next(pt.a.createError(W)),V.complete()},MaterializeSubscriber.prototype._complete=function(){var W=this.destination;W.next(pt.a.createComplete()),W.complete()},MaterializeSubscriber}(he.a);function scan(W,V){var G=!1;return arguments.length>=2&&(G=!0),function scanOperatorFunction(ie){return ie.lift(new sr(W,V,G))}}var sr=function(){function ScanOperator(W,V,G){void 0===G&&(G=!1),this.accumulator=W,this.seed=V,this.hasSeed=G}return ScanOperator.prototype.call=function(W,V){return V.subscribe(new cr(W,this.accumulator,this.seed,this.hasSeed))},ScanOperator}(),cr=function(W){function ScanSubscriber(V,G,ie,oe){var ue=W.call(this,V)||this;return ue.accumulator=G,ue._seed=ie,ue.hasSeed=oe,ue.index=0,ue}return ie.__extends(ScanSubscriber,W),Object.defineProperty(ScanSubscriber.prototype,"seed",{get:function(){return this._seed},set:function(W){this.hasSeed=!0,this._seed=W},enumerable:!0,configurable:!0}),ScanSubscriber.prototype._next=function(W){if(this.hasSeed)return this._tryNext(W);this.seed=W,this.destination.next(W)},ScanSubscriber.prototype._tryNext=function(W){var V,G=this.index++;try{V=this.accumulator(this.seed,W,G)}catch(W){this.destination.error(W)}this.seed=V,this.destination.next(V)},ScanSubscriber}(he.a),dr=G(49);function reduce(W,V){return arguments.length>=2?function reduceOperatorFunctionWithSeed(G){return Object(dr.a)(scan(W,V),takeLast(1),defaultIfEmpty(V))(G)}:function reduceOperatorFunction(V){return Object(dr.a)(scan((function(V,G,ie){return W(V,G,ie+1)})),takeLast(1))(V)}}function max_max(W){return reduce("function"==typeof W?function(V,G){return W(V,G)>0?V:G}:function(W,V){return W>V?W:V})}var lr=G(85);function merge_merge(){for(var W=[],V=0;V0?this._next(W.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},MergeScanSubscriber}(oe.b);function min_min(W){return reduce("function"==typeof W?function(V,G){return W(V,G)<0?V:G}:function(W,V){return W-1&&(this.count=G-1),V.subscribe(this._unsubscribeAndRecycle())}},RepeatSubscriber}(he.a);function repeatWhen(W){return function(V){return V.lift(new Tr(W))}}var Tr=function(){function RepeatWhenOperator(W){this.notifier=W}return RepeatWhenOperator.prototype.call=function(W,V){return V.subscribe(new jr(W,this.notifier,V))},RepeatWhenOperator}(),jr=function(W){function RepeatWhenSubscriber(V,G,ie){var oe=W.call(this,V)||this;return oe.notifier=G,oe.source=ie,oe.sourceIsBeingSubscribedTo=!0,oe}return ie.__extends(RepeatWhenSubscriber,W),RepeatWhenSubscriber.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},RepeatWhenSubscriber.prototype.notifyComplete=function(){if(!1===this.sourceIsBeingSubscribedTo)return W.prototype.complete.call(this)},RepeatWhenSubscriber.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return W.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},RepeatWhenSubscriber.prototype._unsubscribe=function(){var W=this.notifications,V=this.retriesSubscription;W&&(W.unsubscribe(),this.notifications=void 0),V&&(V.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},RepeatWhenSubscriber.prototype._unsubscribeAndRecycle=function(){var V=this._unsubscribe;return this._unsubscribe=null,W.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=V,this},RepeatWhenSubscriber.prototype.subscribeToRetries=function(){var V;this.notifications=new $r.a;try{V=(0,this.notifier)(this.notifications)}catch(V){return W.prototype.complete.call(this)}this.retries=V,this.retriesSubscription=Object(oe.c)(V,new oe.a(this))},RepeatWhenSubscriber}(oe.b);function retry(W){return void 0===W&&(W=-1),function(V){return V.lift(new kr(W,V))}}var kr=function(){function RetryOperator(W,V){this.count=W,this.source=V}return RetryOperator.prototype.call=function(W,V){return V.subscribe(new Ar(W,this.count,this.source))},RetryOperator}(),Ar=function(W){function RetrySubscriber(V,G,ie){var oe=W.call(this,V)||this;return oe.count=G,oe.source=ie,oe}return ie.__extends(RetrySubscriber,W),RetrySubscriber.prototype.error=function(V){if(!this.isStopped){var G=this.source,ie=this.count;if(0===ie)return W.prototype.error.call(this,V);ie>-1&&(this.count=ie-1),G.subscribe(this._unsubscribeAndRecycle())}},RetrySubscriber}(he.a);function retryWhen(W){return function(V){return V.lift(new Ir(W,V))}}var Ir=function(){function RetryWhenOperator(W,V){this.notifier=W,this.source=V}return RetryWhenOperator.prototype.call=function(W,V){return V.subscribe(new Mr(W,this.notifier,this.source))},RetryWhenOperator}(),Mr=function(W){function RetryWhenSubscriber(V,G,ie){var oe=W.call(this,V)||this;return oe.notifier=G,oe.source=ie,oe}return ie.__extends(RetryWhenSubscriber,W),RetryWhenSubscriber.prototype.error=function(V){if(!this.isStopped){var G=this.errors,ie=this.retries,ue=this.retriesSubscription;if(ie)this.errors=void 0,this.retriesSubscription=void 0;else{G=new $r.a;try{ie=(0,this.notifier)(G)}catch(V){return W.prototype.error.call(this,V)}ue=Object(oe.c)(ie,new oe.a(this))}this._unsubscribeAndRecycle(),this.errors=G,this.retries=ie,this.retriesSubscription=ue,G.next(V)}},RetryWhenSubscriber.prototype._unsubscribe=function(){var W=this.errors,V=this.retriesSubscription;W&&(W.unsubscribe(),this.errors=void 0),V&&(V.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},RetryWhenSubscriber.prototype.notifyNext=function(){var W=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=W,this.source.subscribe(this)},RetryWhenSubscriber}(oe.b),Fr=G(56);function sample(W){return function(V){return V.lift(new Rr(W))}}var Rr=function(){function SampleOperator(W){this.notifier=W}return SampleOperator.prototype.call=function(W,V){var G=new Lr(W),ie=V.subscribe(G);return ie.add(Object(oe.c)(this.notifier,new oe.a(G))),ie},SampleOperator}(),Lr=function(W){function SampleSubscriber(){var V=null!==W&&W.apply(this,arguments)||this;return V.hasValue=!1,V}return ie.__extends(SampleSubscriber,W),SampleSubscriber.prototype._next=function(W){this.value=W,this.hasValue=!0},SampleSubscriber.prototype.notifyNext=function(){this.emitValue()},SampleSubscriber.prototype.notifyComplete=function(){this.emitValue()},SampleSubscriber.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},SampleSubscriber}(oe.b);function sampleTime(W,V){return void 0===V&&(V=se.a),function(G){return G.lift(new Br(W,V))}}var Br=function(){function SampleTimeOperator(W,V){this.period=W,this.scheduler=V}return SampleTimeOperator.prototype.call=function(W,V){return V.subscribe(new Dr(W,this.period,this.scheduler))},SampleTimeOperator}(),Dr=function(W){function SampleTimeSubscriber(V,G,ie){var oe=W.call(this,V)||this;return oe.period=G,oe.scheduler=ie,oe.hasValue=!1,oe.add(ie.schedule(dispatchNotification,G,{subscriber:oe,period:G})),oe}return ie.__extends(SampleTimeSubscriber,W),SampleTimeSubscriber.prototype._next=function(W){this.lastValue=W,this.hasValue=!0},SampleTimeSubscriber.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},SampleTimeSubscriber}(he.a);function dispatchNotification(W){var V=W.subscriber,G=W.period;V.notifyNext(),this.schedule(W,G)}function sequenceEqual(W,V){return function(G){return G.lift(new Wr(W,V))}}var Wr=function(){function SequenceEqualOperator(W,V){this.compareTo=W,this.comparator=V}return SequenceEqualOperator.prototype.call=function(W,V){return V.subscribe(new Vr(W,this.compareTo,this.comparator))},SequenceEqualOperator}(),Vr=function(W){function SequenceEqualSubscriber(V,G,ie){var oe=W.call(this,V)||this;return oe.compareTo=G,oe.comparator=ie,oe._a=[],oe._b=[],oe._oneComplete=!1,oe.destination.add(G.subscribe(new Ur(V,oe))),oe}return ie.__extends(SequenceEqualSubscriber,W),SequenceEqualSubscriber.prototype._next=function(W){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(W),this.checkValues())},SequenceEqualSubscriber.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},SequenceEqualSubscriber.prototype.checkValues=function(){for(var W=this._a,V=this._b,G=this.comparator;W.length>0&&V.length>0;){var ie=W.shift(),oe=V.shift(),ue=!1;try{ue=G?G(ie,oe):ie===oe}catch(W){this.destination.error(W)}ue||this.emit(!1)}},SequenceEqualSubscriber.prototype.emit=function(W){var V=this.destination;V.next(W),V.complete()},SequenceEqualSubscriber.prototype.nextB=function(W){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(W),this.checkValues())},SequenceEqualSubscriber.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},SequenceEqualSubscriber}(he.a),Ur=function(W){function SequenceEqualCompareToSubscriber(V,G){var ie=W.call(this,V)||this;return ie.parent=G,ie}return ie.__extends(SequenceEqualCompareToSubscriber,W),SequenceEqualCompareToSubscriber.prototype._next=function(W){this.parent.nextB(W)},SequenceEqualCompareToSubscriber.prototype._error=function(W){this.parent.error(W),this.unsubscribe()},SequenceEqualCompareToSubscriber.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},SequenceEqualCompareToSubscriber}(he.a);function shareSubjectFactory(){return new $r.a}function share(){return function(W){return Object(Fr.a)()(multicast(shareSubjectFactory)(W))}}function shareReplay(W,V,G){var ie;return ie=W&&"object"==typeof W?W:{bufferSize:W,windowTime:V,refCount:!1,scheduler:G},function(W){return W.lift(function shareReplayOperator(W){var V,G,ie=W.bufferSize,oe=void 0===ie?Number.POSITIVE_INFINITY:ie,ue=W.windowTime,ae=void 0===ue?Number.POSITIVE_INFINITY:ue,se=W.refCount,de=W.scheduler,le=0,pe=!1,he=!1;return function shareReplayOperation(W){var ie;le++,!V||pe?(pe=!1,V=new Er.a(oe,ae,de),ie=V.subscribe(this),G=W.subscribe({next:function(W){V.next(W)},error:function(W){pe=!0,V.error(W)},complete:function(){he=!0,G=void 0,V.complete()}}),he&&(G=void 0)):ie=V.subscribe(this),this.add((function(){le--,ie.unsubscribe(),ie=void 0,G&&!he&&se&&0===le&&(G.unsubscribe(),G=void 0,V=void 0)}))}}(ie))}}function single(W){return function(V){return V.lift(new qr(W,V))}}var qr=function(){function SingleOperator(W,V){this.predicate=W,this.source=V}return SingleOperator.prototype.call=function(W,V){return V.subscribe(new zr(W,this.predicate,this.source))},SingleOperator}(),zr=function(W){function SingleSubscriber(V,G,ie){var oe=W.call(this,V)||this;return oe.predicate=G,oe.source=ie,oe.seenValue=!1,oe.index=0,oe}return ie.__extends(SingleSubscriber,W),SingleSubscriber.prototype.applySingleValue=function(W){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=W)},SingleSubscriber.prototype._next=function(W){var V=this.index++;this.predicate?this.tryNext(W,V):this.applySingleValue(W)},SingleSubscriber.prototype.tryNext=function(W,V){try{this.predicate(W,V,this.source)&&this.applySingleValue(W)}catch(W){this.destination.error(W)}},SingleSubscriber.prototype._complete=function(){var W=this.destination;this.index>0?(W.next(this.seenValue?this.singleValue:void 0),W.complete()):W.error(new Tt.a)},SingleSubscriber}(he.a);function skip(W){return function(V){return V.lift(new Yr(W))}}var Yr=function(){function SkipOperator(W){this.total=W}return SkipOperator.prototype.call=function(W,V){return V.subscribe(new Gr(W,this.total))},SkipOperator}(),Gr=function(W){function SkipSubscriber(V,G){var ie=W.call(this,V)||this;return ie.total=G,ie.count=0,ie}return ie.__extends(SkipSubscriber,W),SkipSubscriber.prototype._next=function(W){++this.count>this.total&&this.destination.next(W)},SkipSubscriber}(he.a);function skipLast(W){return function(V){return V.lift(new Hr(W))}}var Hr=function(){function SkipLastOperator(W){if(this._skipCount=W,this._skipCount<0)throw new Pt.a}return SkipLastOperator.prototype.call=function(W,V){return 0===this._skipCount?V.subscribe(new he.a(W)):V.subscribe(new Kr(W,this._skipCount))},SkipLastOperator}(),Kr=function(W){function SkipLastSubscriber(V,G){var ie=W.call(this,V)||this;return ie._skipCount=G,ie._count=0,ie._ring=new Array(G),ie}return ie.__extends(SkipLastSubscriber,W),SkipLastSubscriber.prototype._next=function(W){var V=this._skipCount,G=this._count++;if(G0?this.startWindowEvery:this.windowSize,G=this.destination,ie=this.windowSize,oe=this.windows,ue=oe.length,ae=0;ae=0&&se%V==0&&!this.closed&&oe.shift().complete(),++this.count%V==0&&!this.closed){var de=new $r.a;oe.push(de),G.next(de)}},WindowCountSubscriber.prototype._error=function(W){var V=this.windows;if(V)for(;V.length>0&&!this.closed;)V.shift().error(W);this.destination.error(W)},WindowCountSubscriber.prototype._complete=function(){var W=this.windows;if(W)for(;W.length>0&&!this.closed;)W.shift().complete();this.destination.complete()},WindowCountSubscriber.prototype._unsubscribe=function(){this.count=0,this.windows=null},WindowCountSubscriber}(he.a);function windowTime_windowTime(W){var V=se.a,G=null,ie=Number.POSITIVE_INFINITY;return Object(we.a)(arguments[3])&&(V=arguments[3]),Object(we.a)(arguments[2])?V=arguments[2]:Object(tn.a)(arguments[2])&&(ie=Number(arguments[2])),Object(we.a)(arguments[1])?V=arguments[1]:Object(tn.a)(arguments[1])&&(G=Number(arguments[1])),function windowTimeOperatorFunction(oe){return oe.lift(new kn(W,G,ie,V))}}var kn=function(){function WindowTimeOperator(W,V,G,ie){this.windowTimeSpan=W,this.windowCreationInterval=V,this.maxWindowSize=G,this.scheduler=ie}return WindowTimeOperator.prototype.call=function(W,V){return V.subscribe(new In(W,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},WindowTimeOperator}(),An=function(W){function CountedSubject(){var V=null!==W&&W.apply(this,arguments)||this;return V._numberOfNextedValues=0,V}return ie.__extends(CountedSubject,W),CountedSubject.prototype.next=function(V){this._numberOfNextedValues++,W.prototype.next.call(this,V)},Object.defineProperty(CountedSubject.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),CountedSubject}($r.a),In=function(W){function WindowTimeSubscriber(V,G,ie,oe,ue){var ae=W.call(this,V)||this;ae.destination=V,ae.windowTimeSpan=G,ae.windowCreationInterval=ie,ae.maxWindowSize=oe,ae.scheduler=ue,ae.windows=[];var se=ae.openWindow();if(null!==ie&&ie>=0){var de={subscriber:ae,window:se,context:null},le={windowTimeSpan:G,windowCreationInterval:ie,subscriber:ae,scheduler:ue};ae.add(ue.schedule(dispatchWindowClose,G,de)),ae.add(ue.schedule(dispatchWindowCreation,ie,le))}else{var pe={subscriber:ae,window:se,windowTimeSpan:G};ae.add(ue.schedule(dispatchWindowTimeSpanOnly,G,pe))}return ae}return ie.__extends(WindowTimeSubscriber,W),WindowTimeSubscriber.prototype._next=function(W){for(var V=this.windows,G=V.length,ie=0;ie=this.maxWindowSize&&this.closeWindow(oe))}},WindowTimeSubscriber.prototype._error=function(W){for(var V=this.windows;V.length>0;)V.shift().error(W);this.destination.error(W)},WindowTimeSubscriber.prototype._complete=function(){for(var W=this.windows;W.length>0;){var V=W.shift();V.closed||V.complete()}this.destination.complete()},WindowTimeSubscriber.prototype.openWindow=function(){var W=new An;return this.windows.push(W),this.destination.next(W),W},WindowTimeSubscriber.prototype.closeWindow=function(W){W.complete();var V=this.windows;V.splice(V.indexOf(W),1)},WindowTimeSubscriber}(he.a);function dispatchWindowTimeSpanOnly(W){var V=W.subscriber,G=W.windowTimeSpan,ie=W.window;ie&&V.closeWindow(ie),W.window=V.openWindow(),this.schedule(W,G)}function dispatchWindowCreation(W){var V=W.windowTimeSpan,G=W.subscriber,ie=W.scheduler,oe=W.windowCreationInterval,ue=G.openWindow(),ae={action:this,subscription:null},se={subscriber:G,window:ue,context:ae};ae.subscription=ie.schedule(dispatchWindowClose,V,se),this.add(ae.subscription),this.schedule(W,oe)}function dispatchWindowClose(W){var V=W.subscriber,G=W.window,ie=W.context;ie&&ie.action&&ie.subscription&&ie.action.remove(ie.subscription),V.closeWindow(G)}function windowToggle(W,V){return function(G){return G.lift(new Mn(W,V))}}var Mn=function(){function WindowToggleOperator(W,V){this.openings=W,this.closingSelector=V}return WindowToggleOperator.prototype.call=function(W,V){return V.subscribe(new Fn(W,this.openings,this.closingSelector))},WindowToggleOperator}(),Fn=function(W){function WindowToggleSubscriber(V,G,ie){var oe=W.call(this,V)||this;return oe.openings=G,oe.closingSelector=ie,oe.contexts=[],oe.add(oe.openSubscription=Object(Re.a)(oe,G,G)),oe}return ie.__extends(WindowToggleSubscriber,W),WindowToggleSubscriber.prototype._next=function(W){var V=this.contexts;if(V)for(var G=V.length,ie=0;ie0){var oe=ie.indexOf(G);-1!==oe&&ie.splice(oe,1)}},WithLatestFromSubscriber.prototype.notifyComplete=function(){},WithLatestFromSubscriber.prototype._next=function(W){if(0===this.toRespond.length){var V=[W].concat(this.values);this.project?this._tryProject(V):this.destination.next(V)}},WithLatestFromSubscriber.prototype._tryProject=function(W){var V;try{V=this.project.apply(this,W)}catch(W){return void this.destination.error(W)}this.destination.next(V)},WithLatestFromSubscriber}(Le.a),Wn=G(62);function zip_zip(){for(var W=[],V=0;Vae)return 1;if(ae>ue)return-1;if(!isNaN(ue)&&isNaN(ae))return 1;if(isNaN(ue)&&!isNaN(ae))return-1}return W[1]&&V[1]?W[1]>V[1]?1:W[1]=2&&Fe.test(W)}var Re=new RegExp("(?:"+createExtensionPattern()+")$","i");var Le={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function parseDigit(W){return Le[W]}function parseDigits(W){var V="",G=W.split(""),ie=Array.isArray(G),oe=0;for(G=ie?G:G[Symbol.iterator]();;){var ue;if(ie){if(oe>=G.length)break;ue=G[oe++]}else{if((oe=G.next()).done)break;ue=oe.value}var ae=parseDigit(ue);ae&&(V+=ae)}return V}function parseIncompletePhoneNumber(W){var V="",G=W.split(""),ie=Array.isArray(G),oe=0;for(G=ie?G:G[Symbol.iterator]();;){var ue;if(ie){if(oe>=G.length)break;ue=G[oe++]}else{if((oe=G.next()).done)break;ue=oe.value}V+=parsePhoneNumberCharacter(ue,V)||""}return V}function parsePhoneNumberCharacter(W,V){if("+"===W){if(V)return;return"+"}return parseDigit(W)}function checkNumberLength(W,V){return function checkNumberLengthForType(W,V,G){var ie=G.type(V),oe=ie&&ie.possibleLengths()||G.possibleLengths();if(!oe)return"IS_POSSIBLE";if("FIXED_LINE_OR_MOBILE"===V){if(!G.type("FIXED_LINE"))return checkNumberLengthForType(W,"MOBILE",G);var ue=G.type("MOBILE");ue&&(oe=function mergeArrays(W,V){var G=W.slice(),ie=V,oe=Array.isArray(ie),ue=0;for(ie=oe?ie:ie[Symbol.iterator]();;){var ae;if(oe){if(ue>=ie.length)break;ae=ie[ue++]}else{if((ue=ie.next()).done)break;ae=ue.value}var se=ae;W.indexOf(se)<0&&G.push(se)}return G.sort((function(W,V){return W-V}))}(oe,ue.possibleLengths()))}else if(V&&!ie)return"INVALID_LENGTH";var ae=W.length,se=oe[0];if(se===ae)return"IS_POSSIBLE";if(se>ae)return"TOO_SHORT";if(oe[oe.length-1]=0?"IS_POSSIBLE":"INVALID_LENGTH"}(W,void 0,V)}function isPossibleNumber(W,V){switch(checkNumberLength(W,V)){case"IS_POSSIBLE":return!0;default:return!1}}function _slicedToArray(W,V){return function _arrayWithHoles(W){if(Array.isArray(W))return W}(W)||function _iterableToArrayLimit(W,V){var G=[],ie=!0,oe=!1,ue=void 0;try{for(var ae,se=W[Symbol.iterator]();!(ie=(ae=se.next()).done)&&(G.push(ae.value),!V||G.length!==V);ie=!0);}catch(W){oe=!0,ue=W}finally{try{ie||null==se.return||se.return()}finally{if(oe)throw ue}}return G}(W,V)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function parseRFC3966(W){var V,G,ie=(W=W.replace(/^tel:/,"tel=")).split(";"),oe=Array.isArray(ie),ue=0;for(ie=oe?ie:ie[Symbol.iterator]();;){var ae;if(oe){if(ue>=ie.length)break;ae=ie[ue++]}else{if((ue=ie.next()).done)break;ae=ue.value}var se=_slicedToArray(ae.split("="),2),de=se[0],le=se[1];switch(de){case"tel":V=le;break;case"ext":G=le;break;case"phone-context":"+"===le[0]&&(V=le+V)}}if(!isViablePhoneNumber(V))return{};var pe={number:V};return G&&(pe.ext=G),pe}function formatRFC3966(W){var V=W.number,G=W.ext;if(!V)return"";if("+"!==V[0])throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(V).concat(G?";ext="+G:"")}function matchesEntirely(W,V){return W=W||"",new RegExp("^(?:"+V+")$").test(W)}var De=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function getNumberType(W,V,G){if(V=V||{},W.country){(G=new de(G)).selectNumberingPlan(W.country,W.countryCallingCode);var ie=V.v2?W.nationalNumber:W.phone;if(matchesEntirely(ie,G.nationalNumberPattern())){if(isNumberTypeEqualTo(ie,"FIXED_LINE",G))return G.type("MOBILE")&&""===G.type("MOBILE").pattern()?"FIXED_LINE_OR_MOBILE":G.type("MOBILE")?isNumberTypeEqualTo(ie,"MOBILE",G)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE":"FIXED_LINE_OR_MOBILE";for(var oe=0,ue=De;oe=G.length)break;ue=G[oe++]}else{if((oe=G.next()).done)break;ue=oe.value}var ae=ue;if(ae.leadingDigitsPatterns().length>0){var se=ae.leadingDigitsPatterns()[ae.leadingDigitsPatterns().length-1];if(0!==V.search(se))continue}if(matchesEntirely(V,ae.pattern()))return ae}}(ie.formats(),W);return ue?formatNationalNumberUsingFormat(W,ue,{useInternationalFormat:"INTERNATIONAL"===G,withNationalPrefix:!ue.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!oe||!1!==oe.nationalPrefix,carrierCode:V,metadata:ie}):W}function addExtension(W,V,G,ie){return V?ie(W,V,G):W}function PhoneNumber_defineProperty(W,V,G){return V in W?Object.defineProperty(W,V,{value:G,enumerable:!0,configurable:!0,writable:!0}):W[V]=G,W}function PhoneNumber_defineProperties(W,V){for(var G=0;G0&&"0"===ae[1]))return W}}}function extractNationalNumberFromPossiblyIncompleteNumber(W,V){if(W&&V.numberingPlan.nationalPrefixForParsing()){var G=new RegExp("^(?:"+V.numberingPlan.nationalPrefixForParsing()+")"),ie=G.exec(W);if(ie){var oe,ue,ae,se=ie.length-1,de=se>0&&ie[se];if(V.nationalPrefixTransformRule()&&de)oe=W.replace(G,V.nationalPrefixTransformRule()),se>1&&(ue=ie[1]);else{var le=ie[0];oe=W.slice(le.length),de&&(ue=ie[1])}if(de){var pe=W.indexOf(ie[1]);W.slice(0,pe)===V.numberingPlan.nationalPrefix()&&(ae=V.numberingPlan.nationalPrefix())}else ae=ie[0];return{nationalNumber:oe,nationalPrefix:ae,carrierCode:ue}}}return{nationalNumber:W}}function extractNationalNumber(W,V){var G=extractNationalNumberFromPossiblyIncompleteNumber(W,V),ie=G.nationalNumber,oe=G.carrierCode;if(!function shouldExtractNationalPrefix(W,V,G){if(matchesEntirely(W,G.nationalNumberPattern())&&!matchesEntirely(V,G.nationalNumberPattern()))return!1;return!0}(W,ie,V))return{nationalNumber:W};if(W.length!==ie.length+(oe?oe.length:0)&&V.possibleLengths())switch(checkNumberLength(ie,V)){case"TOO_SHORT":case"INVALID_LENGTH":return{nationalNumber:W}}return{nationalNumber:ie,carrierCode:oe}}function extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(W,V,G,ie){var oe=V?getCountryCallingCode(V,ie):G;if(0===W.indexOf(oe)){(ie=new de(ie)).selectNumberingPlan(V,G);var ue=W.slice(oe.length),ae=extractNationalNumber(ue,ie).nationalNumber,se=extractNationalNumber(W,ie).nationalNumber;if(!matchesEntirely(se,ie.nationalNumberPattern())&&matchesEntirely(ae,ie.nationalNumberPattern())||"TOO_LONG"===checkNumberLength(se,ie))return{countryCallingCode:oe,number:ue}}return{number:W}}function extractCountryCallingCode_extractCountryCallingCode(W,V,G,ie){if(!W)return{};if("+"!==W[0]){var oe=stripIddPrefix(W,V,G,ie);if(!oe||oe===W){if(V||G){var ue=extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(W,V,G,ie),ae=ue.countryCallingCode,se=ue.number;if(ae)return{countryCallingCode:ae,number:se}}return{number:W}}W="+"+oe}if("0"===W[1])return{};ie=new de(ie);for(var le=2;le-1<=3&&le<=W.length;){var pe=W.slice(1,le);if(ie.hasCallingCode(pe))return ie.selectNumberingPlan(pe),{countryCallingCode:pe,number:W.slice(le)};le++}return{}}function getCountryByCallingCode(W,V,G){var ie=G.getCountryCodesForCallingCode(W);if(ie)return 1===ie.length?ie[0]:function selectCountryFromList(W,V,G){G=new de(G);var ie=W,oe=Array.isArray(ie),ue=0;for(ie=oe?ie:ie[Symbol.iterator]();;){var ae;if(oe){if(ue>=ie.length)break;ae=ie[ue++]}else{if((ue=ie.next()).done)break;ae=ue.value}var se=ae;if(G.country(se),G.leadingDigits()){if(V&&0===V.search(G.leadingDigits()))return se}else if(getNumberType({phone:V,country:se},void 0,G.metadata))return se}}(ie,V,G.metadata)}var et=new RegExp("[++0-90-9٠-٩۰-۹]"),tt=new RegExp("[^0-90-9٠-٩۰-۹#]+$");function parse(W,V,G){if(V=V||{},G=new de(G),V.defaultCountry&&!G.hasCountry(V.defaultCountry)){if(V.v2)throw new ae("INVALID_COUNTRY");throw new Error("Unknown country: ".concat(V.defaultCountry))}var ie=function parseInput(W,V,G){if(W&&0===W.indexOf("tel:"))return parseRFC3966(W);var ie=function extractFormattedPhoneNumber(W,V,G){if(!W)return;if(W.length>250){if(G)throw new ae("TOO_LONG");return}if(!1===V)return W;var ie=W.search(et);if(ie<0)return;return W.slice(ie).replace(tt,"")}(W,G,V);if(!ie)return{};if(!isViablePhoneNumber(ie))return function isViablePhoneNumberStart(W){return Pe.test(W)}(ie)?{error:"TOO_SHORT"}:{};var oe=function extractExtension(W){var V=W.search(Re);if(V<0)return{};for(var G=W.slice(0,V),ie=W.match(Re),oe=1;oe17){if(V.v2)throw new ae("TOO_LONG");return{}}if(V.v2){var Se=new Ke(ve,he,G.metadata);return pe&&(Se.country=pe),ge&&(Se.carrierCode=ge),ue&&(Se.ext=ue),Se}var we=!!(V.extended?G.hasSelectedNumberingPlan():pe)&&matchesEntirely(he,G.nationalNumberPattern());return V.extended?{country:pe,countryCallingCode:ve,carrierCode:ge,valid:we,possible:!!we||!(!0!==V.extended||!G.possibleLengths()||!isPossibleNumber(he,G)),phone:he,ext:ue}:we?function parse_result(W,V,G){var ie={country:W,phone:V};G&&(ie.ext=G);return ie}(pe,he,ue):{}}function parsePhoneNumber_defineProperty(W,V,G){return V in W?Object.defineProperty(W,V,{value:G,enumerable:!0,configurable:!0,writable:!0}):W[V]=G,W}function parsePhoneNumber_parsePhoneNumber(W,V,G){return parse(W,function parsePhoneNumber_objectSpread(W){for(var V=1;V2&&void 0!==arguments[2]?arguments[2]:null,ie=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;LRUCache_classCallCheck(this,Node),this.key=W,this.value=V,this.next=G,this.prev=ie},it=function(){function LRUCache(){var W=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;LRUCache_classCallCheck(this,LRUCache),this.size=0,this.limit=W,this.head=null,this.tail=null,this.cache={}}return function LRUCache_createClass(W,V,G){return V&&LRUCache_defineProperties(W.prototype,V),G&&LRUCache_defineProperties(W,G),W}(LRUCache,[{key:"put",value:function put(W,V){if(this.ensureLimit(),this.head){var G=new nt(W,V,this.head);this.head.prev=G,this.head=G}else this.head=this.tail=new nt(W,V);this.cache[W]=this.head,this.size++}},{key:"get",value:function get(W){if(this.cache[W]){var V=this.cache[W].value;return this.remove(W),this.put(W,V),V}console.log("Item not available in cache for key ".concat(W))}},{key:"ensureLimit",value:function ensureLimit(){this.size===this.limit&&this.remove(this.tail.key)}},{key:"remove",value:function remove(W){var V=this.cache[W];null!==V.prev?V.prev.next=V.next:this.head=V.next,null!==V.next?V.next.prev=V.prev:this.tail=V.prev,delete this.cache[W],this.size--}},{key:"clear",value:function clear(){this.head=null,this.tail=null,this.size=0,this.cache={}}}]),LRUCache}();function RegExpCache_defineProperties(W,V){for(var G=0;G=0?V.slice(0,G):V}var ut="   ᠎ - \u2028\u2029   ",at="[".concat(ut,"]"),st="[^".concat(ut,"]"),ct="[".concat("0-9٠-٩۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꩐-꩙꯰-꯹0-9","]"),dt="A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",lt="[".concat(dt,"]"),ft=new RegExp(lt),pt="[".concat("$¢-¥֏؋৲৳৻૱௹฿៛₠-₹꠸﷼﹩$¢£¥₩","]"),ht=new RegExp(pt),bt="[".concat("̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-ٰٟۖ-ۜ۟-۪ۤۧۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣤ-ࣾऀ-ंऺ़ु-ै्॑-ॗॢॣঁ়ু-ৄ্ৢৣਁਂ਼ੁੂੇੈੋ-੍ੑੰੱੵઁં઼ુ-ૅેૈ્ૢૣଁ଼ିୁ-ୄ୍ୖୢୣஂீ்ా-ీె-ైొ-్ౕౖౢౣ಼ಿೆೌ್ೢೣു-ൄ്ൢൣ්ි-ුූัิ-ฺ็-๎ັິ-ູົຼ່-ໍཱ༹༘༙༵༷-ཾྀ-྄྆྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္်ွှၘၙၞ-ၠၱ-ၴႂႅႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧᤨᤲ᤹-᤻ᨘᨗᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀᮁᮢ-ᮥᮨᮩ᯦᮫ᯨᯩᯭᯯ-ᯱᰬ-ᰳᰶ᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᷀-ᷦ᷼-᷿⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〭꙯ꙴ-꙽ꚟ꛰꛱ꠂ꠆ꠋꠥꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꨩ-ꨮꨱꨲꨵꨶꩃꩌꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫬꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-︦","]"),yt=new RegExp(bt),vt=new RegExp("[\0-€-ÿĀ-ſḀ-ỿƀ-ɏ̀-ͯ]");function isLatinLetter(W){return!(!ft.test(W)&&!yt.test(W))&&vt.test(W)}function isInvalidPunctuationSymbol(W){return"%"===W||ht.test(W)}var mt={POSSIBLE:function POSSIBLE(W,V,G){return!0},VALID:function VALID(W,V,G){return!(!isValidNumber(W,void 0,G)||!containsOnlyValidXChars(W,V.toString(),G))},STRICT_GROUPING:function STRICT_GROUPING(W,V,G,ie){var oe=V.toString();return!(!isValidNumber(W,void 0,G)||!containsOnlyValidXChars(W,oe,G)||containsMoreThanOneSlashInNationalNumber(W,oe)||!isNationalPrefixPresentIfRequired(W,G))&&checkNumberGroupingIsValid(W,V,G,allNumberGroupsRemainGrouped,ie)},EXACT_GROUPING:function EXACT_GROUPING(W,V,G,ie){var oe=V.toString();return!(!isValidNumber(W,void 0,G)||!containsOnlyValidXChars(W,oe,G)||containsMoreThanOneSlashInNationalNumber(W,oe)||!isNationalPrefixPresentIfRequired(W,G))&&checkNumberGroupingIsValid(W,V,G,allNumberGroupsAreExactlyPresent,ie)}};function containsOnlyValidXChars(W,V,G){for(var ie=0;ie0){if(ue.getNationalPrefixOptionalWhenFormatting())return!0;if(PhoneNumberUtil.formattingRuleHasFirstGroupOnly(ue.getNationalPrefixFormattingRule()))return!0;var ae=PhoneNumberUtil.normalizeDigitsOnly(W.getRawInput());return util.maybeStripNationalPrefixAndCarrierCode(ae,ie,null)}return!0}function containsMoreThanOneSlashInNationalNumber(W,V){var G=V.indexOf("/");if(G<0)return!1;var ie=V.indexOf("/",G+1);return!(ie<0)&&(!(W.getCountryCodeSource()===CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN||W.getCountryCodeSource()===CountryCodeSource.FROM_NUMBER_WITHOUT_PLUS_SIGN)||PhoneNumberUtil.normalizeDigitsOnly(V.substring(0,G))!==String(W.getCountryCode())||V.slice(ie+1).indexOf("/")>=0)}function checkNumberGroupingIsValid(W,V,G,ie,oe){var ue=normalizeDigits(V,!0),ae=getNationalNumberGroups(G,W,null);if(ie(G,W,ue,ae))return!0;var se=MetadataManager.getAlternateFormatsForCountry(W.getCountryCode()),de=util.getNationalSignificantNumber(W);if(se){var le=se.numberFormats(),pe=Array.isArray(le),he=0;for(le=pe?le:le[Symbol.iterator]();;){var ve;if(pe){if(he>=le.length)break;ve=le[he++]}else{if((he=le.next()).done)break;ve=he.value}var ge=ve;if(ge.leadingDigitsPatterns().length>0)if(!oe.getPatternForRegExp("^"+ge.leadingDigitsPatterns()[0]).test(de))continue;if(ie(G,W,ue,ae=getNationalNumberGroups(G,W,ge)))return!0}}return!1}function getNationalNumberGroups(W,V,G){if(G){var ie=util.getNationalSignificantNumber(V);return util.formatNsnUsingPattern(ie,G,"RFC3966",W).split("-")}var oe=formatNumber(V,"RFC3966",W),ue=oe.indexOf(";");ue<0&&(ue=oe.length);var ae=oe.indexOf("-")+1;return oe.slice(ae,ue).split("-")}function allNumberGroupsAreExactlyPresent(W,V,G,ie){var oe=G.split(NON_DIGITS_PATTERN),ue=V.hasExtension()?oe.length-2:oe.length-1;if(1==oe.length||oe[ue].contains(util.getNationalSignificantNumber(V)))return!0;for(var ae=ie.length-1;ae>0&&ue>=0;){if(oe[ue]!==ie[ae])return!1;ae--,ue--}return ue>=0&&function endsWith(W,V){return W.indexOf(V,W.length-V.length)===W.length-V.length}(oe[ue],ie[0])}function allNumberGroupsRemainGrouped(W,V,G,ie){var oe,ue,ae=0;if(V.getCountryCodeSource()!==CountryCodeSource.FROM_DEFAULT_COUNTRY){var se=String(V.getCountryCode());ae=G.indexOf(se)+se.length()}for(var de=0;de0&&void 0!==arguments[0]?arguments[0]:"",V=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},G=arguments.length>2?arguments[2]:void 0;if(PhoneNumberMatcher_classCallCheck(this,PhoneNumberMatcher),PhoneNumberMatcher_defineProperty(this,"state","NOT_READY"),PhoneNumberMatcher_defineProperty(this,"searchIndex",0),PhoneNumberMatcher_defineProperty(this,"regExpCache",new ot(32)),!(V=PhoneNumberMatcher_objectSpread({},V,{defaultCallingCode:V.defaultCallingCode,defaultCountry:V.defaultCountry&&isSupportedCountry(V.defaultCountry,G)?V.defaultCountry:void 0,leniency:V.leniency||V.extended?"POSSIBLE":"VALID",maxTries:V.maxTries||Lt})).leniency)throw new TypeError("`Leniency` not supplied");if(V.maxTries<0)throw new TypeError("`maxTries` not supplied");if(this.text=W,this.options=V,this.metadata=G,this.leniency=mt[V.leniency],!this.leniency)throw new TypeError("Unknown leniency: ".concat(V.leniency,"."));this.maxTries=V.maxTries,this.PATTERN=new RegExp(Ft,"ig")}return function PhoneNumberMatcher_createClass(W,V,G){return V&&PhoneNumberMatcher_defineProperties(W.prototype,V),G&&PhoneNumberMatcher_defineProperties(W,G),W}(PhoneNumberMatcher,[{key:"find",value:function find(){for(var W;this.maxTries>0&&null!==(W=this.PATTERN.exec(this.text));){var V=W[0],G=W.index;if(isValidPreCandidate(V=parsePreCandidate(V),G,this.text)){var ie=this.parseAndVerify(V,G,this.text)||this.extractInnerMatch(V,G,this.text);if(ie){if(this.options.v2){var oe=new Ke(ie.country||ie.countryCallingCode,ie.phone,this.metadata);return ie.ext&&(oe.ext=ie.ext),{startsAt:ie.startsAt,endsAt:ie.endsAt,number:oe}}return ie}}this.maxTries--}}},{key:"extractInnerMatch",value:function extractInnerMatch(W,V,G){for(var ie=0,oe=Tt;ie0&&null!==(ae=se.exec(W));){if(ue){var de=trimAfterFirstMatch(Rt,W.slice(0,ae.index)),le=this.parseAndVerify(de,V,G);if(le)return le;this.maxTries--,ue=!1}var pe=trimAfterFirstMatch(Rt,ae[1]),he=W.indexOf(pe,ae.index),ve=this.parseAndVerify(pe,V+he,G);if(ve)return ve;this.maxTries--}}},{key:"parseAndVerify",value:function parseAndVerify(W,V,G){if(function isValidCandidate(W,V,G,ie){if(Ct.test(W)&&!Pt.test(W)){if("POSSIBLE"!==ie){if(V>0&&!xt.test(W)){var oe=G[V-1];if(isInvalidPunctuationSymbol(oe)||isLatinLetter(oe))return!1}var ue=V+W.length;if(ue1;)1&V&&(G+=W),V>>=1,W+=W;return G+W}function cutAndStripNonPairedParens(W,V){return")"===W[V]&&V++,function stripNonPairedParens(W){var V=[],G=0;for(;G1&&void 0!==arguments[1]?arguments[1]:{},G=V.allowOverflow;if(!W)throw new Error("String is required");var ie=AsYouTypeFormatter_PatternMatcher_match(W.split(""),this.matchTree,!0);if(ie&&ie.match&&delete ie.matchedChars,!ie||!ie.overflow||G)return ie}}]),PatternMatcher}();function AsYouTypeFormatter_PatternMatcher_match(W,V,G){if("string"==typeof V){if(G&&W.length>V.length)return{overflow:!0};var ie=W.join("");return 0===V.indexOf(ie)?W.length===V.length?{match:!0,matchedChars:W}:{partialMatch:!0}:0===ie.indexOf(V)?{match:!0,matchedChars:W.slice(0,V.length)}:void 0}if(Array.isArray(V)){for(var oe=W.slice(),ue=0;ue=de.length)break;he=de[pe++]}else{if((pe=de.next()).done)break;he=pe.value}var ve=AsYouTypeFormatter_PatternMatcher_match(W,he,G);if(ve){if(ve.overflow)return ve;if(ve.match)return{match:!0,matchedChars:ve.matchedChars};if(!ve.partialMatch)throw new Error("Unsupported match result:\n".concat(JSON.stringify(ve,null,2)));se=!0}}return se?{partialMatch:!0}:void 0;case"[]":var ge=V.args,Se=Array.isArray(ge),we=0;for(ge=Se?ge:ge[Symbol.iterator]();;){var Ce;if(Se){if(we>=ge.length)break;Ce=ge[we++]}else{if((we=ge.next()).done)break;Ce=we.value}var Pe=Ce;if(W[0]===Pe)return 1===W.length?{match:!0,matchedChars:W}:G?{overflow:!0}:{match:!0,matchedChars:[Pe]}}return;default:throw new Error("Unsupported instruction tree: ".concat(V))}}var zt=new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])"),Yt=/[\(\)\[\]\?\:\|]/,Gt=function(){function PatternParser(){AsYouTypeFormatter_PatternMatcher_classCallCheck(this,PatternParser)}return AsYouTypeFormatter_PatternMatcher_createClass(PatternParser,[{key:"parse",value:function parse(W){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(W),1!==this.context.length)throw new Error("Non-finalized contexts left when pattern parse ended");var V=this.context[0],G=V.branches,ie=V.instructions;if(G)return[{op:"|",args:G.concat([ie])}];if(0===ie.length)throw new Error("Pattern is required");return ie}},{key:"startContext",value:function startContext(W){this.context.push(W)}},{key:"endContext",value:function endContext(){this.context.pop()}},{key:"getContext",value:function getContext(){return this.context[this.context.length-1]}},{key:"parsePattern",value:function parsePattern(W){if(!W)throw new Error("Pattern is required");var V=W.match(zt);if(V){var G=V[1],ie=W.slice(0,V.index),oe=W.slice(V.index+G.length);switch(G){case"(?:":ie&&this.parsePattern(ie),this.startContext({or:!0,instructions:[],branches:[]});break;case")":if(!this.getContext().or)throw new Error('")" operator must be preceded by "(?:" operator');if(ie&&this.parsePattern(ie),0===this.getContext().instructions.length)throw new Error('No instructions found after "|" operator in an "or" group');var ue=this.getContext().branches;ue.push(this.getContext().instructions),this.endContext(),this.getContext().instructions.push({op:"|",args:ue});break;case"|":if(!this.getContext().or)throw new Error('"|" operator can only be used inside "or" groups');if(ie&&this.parsePattern(ie),!this.getContext().branches){if(1!==this.context.length)throw new Error('"branches" not found in an "or" group context');this.getContext().branches=[]}this.getContext().branches.push(this.getContext().instructions),this.getContext().instructions=[];break;case"[":ie&&this.parsePattern(ie),this.startContext({oneOfSet:!0});break;case"]":if(!this.getContext().oneOfSet)throw new Error('"]" operator must be preceded by "[" operator');this.endContext(),this.getContext().instructions.push({op:"[]",args:parseOneOfSet(ie)});break;default:throw new Error("Unknown operator: ".concat(G))}oe&&this.parsePattern(oe)}else{if(Yt.test(W))throw new Error("Illegal characters found in a pattern: ".concat(W));this.getContext().instructions=this.getContext().instructions.concat(W.split(""))}}}]),PatternParser}();function parseOneOfSet(W){for(var V=[],G=0;G=ie.length)break;ae=ie[ue++]}else{if((ue=ie.next()).done)break;ae=ue.value}var format=ae,se=formatCompleteNumber(V,format,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function shouldTryNationalPrefixFormattingRule(W){return G.shouldTryNationalPrefixFormattingRule(W,{international:V.international,nationalPrefix:V.nationalPrefix})},getSeparatorAfterNationalPrefix:this.getSeparatorAfterNationalPrefix});if(se)return this.resetFormat(),this.chosenFormat=format,this.setNationalNumberTemplate(se.replace(/\d/g,Vt),V),this.populatedNationalNumberTemplate=se,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(Vt),se}}return this.formatNationalNumberWithNextDigits(W,V)}},{key:"formatNationalNumberWithNextDigits",value:function formatNationalNumberWithNextDigits(W,V){var G=this.chosenFormat,ie=this.chooseFormat(V);if(ie)return ie===G?this.formatNextNationalNumberDigits(W):this.formatNextNationalNumberDigits(V.getNationalDigits())}},{key:"narrowDownMatchingFormats",value:function narrowDownMatchingFormats(W){var V=this,G=W.nationalSignificantNumber,ie=W.nationalPrefix,oe=W.international,ue=G,ae=ue.length-3;ae<0&&(ae=0),this.matchingFormats=this.matchingFormats.filter((function(W){return V.formatSuits(W,oe,ie)&&V.formatMatches(W,ue,ae)})),this.chosenFormat&&-1===this.matchingFormats.indexOf(this.chosenFormat)&&this.resetFormat()}},{key:"formatSuits",value:function formatSuits(W,V,G){return!(G&&!W.usesNationalPrefix()&&!W.nationalPrefixIsOptionalWhenFormattingInNationalFormat())&&!(!V&&!G&&W.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:"formatMatches",value:function formatMatches(W,V,G){var ie=W.leadingDigitsPatterns().length;if(0===ie)return!0;G=Math.min(G,ie-1);var oe=W.leadingDigitsPatterns()[G];if(V.length<3)try{return void 0!==new qt(oe).match(V,{allowOverflow:!0})}catch(W){return console.error(W),!0}return new RegExp("^(".concat(oe,")")).test(V)}},{key:"getFormatFormat",value:function getFormatFormat(W,V){return V?W.internationalFormat():W.format()}},{key:"chooseFormat",value:function chooseFormat(W){var V=this,G=function _loop2(){if(oe){if(ue>=ie.length)return"break";ae=ie[ue++]}else{if((ue=ie.next()).done)return"break";ae=ue.value}var G=ae;return V.chosenFormat===G?"break":Xt.test(V.getFormatFormat(G,W.international))?V.createTemplateForFormat(G,W)?(V.chosenFormat=G,"break"):(V.matchingFormats=V.matchingFormats.filter((function(W){return W!==G})),"continue"):"continue"};var ie=this.matchingFormats.slice(),oe=Array.isArray(ie),ue=0;e:for(ie=oe?ie:ie[Symbol.iterator]();;){var ae;switch(G()){case"break":break e;case"continue":continue}}return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"createTemplateForFormat",value:function createTemplateForFormat(W,V){if(!(W.pattern().indexOf("|")>=0)){var G=this.getTemplateForFormat(W,V);return G?(this.setNationalNumberTemplate(G,V),!0):void 0}}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function getInternationalPrefixBeforeCountryCallingCode(W,V){var G=W.IDDPrefix,ie=W.missingPlus;return G?V&&!1===V.spacing?G:G+" ":ie?"":"+"}},{key:"getTemplate",value:function getTemplate(W){if(this.template){for(var V=-1,G=0,ie=W.international?this.getInternationalPrefixBeforeCountryCallingCode(W,{spacing:!1}):"";Gse.length)){var de=new RegExp("^"+ae+"$"),le=G.replace(/\d/g,"9");de.test(le)&&(se=le);var pe,he=this.getFormatFormat(W,ie);if(this.shouldTryNationalPrefixFormattingRule(W,{international:ie,nationalPrefix:oe})){var ve=he.replace(Ue,W.nationalPrefixFormattingRule());if(parseDigits(W.nationalPrefixFormattingRule())===(oe||"")+parseDigits("$1")&&(he=ve,pe=!0,oe))for(var ge=oe.length;ge>0;)he=he.replace(/\d/,Vt),ge--}var Se=se.replace(new RegExp(ae),he).replace(new RegExp("9","g"),Vt);return pe||(ue?Se=repeat(Vt,ue.length)+" "+Se:oe&&(Se=repeat(Vt,oe.length)+this.getSeparatorAfterNationalPrefix(W)+Se)),ie&&(Se=applyInternationalSeparatorStyle(Se)),Se}}},{key:"formatNextNationalNumberDigits",value:function formatNextNationalNumberDigits(W){var V=function populateTemplateWithDigits(W,V,G){var ie=G.split(""),oe=Array.isArray(ie),ue=0;for(ie=oe?ie:ie[Symbol.iterator]();;){var ae;if(oe){if(ue>=ie.length)break;ae=ie[ue++]}else{if((ue=ie.next()).done)break;ae=ue.value}var se=ae;if(W.slice(V+1).search(Ut)<0)return;V=W.search(Ut),W=W.replace(Ut,se)}return[W,V]}(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,W);if(V)return this.populatedNationalNumberTemplate=V[0],this.populatedNationalNumberTemplatePosition=V[1],cutAndStripNonPairedParens(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1);this.resetFormat()}}]),AsYouTypeFormatter}();function AsYouTypeParser_slicedToArray(W,V){return function AsYouTypeParser_arrayWithHoles(W){if(Array.isArray(W))return W}(W)||function AsYouTypeParser_iterableToArrayLimit(W,V){var G=[],ie=!0,oe=!1,ue=void 0;try{for(var ae,se=W[Symbol.iterator]();!(ie=(ae=se.next()).done)&&(G.push(ae.value),!V||G.length!==V);ie=!0);}catch(W){oe=!0,ue=W}finally{try{ie||null==se.return||se.return()}finally{if(oe)throw ue}}return G}(W,V)||function AsYouTypeParser_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function AsYouTypeParser_defineProperties(W,V){for(var G=0;G=3;if(V.appendDigits(W),ie&&this.extractIddPrefix(V),this.isWaitingForCountryCallingCode(V)){if(!this.extractCountryCallingCode(V))return}else V.appendNationalSignificantNumberDigits(W);V.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(V.getNationalDigits(),V.update)}},{key:"isWaitingForCountryCallingCode",value:function isWaitingForCountryCallingCode(W){var V=W.international,G=W.callingCode;return V&&!G}},{key:"extractCountryCallingCode",value:function extractCountryCallingCode(W){var V=extractCountryCallingCode_extractCountryCallingCode("+"+W.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),G=V.countryCallingCode,ie=V.number;if(G)return W.setCallingCode(G),W.update({nationalSignificantNumber:ie}),!0}},{key:"reset",value:function reset(W){if(W){this.hasSelectedNumberingPlan=!0;var V=W._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=V&&tr.test(V)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function extractNationalSignificantNumber(W,V){if(this.hasSelectedNumberingPlan){var G=extractNationalNumberFromPossiblyIncompleteNumber(W,this.metadata),ie=G.nationalPrefix,oe=G.nationalNumber,ue=G.carrierCode;if(oe!==W)return this.onExtractedNationalNumber(ie,ue,oe,W,V),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function extractAnotherNationalSignificantNumber(W,V,G){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(W,G);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var ie=extractNationalNumberFromPossiblyIncompleteNumber(W,this.metadata),oe=ie.nationalPrefix,ue=ie.nationalNumber,ae=ie.carrierCode;if(ue!==V)return this.onExtractedNationalNumber(oe,ae,ue,W,G),!0}}},{key:"onExtractedNationalNumber",value:function onExtractedNationalNumber(W,V,G,ie,oe){var ue,ae,se=ie.lastIndexOf(G);if(se>=0&&se===ie.length-G.length){ae=!0;var de=ie.slice(0,se);de!==W&&(ue=de)}oe({nationalPrefix:W,carrierCode:V,nationalSignificantNumber:G,nationalSignificantNumberMatchesInput:ae,complexPrefixBeforeNationalSignificantNumber:ue}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function reExtractNationalSignificantNumber(W){return!!this.extractAnotherNationalSignificantNumber(W.getNationalDigits(),W.nationalSignificantNumber,W.update)||(this.extractIddPrefix(W)||this.fixMissingPlus(W)?(this.extractCallingCodeAndNationalSignificantNumber(W),!0):void 0)}},{key:"extractIddPrefix",value:function extractIddPrefix(W){var V=W.international,G=W.IDDPrefix,ie=W.digits;W.nationalSignificantNumber;if(!V&&!G){var oe=stripIddPrefix(ie,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);return void 0!==oe&&oe!==ie?(W.update({IDDPrefix:ie.slice(0,ie.length-oe.length)}),this.startInternationalNumber(W),!0):void 0}}},{key:"fixMissingPlus",value:function fixMissingPlus(W){if(!W.international){var V=extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(W.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),G=V.countryCallingCode;V.number;if(G)return W.update({missingPlus:!0}),this.startInternationalNumber(W),!0}}},{key:"startInternationalNumber",value:function startInternationalNumber(W){W.startInternationalNumber(),W.nationalSignificantNumber&&(W.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function extractCallingCodeAndNationalSignificantNumber(W){this.extractCountryCallingCode(W)&&this.extractNationalSignificantNumber(W.getNationalDigits(),W.update)}}]),AsYouTypeParser}();function AsYouType_typeof(W){return(AsYouType_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(W){return typeof W}:function _typeof(W){return W&&"function"==typeof Symbol&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W})(W)}function AsYouType_slicedToArray(W,V){return function AsYouType_arrayWithHoles(W){if(Array.isArray(W))return W}(W)||function AsYouType_iterableToArrayLimit(W,V){var G=[],ie=!0,oe=!1,ue=void 0;try{for(var ae,se=W[Symbol.iterator]();!(ie=(ae=se.next()).done)&&(G.push(ae.value),!V||G.length!==V);ie=!0);}catch(W){oe=!0,ue=W}finally{try{ie||null==se.return||se.return()}finally{if(oe)throw ue}}return G}(W,V)||function AsYouType_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function AsYouType_defineProperties(W,V){for(var G=0;G1}},{key:"determineTheCountry",value:function determineTheCountry(){this.state.setCountry(getCountryByCallingCode(this.isInternational()?this.state.callingCode:this.defaultCallingCode,this.state.nationalSignificantNumber,this.metadata))}},{key:"getNumberValue",value:function getNumberValue(){var W=this.state,V=W.digits,G=W.callingCode,ie=W.country,oe=W.nationalSignificantNumber;if(V)return this.isInternational()?G?"+"+G+oe:"+"+V:ie||G?"+"+(ie?this.metadata.countryCallingCode():G)+oe:void 0}},{key:"getNumber",value:function getNumber(){var W=this.state,V=W.nationalSignificantNumber,G=W.carrierCode,ie=W.callingCode,oe=this._getCountry();if(V&&(oe||ie)){var ue=new Ke(oe||ie,V,this.metadata.metadata);return G&&(ue.carrierCode=G),ue}}},{key:"isPossible",value:function isPossible(){var W=this.getNumber();return!!W&&W.isPossible()}},{key:"isValid",value:function isValid(){var W=this.getNumber();return!!W&&W.isValid()}},{key:"getNationalNumber",value:function getNationalNumber(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function getChars(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function getTemplate(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}]),AsYouType}();function exports_AsYouType_AsYouType(W){return nr.call(this,W,oe)}function isSupportedCountry_isSupportedCountry(){return withMetadata(isSupportedCountry,arguments)}function getCountries(W){return new de(W).getCountries()}function getCountries_getCountries(){return withMetadata(getCountries,arguments)}function getCountryCallingCode_getCountryCallingCode(){return withMetadata(getCountryCallingCode,arguments)}function getExtPrefix_getExtPrefix(){return withMetadata(getExtPrefix,arguments)}function Metadata_Metadata(){return de.call(this,oe)}function getExampleNumber(W,V,G){if(V[W])return new Ke(W,V[W],G)}function getExampleNumber_getExampleNumber(){return withMetadata(getExampleNumber,arguments)}function formatIncompletePhoneNumber(W,V,G){return G||(G=V,V=void 0),new nr(V,G).input(W)}function formatIncompletePhoneNumber_formatIncompletePhoneNumber(){return withMetadata(formatIncompletePhoneNumber,arguments)}exports_AsYouType_AsYouType.prototype=Object.create(nr.prototype,{}),exports_AsYouType_AsYouType.prototype.constructor=exports_AsYouType_AsYouType,Metadata_Metadata.prototype=Object.create(de.prototype,{}),Metadata_Metadata.prototype.constructor=Metadata_Metadata},function(W,V,G){"use strict";G.r(V),G.d(V,"Observable",(function(){return ie.a})),G.d(V,"ConnectableObservable",(function(){return oe.a})),G.d(V,"GroupedObservable",(function(){return ue.a})),G.d(V,"observable",(function(){return ae.a})),G.d(V,"Subject",(function(){return se.a})),G.d(V,"BehaviorSubject",(function(){return de.a})),G.d(V,"ReplaySubject",(function(){return le.a})),G.d(V,"AsyncSubject",(function(){return pe.a})),G.d(V,"asap",(function(){return he.a})),G.d(V,"asapScheduler",(function(){return he.b})),G.d(V,"async",(function(){return ve.a})),G.d(V,"asyncScheduler",(function(){return ve.b})),G.d(V,"queue",(function(){return ge.a})),G.d(V,"queueScheduler",(function(){return ge.b})),G.d(V,"animationFrame",(function(){return Fe})),G.d(V,"animationFrameScheduler",(function(){return Ie})),G.d(V,"VirtualTimeScheduler",(function(){return Re})),G.d(V,"VirtualAction",(function(){return Le})),G.d(V,"Scheduler",(function(){return De.a})),G.d(V,"Subscription",(function(){return Ue.a})),G.d(V,"Subscriber",(function(){return ze.a})),G.d(V,"Notification",(function(){return He.a})),G.d(V,"NotificationKind",(function(){return He.b})),G.d(V,"pipe",(function(){return Ke.a})),G.d(V,"noop",(function(){return Ze.a})),G.d(V,"identity",(function(){return Qe.a})),G.d(V,"isObservable",(function(){return isObservable})),G.d(V,"ArgumentOutOfRangeError",(function(){return et.a})),G.d(V,"EmptyError",(function(){return tt.a})),G.d(V,"ObjectUnsubscribedError",(function(){return rt.a})),G.d(V,"UnsubscriptionError",(function(){return nt.a})),G.d(V,"TimeoutError",(function(){return it.a})),G.d(V,"bindCallback",(function(){return bindCallback})),G.d(V,"bindNodeCallback",(function(){return bindNodeCallback})),G.d(V,"combineLatest",(function(){return ct.b})),G.d(V,"concat",(function(){return dt.a})),G.d(V,"defer",(function(){return lt.a})),G.d(V,"empty",(function(){return ft.b})),G.d(V,"forkJoin",(function(){return forkJoin})),G.d(V,"from",(function(){return ht.a})),G.d(V,"fromEvent",(function(){return fromEvent})),G.d(V,"fromEventPattern",(function(){return fromEventPattern})),G.d(V,"generate",(function(){return generate})),G.d(V,"iif",(function(){return iif})),G.d(V,"interval",(function(){return interval})),G.d(V,"merge",(function(){return vt.a})),G.d(V,"never",(function(){return never})),G.d(V,"of",(function(){return gt.a})),G.d(V,"onErrorResumeNext",(function(){return onErrorResumeNext})),G.d(V,"pairs",(function(){return pairs})),G.d(V,"partition",(function(){return partition})),G.d(V,"race",(function(){return $t.a})),G.d(V,"range",(function(){return range})),G.d(V,"throwError",(function(){return Ot.a})),G.d(V,"timer",(function(){return xt.a})),G.d(V,"using",(function(){return using})),G.d(V,"zip",(function(){return Et.b})),G.d(V,"scheduled",(function(){return Ct.a})),G.d(V,"EMPTY",(function(){return ft.a})),G.d(V,"NEVER",(function(){return mt})),G.d(V,"config",(function(){return Pt.a}));var ie=G(4),oe=G(80),ue=G(77),ae=G(26),se=G(7),de=G(81),le=G(57),pe=G(35),he=G(50),ve=G(8),ge=G(70),Se=G(1),we=G(36),Ce=function(W){function AnimationFrameAction(V,G){var ie=W.call(this,V,G)||this;return ie.scheduler=V,ie.work=G,ie}return Se.__extends(AnimationFrameAction,W),AnimationFrameAction.prototype.requestAsyncId=function(V,G,ie){return void 0===ie&&(ie=0),null!==ie&&ie>0?W.prototype.requestAsyncId.call(this,V,G,ie):(V.actions.push(this),V.scheduled||(V.scheduled=requestAnimationFrame((function(){return V.flush(null)}))))},AnimationFrameAction.prototype.recycleAsyncId=function(V,G,ie){if(void 0===ie&&(ie=0),null!==ie&&ie>0||null===ie&&this.delay>0)return W.prototype.recycleAsyncId.call(this,V,G,ie);0===V.actions.length&&(cancelAnimationFrame(G),V.scheduled=void 0)},AnimationFrameAction}(we.a),Pe=G(34),Ie=new(function(W){function AnimationFrameScheduler(){return null!==W&&W.apply(this,arguments)||this}return Se.__extends(AnimationFrameScheduler,W),AnimationFrameScheduler.prototype.flush=function(W){this.active=!0,this.scheduled=void 0;var V,G=this.actions,ie=-1,oe=G.length;W=W||G.shift();do{if(V=W.execute(W.state,W.delay))break}while(++ieV.index?1:-1:W.delay>V.delay?1:-1},VirtualAction}(we.a),De=G(71),Ue=G(6),ze=G(2),He=G(23),Ke=G(49),Ze=G(25),Qe=G(20);function isObservable(W){return!!W&&(W instanceof ie.a||"function"==typeof W.lift&&"function"==typeof W.subscribe)}var et=G(28),tt=G(31),rt=G(27),nt=G(52),it=G(83),ot=G(10),ut=G(64),at=G(9),st=G(11);function bindCallback(W,V,G){if(V){if(!Object(st.a)(V))return function(){for(var ie=[],oe=0;oe1?ie.next(Array.prototype.slice.call(arguments)):ie.next(W)}),ie,G)}))}function fromEventPattern(W,V,G){return G?fromEventPattern(W,V).pipe(Object(ot.a)((function(W){return Object(at.a)(W)?G.apply(void 0,W):G(W)}))):new ie.a((function(G){var ie,handler=function(){for(var W=[],V=0;V=V){ie.complete();break}if(ie.next(ue++),ie.closed)break}}))}function range_dispatch(W){var V=W.start,G=W.index,ie=W.count,oe=W.subscriber;G>=ie?oe.complete():(oe.next(V),oe.closed||(W.index=G+1,W.start=V+1,this.schedule(W)))}var Ot=G(58),xt=G(87);function using(W,V){return new ie.a((function(G){var ie,oe;try{ie=W()}catch(W){return void G.error(W)}try{oe=V(ie)}catch(W){return void G.error(W)}var ue=(oe?Object(ht.a)(oe):ft.a).subscribe(G);return function(){ue.unsubscribe(),ie&&ie.unsubscribe()}}))}var Et=G(62),Ct=G(88),Pt=G(19)}]); +!function(W){var V={};function __webpack_require__(G){if(V[G])return V[G].exports;var ie=V[G]={i:G,l:!1,exports:{}};return W[G].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}__webpack_require__.m=W,__webpack_require__.c=V,__webpack_require__.d=function(W,V,G){__webpack_require__.o(W,V)||Object.defineProperty(W,V,{enumerable:!0,get:G})},__webpack_require__.r=function(W){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(W,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(W,"__esModule",{value:!0})},__webpack_require__.t=function(W,V){if(1&V&&(W=__webpack_require__(W)),8&V)return W;if(4&V&&"object"==typeof W&&W&&W.__esModule)return W;var G=Object.create(null);if(__webpack_require__.r(G),Object.defineProperty(G,"default",{enumerable:!0,value:W}),2&V&&"string"!=typeof W)for(var ie in W)__webpack_require__.d(G,ie,function(V){return W[V]}.bind(null,ie));return G},__webpack_require__.n=function(W){var V=W&&W.__esModule?function getDefault(){return W.default}:function getModuleExports(){return W};return __webpack_require__.d(V,"a",V),V},__webpack_require__.o=function(W,V){return Object.prototype.hasOwnProperty.call(W,V)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=136)}([function(W,V,G){"use strict";var ie=function _interopRequireDefault(W){return W&&W.__esModule?W:{default:W}}(G(46));W.exports=(0,ie.default)("vendor")().React},function(W,V,G){"use strict";G.r(V),G.d(V,"__extends",(function(){return __extends})),G.d(V,"__assign",(function(){return __assign})),G.d(V,"__rest",(function(){return __rest})),G.d(V,"__decorate",(function(){return __decorate})),G.d(V,"__param",(function(){return __param})),G.d(V,"__metadata",(function(){return __metadata})),G.d(V,"__awaiter",(function(){return __awaiter})),G.d(V,"__generator",(function(){return __generator})),G.d(V,"__createBinding",(function(){return __createBinding})),G.d(V,"__exportStar",(function(){return __exportStar})),G.d(V,"__values",(function(){return __values})),G.d(V,"__read",(function(){return __read})),G.d(V,"__spread",(function(){return __spread})),G.d(V,"__spreadArrays",(function(){return __spreadArrays})),G.d(V,"__await",(function(){return __await})),G.d(V,"__asyncGenerator",(function(){return __asyncGenerator})),G.d(V,"__asyncDelegator",(function(){return __asyncDelegator})),G.d(V,"__asyncValues",(function(){return __asyncValues})),G.d(V,"__makeTemplateObject",(function(){return __makeTemplateObject})),G.d(V,"__importStar",(function(){return __importStar})),G.d(V,"__importDefault",(function(){return __importDefault})),G.d(V,"__classPrivateFieldGet",(function(){return __classPrivateFieldGet})),G.d(V,"__classPrivateFieldSet",(function(){return __classPrivateFieldSet}));var extendStatics=function(W,V){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,V){W.__proto__=V}||function(W,V){for(var G in V)V.hasOwnProperty(G)&&(W[G]=V[G])})(W,V)};function __extends(W,V){function __(){this.constructor=W}extendStatics(W,V),W.prototype=null===V?Object.create(V):(__.prototype=V.prototype,new __)}var __assign=function(){return(__assign=Object.assign||function __assign(W){for(var V,G=1,ie=arguments.length;G=0;se--)(oe=W[se])&&(ae=(ue<3?oe(ae):ue>3?oe(V,G,ae):oe(V,G))||ae);return ue>3&&ae&&Object.defineProperty(V,G,ae),ae}function __param(W,V){return function(G,ie){V(G,ie,W)}}function __metadata(W,V){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(W,V)}function __awaiter(W,V,G,ie){return new(G||(G=Promise))((function(oe,ue){function fulfilled(W){try{step(ie.next(W))}catch(W){ue(W)}}function rejected(W){try{step(ie.throw(W))}catch(W){ue(W)}}function step(W){W.done?oe(W.value):function adopt(W){return W instanceof G?W:new G((function(V){V(W)}))}(W.value).then(fulfilled,rejected)}step((ie=ie.apply(W,V||[])).next())}))}function __generator(W,V){var G,ie,oe,ue,ae={label:0,sent:function(){if(1&oe[0])throw oe[1];return oe[1]},trys:[],ops:[]};return ue={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ue[Symbol.iterator]=function(){return this}),ue;function verb(ue){return function(se){return function step(ue){if(G)throw new TypeError("Generator is already executing.");for(;ae;)try{if(G=1,ie&&(oe=2&ue[0]?ie.return:ue[0]?ie.throw||((oe=ie.return)&&oe.call(ie),0):ie.next)&&!(oe=oe.call(ie,ue[1])).done)return oe;switch(ie=0,oe&&(ue=[2&ue[0],oe.value]),ue[0]){case 0:case 1:oe=ue;break;case 4:return ae.label++,{value:ue[1],done:!1};case 5:ae.label++,ie=ue[1],ue=[0];continue;case 7:ue=ae.ops.pop(),ae.trys.pop();continue;default:if(!(oe=ae.trys,(oe=oe.length>0&&oe[oe.length-1])||6!==ue[0]&&2!==ue[0])){ae=0;continue}if(3===ue[0]&&(!oe||ue[1]>oe[0]&&ue[1]=W.length&&(W=void 0),{value:W&&W[ie++],done:!W}}};throw new TypeError(V?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(W,V){var G="function"==typeof Symbol&&W[Symbol.iterator];if(!G)return W;var ie,oe,ue=G.call(W),ae=[];try{for(;(void 0===V||V-- >0)&&!(ie=ue.next()).done;)ae.push(ie.value)}catch(W){oe={error:W}}finally{try{ie&&!ie.done&&(G=ue.return)&&G.call(ue)}finally{if(oe)throw oe.error}}return ae}function __spread(){for(var W=[],V=0;V1||resume(W,V)}))})}function resume(W,V){try{!function step(W){W.value instanceof __await?Promise.resolve(W.value.v).then(fulfill,reject):settle(ue[0][2],W)}(oe[W](V))}catch(W){settle(ue[0][3],W)}}function fulfill(W){resume("next",W)}function reject(W){resume("throw",W)}function settle(W,V){W(V),ue.shift(),ue.length&&resume(ue[0][0],ue[0][1])}}function __asyncDelegator(W){var V,G;return V={},verb("next"),verb("throw",(function(W){throw W})),verb("return"),V[Symbol.iterator]=function(){return this},V;function verb(ie,oe){V[ie]=W[ie]?function(V){return(G=!G)?{value:__await(W[ie](V)),done:"return"===ie}:oe?oe(V):V}:oe}}function __asyncValues(W){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var V,G=W[Symbol.asyncIterator];return G?G.call(W):(W=__values(W),V={},verb("next"),verb("throw"),verb("return"),V[Symbol.asyncIterator]=function(){return this},V);function verb(G){V[G]=W[G]&&function(V){return new Promise((function(ie,oe){(function settle(W,V,G,ie){Promise.resolve(ie).then((function(V){W({value:V,done:G})}),V)})(ie,oe,(V=W[G](V)).done,V.value)}))}}}function __makeTemplateObject(W,V){return Object.defineProperty?Object.defineProperty(W,"raw",{value:V}):W.raw=V,W}function __importStar(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)Object.hasOwnProperty.call(W,G)&&(V[G]=W[G]);return V.default=W,V}function __importDefault(W){return W&&W.__esModule?W:{default:W}}function __classPrivateFieldGet(W,V){if(!V.has(W))throw new TypeError("attempted to get private field on non-instance");return V.get(W)}function __classPrivateFieldSet(W,V,G){if(!V.has(W))throw new TypeError("attempted to set private field on non-instance");return V.set(W,G),G}},function(W,V,G){"use strict";G.d(V,"a",(function(){return pe}));var ie=G(1),oe=G(29),ue=G(66),ae=G(6),se=G(51),de=G(19),le=G(41),pe=function(W){function Subscriber(V,G,ie){var oe=W.call(this)||this;switch(oe.syncErrorValue=null,oe.syncErrorThrown=!1,oe.syncErrorThrowable=!1,oe.isStopped=!1,arguments.length){case 0:oe.destination=ue.a;break;case 1:if(!V){oe.destination=ue.a;break}if("object"==typeof V){V instanceof Subscriber?(oe.syncErrorThrowable=V.syncErrorThrowable,oe.destination=V,V.add(oe)):(oe.syncErrorThrowable=!0,oe.destination=new he(oe,V));break}default:oe.syncErrorThrowable=!0,oe.destination=new he(oe,V,G,ie)}return oe}return ie.__extends(Subscriber,W),Subscriber.prototype[se.a]=function(){return this},Subscriber.create=function(W,V,G){var ie=new Subscriber(W,V,G);return ie.syncErrorThrowable=!1,ie},Subscriber.prototype.next=function(W){this.isStopped||this._next(W)},Subscriber.prototype.error=function(W){this.isStopped||(this.isStopped=!0,this._error(W))},Subscriber.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},Subscriber.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,W.prototype.unsubscribe.call(this))},Subscriber.prototype._next=function(W){this.destination.next(W)},Subscriber.prototype._error=function(W){this.destination.error(W),this.unsubscribe()},Subscriber.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},Subscriber.prototype._unsubscribeAndRecycle=function(){var W=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=W,this},Subscriber}(ae.a),he=function(W){function SafeSubscriber(V,G,ie,ae){var se,de=W.call(this)||this;de._parentSubscriber=V;var le=de;return Object(oe.a)(G)?se=G:G&&(se=G.next,ie=G.error,ae=G.complete,G!==ue.a&&(le=Object.create(G),Object(oe.a)(le.unsubscribe)&&de.add(le.unsubscribe.bind(le)),le.unsubscribe=de.unsubscribe.bind(de))),de._context=le,de._next=se,de._error=ie,de._complete=ae,de}return ie.__extends(SafeSubscriber,W),SafeSubscriber.prototype.next=function(W){if(!this.isStopped&&this._next){var V=this._parentSubscriber;de.a.useDeprecatedSynchronousErrorHandling&&V.syncErrorThrowable?this.__tryOrSetError(V,this._next,W)&&this.unsubscribe():this.__tryOrUnsub(this._next,W)}},SafeSubscriber.prototype.error=function(W){if(!this.isStopped){var V=this._parentSubscriber,G=de.a.useDeprecatedSynchronousErrorHandling;if(this._error)G&&V.syncErrorThrowable?(this.__tryOrSetError(V,this._error,W),this.unsubscribe()):(this.__tryOrUnsub(this._error,W),this.unsubscribe());else if(V.syncErrorThrowable)G?(V.syncErrorValue=W,V.syncErrorThrown=!0):Object(le.a)(W),this.unsubscribe();else{if(this.unsubscribe(),G)throw W;Object(le.a)(W)}}},SafeSubscriber.prototype.complete=function(){var W=this;if(!this.isStopped){var V=this._parentSubscriber;if(this._complete){var wrappedComplete=function(){return W._complete.call(W._context)};de.a.useDeprecatedSynchronousErrorHandling&&V.syncErrorThrowable?(this.__tryOrSetError(V,wrappedComplete),this.unsubscribe()):(this.__tryOrUnsub(wrappedComplete),this.unsubscribe())}else this.unsubscribe()}},SafeSubscriber.prototype.__tryOrUnsub=function(W,V){try{W.call(this._context,V)}catch(W){if(this.unsubscribe(),de.a.useDeprecatedSynchronousErrorHandling)throw W;Object(le.a)(W)}},SafeSubscriber.prototype.__tryOrSetError=function(W,V,G){if(!de.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{V.call(this._context,G)}catch(V){return de.a.useDeprecatedSynchronousErrorHandling?(W.syncErrorValue=V,W.syncErrorThrown=!0,!0):(Object(le.a)(V),!0)}return!1},SafeSubscriber.prototype._unsubscribe=function(){var W=this._parentSubscriber;this._context=null,this._parentSubscriber=null,W.unsubscribe()},SafeSubscriber}(pe)},function(W,V,G){"use strict";G.d(V,"a",(function(){return se})),G.d(V,"b",(function(){return de})),G.d(V,"c",(function(){return innerSubscribe}));var ie=G(1),oe=G(2),ue=G(4),ae=G(40),se=function(W){function SimpleInnerSubscriber(V){var G=W.call(this)||this;return G.parent=V,G}return ie.__extends(SimpleInnerSubscriber,W),SimpleInnerSubscriber.prototype._next=function(W){this.parent.notifyNext(W)},SimpleInnerSubscriber.prototype._error=function(W){this.parent.notifyError(W),this.unsubscribe()},SimpleInnerSubscriber.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},SimpleInnerSubscriber}(oe.a),de=(oe.a,function(W){function SimpleOuterSubscriber(){return null!==W&&W.apply(this,arguments)||this}return ie.__extends(SimpleOuterSubscriber,W),SimpleOuterSubscriber.prototype.notifyNext=function(W){this.destination.next(W)},SimpleOuterSubscriber.prototype.notifyError=function(W){this.destination.error(W)},SimpleOuterSubscriber.prototype.notifyComplete=function(){this.destination.complete()},SimpleOuterSubscriber}(oe.a));oe.a;function innerSubscribe(W,V){if(!V.closed){if(W instanceof ue.a)return W.subscribe(V);var G;try{G=Object(ae.a)(W)(V)}catch(W){V.error(W)}return G}}},function(W,V,G){"use strict";G.d(V,"a",(function(){return pe}));var ie=G(64),oe=G(2),ue=G(51),ae=G(66);var se=G(26),de=G(49),le=G(19),pe=function(){function Observable(W){this._isScalar=!1,W&&(this._subscribe=W)}return Observable.prototype.lift=function(W){var V=new Observable;return V.source=this,V.operator=W,V},Observable.prototype.subscribe=function(W,V,G){var ie=this.operator,se=function toSubscriber(W,V,G){if(W){if(W instanceof oe.a)return W;if(W[ue.a])return W[ue.a]()}return W||V||G?new oe.a(W,V,G):new oe.a(ae.a)}(W,V,G);if(ie?se.add(ie.call(se,this.source)):se.add(this.source||le.a.useDeprecatedSynchronousErrorHandling&&!se.syncErrorThrowable?this._subscribe(se):this._trySubscribe(se)),le.a.useDeprecatedSynchronousErrorHandling&&se.syncErrorThrowable&&(se.syncErrorThrowable=!1,se.syncErrorThrown))throw se.syncErrorValue;return se},Observable.prototype._trySubscribe=function(W){try{return this._subscribe(W)}catch(V){le.a.useDeprecatedSynchronousErrorHandling&&(W.syncErrorThrown=!0,W.syncErrorValue=V),Object(ie.a)(W)?W.error(V):console.warn(V)}},Observable.prototype.forEach=function(W,V){var G=this;return new(V=getPromiseCtor(V))((function(V,ie){var oe;oe=G.subscribe((function(V){try{W(V)}catch(W){ie(W),oe&&oe.unsubscribe()}}),ie,V)}))},Observable.prototype._subscribe=function(W){var V=this.source;return V&&V.subscribe(W)},Observable.prototype[se.a]=function(){return this},Observable.prototype.pipe=function(){for(var W=[],V=0;V=0;se--)(oe=W[se])&&(ae=(ue<3?oe(ae):ue>3?oe(V,G,ae):oe(V,G))||ae);return ue>3&&ae&&Object.defineProperty(V,G,ae),ae}function __param(W,V){return function(G,ie){V(G,ie,W)}}function __metadata(W,V){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(W,V)}function __awaiter(W,V,G,ie){return new(G||(G=Promise))((function(oe,ue){function fulfilled(W){try{step(ie.next(W))}catch(W){ue(W)}}function rejected(W){try{step(ie.throw(W))}catch(W){ue(W)}}function step(W){W.done?oe(W.value):function adopt(W){return W instanceof G?W:new G((function(V){V(W)}))}(W.value).then(fulfilled,rejected)}step((ie=ie.apply(W,V||[])).next())}))}function __generator(W,V){var G,ie,oe,ue,ae={label:0,sent:function(){if(1&oe[0])throw oe[1];return oe[1]},trys:[],ops:[]};return ue={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ue[Symbol.iterator]=function(){return this}),ue;function verb(ue){return function(se){return function step(ue){if(G)throw new TypeError("Generator is already executing.");for(;ae;)try{if(G=1,ie&&(oe=2&ue[0]?ie.return:ue[0]?ie.throw||((oe=ie.return)&&oe.call(ie),0):ie.next)&&!(oe=oe.call(ie,ue[1])).done)return oe;switch(ie=0,oe&&(ue=[2&ue[0],oe.value]),ue[0]){case 0:case 1:oe=ue;break;case 4:return ae.label++,{value:ue[1],done:!1};case 5:ae.label++,ie=ue[1],ue=[0];continue;case 7:ue=ae.ops.pop(),ae.trys.pop();continue;default:if(!(oe=ae.trys,(oe=oe.length>0&&oe[oe.length-1])||6!==ue[0]&&2!==ue[0])){ae=0;continue}if(3===ue[0]&&(!oe||ue[1]>oe[0]&&ue[1]=W.length&&(W=void 0),{value:W&&W[ie++],done:!W}}};throw new TypeError(V?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(W,V){var G="function"==typeof Symbol&&W[Symbol.iterator];if(!G)return W;var ie,oe,ue=G.call(W),ae=[];try{for(;(void 0===V||V-- >0)&&!(ie=ue.next()).done;)ae.push(ie.value)}catch(W){oe={error:W}}finally{try{ie&&!ie.done&&(G=ue.return)&&G.call(ue)}finally{if(oe)throw oe.error}}return ae}function __spread(){for(var W=[],V=0;V1||resume(W,V)}))})}function resume(W,V){try{!function step(W){W.value instanceof __await?Promise.resolve(W.value.v).then(fulfill,reject):settle(ue[0][2],W)}(oe[W](V))}catch(W){settle(ue[0][3],W)}}function fulfill(W){resume("next",W)}function reject(W){resume("throw",W)}function settle(W,V){W(V),ue.shift(),ue.length&&resume(ue[0][0],ue[0][1])}}function __asyncDelegator(W){var V,G;return V={},verb("next"),verb("throw",(function(W){throw W})),verb("return"),V[Symbol.iterator]=function(){return this},V;function verb(ie,oe){V[ie]=W[ie]?function(V){return(G=!G)?{value:__await(W[ie](V)),done:"return"===ie}:oe?oe(V):V}:oe}}function __asyncValues(W){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var V,G=W[Symbol.asyncIterator];return G?G.call(W):(W=__values(W),V={},verb("next"),verb("throw"),verb("return"),V[Symbol.asyncIterator]=function(){return this},V);function verb(G){V[G]=W[G]&&function(V){return new Promise((function(ie,oe){(function settle(W,V,G,ie){Promise.resolve(ie).then((function(V){W({value:V,done:G})}),V)})(ie,oe,(V=W[G](V)).done,V.value)}))}}}function __makeTemplateObject(W,V){return Object.defineProperty?Object.defineProperty(W,"raw",{value:V}):W.raw=V,W}var oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V};function __importStar(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V}function __importDefault(W){return W&&W.__esModule?W:{default:W}}function __classPrivateFieldGet(W,V,G,ie){if("a"===G&&!ie)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof V?W!==V||!ie:!V.has(W))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===G?ie:"a"===G?ie.call(W):ie?ie.value:V.get(W)}function __classPrivateFieldSet(W,V,G,ie,oe){if("m"===ie)throw new TypeError("Private method is not writable");if("a"===ie&&!oe)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof V?W!==V||!oe:!V.has(W))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===ie?oe.call(W,G):oe?oe.value=G:V.set(W,G),G}},function(W,V,G){"use strict";G.d(V,"a",(function(){return se}));var ie=G(9),oe=G(63),ue=G(29),ae=G(52),se=function(){function Subscription(W){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,W&&(this._ctorUnsubscribe=!0,this._unsubscribe=W)}var W;return Subscription.prototype.unsubscribe=function(){var W;if(!this.closed){var V=this._parentOrParents,G=this._ctorUnsubscribe,se=this._unsubscribe,de=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,V instanceof Subscription)V.remove(this);else if(null!==V)for(var le=0;le1?V-1:0),ie=1;ie0?" Args: "+G.join(", "):""))}var Re=function(){function e(W){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=W}var W=e.prototype;return W.indexOfGroup=function(W){for(var V=0,G=0;G=this.groupSizes.length){for(var G=this.groupSizes,ie=G.length,oe=ie;W>=oe;)(oe<<=1)<0&&j(16,""+W);this.groupSizes=new Uint32Array(oe),this.groupSizes.set(G),this.length=oe;for(var ue=ie;ue=this.length||0===this.groupSizes[W])return V;for(var G=this.groupSizes[W],ie=this.indexOfGroup(W),oe=ie+G,ue=ie;ue=0;G--){var ie=V[G];if(ie&&1===ie.nodeType&&ie.hasAttribute(we))return ie}}(G),ue=void 0!==oe?oe.nextSibling:null;ie.setAttribute(we,"active"),ie.setAttribute("data-styled-version","5.3.0");var ae=q();return ae&&ie.setAttribute("nonce",ae),G.insertBefore(ie,ue),ie},Ke=function(){function e(W){var V=this.element=H(W);V.appendChild(document.createTextNode("")),this.sheet=function(W){if(W.sheet)return W.sheet;for(var V=document.styleSheets,G=0,ie=V.length;G=0){var G=document.createTextNode(V),ie=this.nodes[W];return this.element.insertBefore(G,ie||null),this.length++,!0}return!1},W.deleteRule=function(W){this.element.removeChild(this.nodes[W]),this.length--},W.getRule=function(W){return W0&&(le+=W+",")})),ie+=""+se+de+'{content:"'+le+'"}/*!sc*/\n'}}}return ie}(this)},e}(),nt=/(a)(d)/gi,Q=function(W){return String.fromCharCode(W+(W>25?39:97))};function ee(W){var V,G="";for(V=Math.abs(W);V>52;V=V/52|0)G=Q(V%52)+G;return(Q(V%52)+G).replace(nt,"$1-$2")}var te=function(W,V){for(var G=V.length;G;)W=33*W^V.charCodeAt(--G);return W},ne=function(W){return te(5381,W)};function re(W){for(var V=0;V>>0);if(!V.hasNameForId(ie,ae)){var se=G(ue,"."+ae,void 0,ie);V.insertRules(ie,ae,se)}oe.push(ae),this.staticRulesId=ae}else{for(var de=this.rules.length,le=te(this.baseHash,G.hash),pe="",he=0;he>>0);if(!V.hasNameForId(ie,we)){var Ce=G(pe,"."+we,void 0,ie);V.insertRules(ie,we,Ce)}oe.push(we)}}return oe.join(" ")},e}(),ut=/^\s*\/\/.*$/gm,at=[":","[",".","#"];function ce(W){var V,G,ie,oe,ue=void 0===W?Se:W,ae=ue.options,se=void 0===ae?Se:ae,le=ue.plugins,pe=void 0===le?ge:le,he=new de.a(se),ve=[],we=function(W){function t(V){if(V)try{W(V+"}")}catch(W){}}return function(V,G,ie,oe,ue,ae,se,de,le,pe){switch(V){case 1:if(0===le&&64===G.charCodeAt(0))return W(G+";"),"";break;case 2:if(0===de)return G+"/*|*/";break;case 3:switch(de){case 102:case 112:return W(ie[0]+G),"";default:return G+(0===pe?"/*|*/":"")}case-2:G.split("/*|*/}").forEach(t)}}}((function(W){ve.push(W)})),f=function(W,ie,ue){return 0===ie&&-1!==at.indexOf(ue[G.length])||ue.match(oe)?W:"."+V};function m(W,ue,ae,se){void 0===se&&(se="&");var de=W.replace(ut,""),le=ue&&ae?ae+" "+ue+" { "+de+" }":de;return V=se,G=ue,ie=new RegExp("\\"+G+"\\b","g"),oe=new RegExp("(\\"+G+"\\b){2,}"),he(ae||!ue?"":ue,le)}return he.use([].concat(pe,[function(W,V,oe){2===W&&oe.length&&oe[0].lastIndexOf(G)>0&&(oe[0]=oe[0].replace(ie,f))},we,function(W){if(-2===W){var V=ve;return ve=[],V}}])),m.hash=pe.length?pe.reduce((function(W,V){return V.name||j(15),te(W,V.name)}),5381).toString():"",m}var st=ue.a.createContext(),ct=st.Consumer,dt=ue.a.createContext(),lt=(dt.Consumer,new rt),ft=ce();function fe(){return Object(oe.useContext)(st)||lt}function me(){return Object(oe.useContext)(dt)||ft}function ye(W){var V=Object(oe.useState)(W.stylisPlugins),G=V[0],ie=V[1],ae=fe(),de=Object(oe.useMemo)((function(){var V=ae;return W.sheet?V=W.sheet:W.target&&(V=V.reconstructWithOptions({target:W.target},!1)),W.disableCSSOMInjection&&(V=V.reconstructWithOptions({useCSSOMInjection:!1})),V}),[W.disableCSSOMInjection,W.sheet,W.target]),le=Object(oe.useMemo)((function(){return ce({options:{prefix:!W.disableVendorPrefixes},plugins:G})}),[W.disableVendorPrefixes,G]);return Object(oe.useEffect)((function(){se()(G,W.stylisPlugins)||ie(W.stylisPlugins)}),[W.stylisPlugins]),ue.a.createElement(st.Provider,{value:de},ue.a.createElement(dt.Provider,{value:le},W.children))}var pt=function(){function e(W,V){var G=this;this.inject=function(W,V){void 0===V&&(V=ft);var ie=G.name+V.hash;W.hasNameForId(G.id,ie)||W.insertRules(G.id,ie,V(G.rules,ie,"@keyframes"))},this.toString=function(){return j(12,String(G.name))},this.name=W,this.id="sc-keyframes-"+W,this.rules=V}return e.prototype.getName=function(W){return void 0===W&&(W=ft),this.name+W.hash},e}(),ht=/([A-Z])/,bt=/([A-Z])/g,yt=/^ms-/,Ee=function(W){return"-"+W.toLowerCase()};function be(W){return ht.test(W)?W.replace(bt,Ee).replace(yt,"-ms-"):W}var _e=function(W){return null==W||!1===W||""===W};function Ne(W,V,G,ie){if(Array.isArray(W)){for(var oe,ue=[],ae=0,se=W.length;ae1?V-1:0),ie=1;ie?@[\\\]^`{|}~-]+/g,mt=/(^-|-$)/g;function je(W){return W.replace(vt,"-").replace(mt,"")}var Te=function(W){return ee(ne(W)>>>0)};function ke(W){return"string"==typeof W&&!0}var xe=function(W){return"function"==typeof W||"object"==typeof W&&null!==W&&!Array.isArray(W)},Ve=function(W){return"__proto__"!==W&&"constructor"!==W&&"prototype"!==W};function Be(W,V,G){var ie=W[G];xe(V)&&xe(ie)?Me(ie,V):W[G]=V}function Me(W){for(var V=arguments.length,G=new Array(V>1?V-1:0),ie=1;ie=0||(oe[G]=W[G]);return oe}(V,["componentId"]),ue=ie&&ie+"-"+(ke(W)?W:je(_(W)));return Ye(W,v({},oe,{attrs:Ie,componentId:ue}),G)},Object.defineProperty(Re,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(V){this._foldedDefaultProps=ie?Me({},W.defaultProps,V):V}}),Re.toString=function(){return"."+Re.styledComponentId},ae&&ve()(Re,W,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),Re}var qe=function(W){return function e(W,V,G){if(void 0===G&&(G=Se),!Object(ie.isValidElementType)(V))return j(1,String(V));var i=function(){return W(V,G,Ae.apply(void 0,arguments))};return i.withConfig=function(ie){return e(W,V,v({},G,{},ie))},i.attrs=function(ie){return e(W,V,v({},G,{attrs:Array.prototype.concat(G.attrs,ie).filter(Boolean)}))},i}(Ye,W)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(W){qe[W]=qe(W)}));var _t=function(){function e(W,V){this.rules=W,this.componentId=V,this.isStatic=re(W),rt.registerId(this.componentId+1)}var W=e.prototype;return W.createStyles=function(W,V,G,ie){var oe=ie(Ne(this.rules,V,G,ie).join(""),""),ue=this.componentId+W;G.insertRules(ue,ue,oe)},W.removeStyles=function(W,V){V.clearRules(this.componentId+W)},W.renderStyles=function(W,V,G,ie){W>2&&rt.registerId(this.componentId+W),this.removeStyles(W,G),this.createStyles(W,V,G,ie)},e}();function $e(W){for(var V=arguments.length,G=new Array(V>1?V-1:0),ie=1;ie1?V-1:0),ie=1;ie"+V+""},this.getStyleTags=function(){return W.sealed?j(2):W._emitSheetCSS()},this.getStyleElement=function(){var V;if(W.sealed)return j(2);var G=((V={})[we]="",V["data-styled-version"]="5.3.0",V.dangerouslySetInnerHTML={__html:W.instance.toString()},V),ie=q();return ie&&(G.nonce=ie),[ue.a.createElement("style",v({},G,{key:"sc-0-0"}))]},this.seal=function(){W.sealed=!0},this.instance=new rt({isServer:!0}),this.sealed=!1}var W=e.prototype;return W.collectStyles=function(W){return this.sealed?j(2):ue.a.createElement(ye,{sheet:this.instance},W)},W.interleaveWithNodeStream=function(W){return j(3)},e}(),Je=function(W){var V=ue.a.forwardRef((function(V,G){var ie=Object(oe.useContext)(gt),ae=W.defaultProps,se=Oe(V,ie,ae);return ue.a.createElement(W,v({},V,{theme:se,ref:G}))}));return ve()(V,W),V.displayName="WithTheme("+_(W)+")",V},Xe=function(){return Object(oe.useContext)(gt)},Ot={StyleSheet:rt,masterSheet:lt};V.default=qe}.call(this,G(44))},function(W,V,G){"use strict";G.d(V,"a",(function(){return subscribeToResult}));var ie=G(1),oe=function(W){function InnerSubscriber(V,G,ie){var oe=W.call(this)||this;return oe.parent=V,oe.outerValue=G,oe.outerIndex=ie,oe.index=0,oe}return ie.__extends(InnerSubscriber,W),InnerSubscriber.prototype._next=function(W){this.parent.notifyNext(this.outerValue,W,this.outerIndex,this.index++,this)},InnerSubscriber.prototype._error=function(W){this.parent.notifyError(W,this),this.unsubscribe()},InnerSubscriber.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},InnerSubscriber}(G(2).a),ue=G(40),ae=G(4);function subscribeToResult(W,V,G,ie,se){if(void 0===se&&(se=new oe(W,G,ie)),!se.closed)return V instanceof ae.a?V.subscribe(se):Object(ue.a)(V)(se)}},function(W,V,G){"use strict";G.d(V,"a",(function(){return oe}));var ie=!1,oe={Promise:void 0,set useDeprecatedSynchronousErrorHandling(W){W&&(new Error).stack;ie=W},get useDeprecatedSynchronousErrorHandling(){return ie}}},function(W,V,G){"use strict";function identity(W){return W}G.d(V,"a",(function(){return identity}))},function(W,V,G){"use strict";G.d(V,"a",(function(){return oe}));var ie=G(1),oe=function(W){function OuterSubscriber(){return null!==W&&W.apply(this,arguments)||this}return ie.__extends(OuterSubscriber,W),OuterSubscriber.prototype.notifyNext=function(W,V,G,ie,oe){this.destination.next(V)},OuterSubscriber.prototype.notifyError=function(W,V){this.destination.error(W)},OuterSubscriber.prototype.notifyComplete=function(W){this.destination.complete()},OuterSubscriber}(G(2).a)},function(W,V,G){"use strict";G.d(V,"a",(function(){return filter}));var ie=G(1),oe=G(2);function filter(W,V){return function filterOperatorFunction(G){return G.lift(new ue(W,V))}}var ue=function(){function FilterOperator(W,V){this.predicate=W,this.thisArg=V}return FilterOperator.prototype.call=function(W,V){return V.subscribe(new ae(W,this.predicate,this.thisArg))},FilterOperator}(),ae=function(W){function FilterSubscriber(V,G,ie){var oe=W.call(this,V)||this;return oe.predicate=G,oe.thisArg=ie,oe.count=0,oe}return ie.__extends(FilterSubscriber,W),FilterSubscriber.prototype._next=function(W){var V;try{V=this.predicate.call(this.thisArg,W,this.count++)}catch(W){return void this.destination.error(W)}V&&this.destination.next(W)},FilterSubscriber}(oe.a)},function(W,V,G){"use strict";G.d(V,"b",(function(){return ie})),G.d(V,"a",(function(){return se}));var ie,oe=G(13),ue=G(45),ae=G(58);ie||(ie={});var se=function(){function Notification(W,V,G){this.kind=W,this.value=V,this.error=G,this.hasValue="N"===W}return Notification.prototype.observe=function(W){switch(this.kind){case"N":return W.next&&W.next(this.value);case"E":return W.error&&W.error(this.error);case"C":return W.complete&&W.complete()}},Notification.prototype.do=function(W,V,G){switch(this.kind){case"N":return W&&W(this.value);case"E":return V&&V(this.error);case"C":return G&&G()}},Notification.prototype.accept=function(W,V,G){return W&&"function"==typeof W.next?this.observe(W):this.do(W,V,G)},Notification.prototype.toObservable=function(){switch(this.kind){case"N":return Object(ue.a)(this.value);case"E":return Object(ae.a)(this.error);case"C":return Object(oe.b)()}throw new Error("unexpected notification kind value")},Notification.createNext=function(W){return void 0!==W?new Notification("N",W):Notification.undefinedValueNotification},Notification.createError=function(W){return new Notification("E",void 0,W)},Notification.createComplete=function(){return Notification.completeNotification},Notification.completeNotification=new Notification("C"),Notification.undefinedValueNotification=new Notification("N",void 0),Notification}()},function(W,V,G){"use strict";function getSymbolIterator(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}G.d(V,"a",(function(){return ie}));var ie=getSymbolIterator()},function(W,V,G){"use strict";function noop(){}G.d(V,"a",(function(){return noop}))},function(W,V,G){"use strict";G.d(V,"a",(function(){return ie}));var ie=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},function(W,V,G){"use strict";G.d(V,"a",(function(){return ie}));var ie=function(){function ObjectUnsubscribedErrorImpl(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return ObjectUnsubscribedErrorImpl.prototype=Object.create(Error.prototype),ObjectUnsubscribedErrorImpl}()},function(W,V,G){"use strict";G.d(V,"a",(function(){return ie}));var ie=function(){function ArgumentOutOfRangeErrorImpl(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return ArgumentOutOfRangeErrorImpl.prototype=Object.create(Error.prototype),ArgumentOutOfRangeErrorImpl}()},function(W,V,G){"use strict";function isFunction(W){return"function"==typeof W}G.d(V,"a",(function(){return isFunction}))},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.useEditorTransactions=V.useEditorState=V.EditorContext=V.createEditor=V.useSortedAndFilteredLinkTypes=V.useLinkTypeForHref=V.useLinkTypes=V.makeLinkType=void 0;var ie=G(178);Object.defineProperty(V,"makeLinkType",{enumerable:!0,get:function get(){return ie.makeLinkType}}),Object.defineProperty(V,"useLinkTypes",{enumerable:!0,get:function get(){return ie.useLinkTypes}}),Object.defineProperty(V,"useLinkTypeForHref",{enumerable:!0,get:function get(){return ie.useLinkTypeForHref}}),Object.defineProperty(V,"useSortedAndFilteredLinkTypes",{enumerable:!0,get:function get(){return ie.useSortedAndFilteredLinkTypes}});var oe=G(119);Object.defineProperty(V,"createEditor",{enumerable:!0,get:function get(){return oe.createEditor}}),Object.defineProperty(V,"EditorContext",{enumerable:!0,get:function get(){return oe.EditorContext}}),Object.defineProperty(V,"useEditorState",{enumerable:!0,get:function get(){return oe.useEditorState}}),Object.defineProperty(V,"useEditorTransactions",{enumerable:!0,get:function get(){return oe.useEditorTransactions}})},function(W,V,G){"use strict";G.d(V,"a",(function(){return ie}));var ie=function(){function EmptyErrorImpl(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return EmptyErrorImpl.prototype=Object.create(Error.prototype),EmptyErrorImpl}()},function(W,V,G){"use strict";G.d(V,"b",(function(){return mergeMap})),G.d(V,"a",(function(){return le}));var ie=G(1),oe=G(10),ue=G(14),ae=G(3);function mergeMap(W,V,G){return void 0===G&&(G=Number.POSITIVE_INFINITY),"function"==typeof V?function(ie){return ie.pipe(mergeMap((function(G,ie){return Object(ue.a)(W(G,ie)).pipe(Object(oe.a)((function(W,oe){return V(G,W,ie,oe)})))}),G))}:("number"==typeof V&&(G=V),function(V){return V.lift(new se(W,G))})}var se=function(){function MergeMapOperator(W,V){void 0===V&&(V=Number.POSITIVE_INFINITY),this.project=W,this.concurrent=V}return MergeMapOperator.prototype.call=function(W,V){return V.subscribe(new de(W,this.project,this.concurrent))},MergeMapOperator}(),de=function(W){function MergeMapSubscriber(V,G,ie){void 0===ie&&(ie=Number.POSITIVE_INFINITY);var oe=W.call(this,V)||this;return oe.project=G,oe.concurrent=ie,oe.hasCompleted=!1,oe.buffer=[],oe.active=0,oe.index=0,oe}return ie.__extends(MergeMapSubscriber,W),MergeMapSubscriber.prototype._next=function(W){this.active0?this._next(W.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},MergeMapSubscriber}(ae.b),le=mergeMap},function(W,V,G){"use strict";G.d(V,"a",(function(){return fromArray}));var ie=G(4),oe=G(90),ue=G(65);function fromArray(W,V){return V?Object(ue.a)(W,V):new ie.a(Object(oe.a)(W))}},function(W,V,G){"use strict";G.d(V,"a",(function(){return ue}));var ie=G(1),oe=G(71),ue=function(W){function AsyncScheduler(V,G){void 0===G&&(G=oe.a.now);var ie=W.call(this,V,(function(){return AsyncScheduler.delegate&&AsyncScheduler.delegate!==ie?AsyncScheduler.delegate.now():G()}))||this;return ie.actions=[],ie.active=!1,ie.scheduled=void 0,ie}return ie.__extends(AsyncScheduler,W),AsyncScheduler.prototype.schedule=function(V,G,ie){return void 0===G&&(G=0),AsyncScheduler.delegate&&AsyncScheduler.delegate!==this?AsyncScheduler.delegate.schedule(V,G,ie):W.prototype.schedule.call(this,V,G,ie)},AsyncScheduler.prototype.flush=function(W){var V=this.actions;if(this.active)V.push(W);else{var G;this.active=!0;do{if(G=W.execute(W.state,W.delay))break}while(W=V.shift());if(this.active=!1,G){for(;W=V.shift();)W.unsubscribe();throw G}}},AsyncScheduler}(oe.a)},function(W,V,G){"use strict";G.d(V,"a",(function(){return ae}));var ie=G(1),oe=G(7),ue=G(6),ae=function(W){function AsyncSubject(){var V=null!==W&&W.apply(this,arguments)||this;return V.value=null,V.hasNext=!1,V.hasCompleted=!1,V}return ie.__extends(AsyncSubject,W),AsyncSubject.prototype._subscribe=function(V){return this.hasError?(V.error(this.thrownError),ue.a.EMPTY):this.hasCompleted&&this.hasNext?(V.next(this.value),V.complete(),ue.a.EMPTY):W.prototype._subscribe.call(this,V)},AsyncSubject.prototype.next=function(W){this.hasCompleted||(this.value=W,this.hasNext=!0)},AsyncSubject.prototype.error=function(V){this.hasCompleted||W.prototype.error.call(this,V)},AsyncSubject.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&W.prototype.next.call(this,this.value),W.prototype.complete.call(this)},AsyncSubject}(oe.a)},function(W,V,G){"use strict";G.d(V,"a",(function(){return oe}));var ie=G(1),oe=function(W){function AsyncAction(V,G){var ie=W.call(this,V,G)||this;return ie.scheduler=V,ie.work=G,ie.pending=!1,ie}return ie.__extends(AsyncAction,W),AsyncAction.prototype.schedule=function(W,V){if(void 0===V&&(V=0),this.closed)return this;this.state=W;var G=this.id,ie=this.scheduler;return null!=G&&(this.id=this.recycleAsyncId(ie,G,V)),this.pending=!0,this.delay=V,this.id=this.id||this.requestAsyncId(ie,this.id,V),this},AsyncAction.prototype.requestAsyncId=function(W,V,G){return void 0===G&&(G=0),setInterval(W.flush.bind(W,this),G)},AsyncAction.prototype.recycleAsyncId=function(W,V,G){if(void 0===G&&(G=0),null!==G&&this.delay===G&&!1===this.pending)return V;clearInterval(V)},AsyncAction.prototype.execute=function(W,V){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var G=this._execute(W,V);if(G)return G;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},AsyncAction.prototype._execute=function(W,V){var G=!1,ie=void 0;try{this.work(W)}catch(W){G=!0,ie=!!W&&W||new Error(W)}if(G)return this.unsubscribe(),ie},AsyncAction.prototype._unsubscribe=function(){var W=this.id,V=this.scheduler,G=V.actions,ie=G.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==ie&&G.splice(ie,1),null!=W&&(this.id=this.recycleAsyncId(V,W,null)),this.delay=null},AsyncAction}(function(W){function Action(V,G){return W.call(this)||this}return ie.__extends(Action,W),Action.prototype.schedule=function(W,V){return void 0===V&&(V=0),this},Action}(G(6).a))},function(W,V,G){"use strict";G.d(V,"a",(function(){return isNumeric}));var ie=G(9);function isNumeric(W){return!Object(ie.a)(W)&&W-parseFloat(W)+1>=0}},function(W,V,G){"use strict";var ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V};Object.defineProperty(V,"__esModule",{value:!0}),V.Layout=V.IconLabel=V.Deletable=V.Modal=V.Form=V.Tabs=V.ImageCard=V.IconCard=void 0;var ue=G(203);Object.defineProperty(V,"IconCard",{enumerable:!0,get:function get(){return ue.IconCard}});var ae=G(205);Object.defineProperty(V,"ImageCard",{enumerable:!0,get:function get(){return ae.ImageCard}});var se=G(206);Object.defineProperty(V,"Tabs",{enumerable:!0,get:function get(){return se.Tabs}});var de=G(207);Object.defineProperty(V,"Form",{enumerable:!0,get:function get(){return de.Form}});var le=G(208);Object.defineProperty(V,"Modal",{enumerable:!0,get:function get(){return le.Modal}});var pe=G(210);Object.defineProperty(V,"Deletable",{enumerable:!0,get:function get(){return pe.Deletable}});var he=G(211);Object.defineProperty(V,"IconLabel",{enumerable:!0,get:function get(){return he.IconLabel}}),V.Layout=__importStar(G(212))},function(W,V,G){"use strict";G.d(V,"a",(function(){return concat}));var ie=G(45),oe=G(84);function concat(){for(var W=[],V=0;V1)for(var G=1;G0?W.prototype.requestAsyncId.call(this,V,G,ie):(V.actions.push(this),V.scheduled||(V.scheduled=Immediate_setImmediate(V.flush.bind(V,null))))},AsapAction.prototype.recycleAsyncId=function(V,G,ie){if(void 0===ie&&(ie=0),null!==ie&&ie>0||null===ie&&this.delay>0)return W.prototype.recycleAsyncId.call(this,V,G,ie);0===V.actions.length&&(Immediate_clearImmediate(G),V.scheduled=void 0)},AsapAction}(G(36).a),de=new(function(W){function AsapScheduler(){return null!==W&&W.apply(this,arguments)||this}return ie.__extends(AsapScheduler,W),AsapScheduler.prototype.flush=function(W){this.active=!0,this.scheduled=void 0;var V,G=this.actions,ie=-1,oe=G.length;W=W||G.shift();do{if(V=W.execute(W.state,W.delay))break}while(++ieW?exec():!0!==V&&(oe=setTimeout(ie?clear:exec,void 0===ie?W-he:W)))}return"boolean"!=typeof V&&(ie=G,G=V,V=void 0),wrapper.cancel=function cancel(){clearExistingTimeout(),ue=!0},wrapper}var rt=["mousemove","mousedown","resize","keydown","touchstart","wheel"],esm_useIdle=function(W,V,G){void 0===W&&(W=6e4),void 0===V&&(V=!1),void 0===G&&(G=rt);var oe=Object(ie.useState)(V),ue=oe[0],ae=oe[1];return Object(ie.useEffect)((function(){for(var V,ie=!0,oe=ue,set=function(W){ie&&(oe=W,ae(W))},se=throttle(50,(function(){oe&&set(!1),clearTimeout(V),V=setTimeout((function(){return set(!0)}),W)})),onVisibility=function(){document.hidden||se()},de=0;de=V[1]?1:-1}))}),[W]);return ue.reduce((function(W,V){var ie=V[0],oe=V[1];return G>=oe?ie:W}),ue[0][0])}},esm_useKeyPress=function(W){var V=Object(ie.useState)([!1,null]),G=V[0],oe=V[1];return esm_useKey(W,(function(W){return oe([!0,W])}),{event:"keydown"},[G]),esm_useKey(W,(function(W){return oe([!1,W])}),{event:"keyup"},[G]),G},esm_useKeyPressEvent=function(W,V,G,ie){void 0===ie&&(ie=esm_useKeyPress);var oe=ie(W),ue=oe[0],ae=oe[1];esm_useUpdateEffect((function(){!ue&&G?G(ae):ue&&V&&V(ae)}),[ue])},esm_useLatest=function(W){var V=Object(ie.useRef)(W);return V.current=W,V},esm_useLifecycles=function(W,V){Object(ie.useEffect)((function(){return W&&W(),function(){V&&V()}}),[])};var nt=function useList(W){void 0===W&&(W=[]);var V=Object(ie.useRef)(resolveHookState(W)),G=useUpdate(),oe=Object(ie.useMemo)((function(){var ie={set:function(W){V.current=resolveHookState(W,V.current),G()},push:function(){for(var W=[],V=0;Vie.length?ie[W]=V:ie.splice(W,0,V),ie}))},update:function(W,V){oe.set((function(G){return G.map((function(G){return W(G,V)?V:G}))}))},updateFirst:function(W,G){var ie=V.current.findIndex((function(V){return W(V,G)}));ie>=0&&oe.updateAt(ie,G)},upsert:function(W,G){var ie=V.current.findIndex((function(V){return W(V,G)}));ie>=0?oe.updateAt(ie,G):oe.push(G)},sort:function(W){oe.set((function(V){return V.slice().sort(W)}))},filter:function(W,V){oe.set((function(G){return G.slice().filter(W,V)}))},removeAt:function(W){oe.set((function(V){var G=V.slice();return G.splice(W,1),G}))},clear:function(){oe.set([])},reset:function(){oe.set(resolveHookState(W).slice())}};return ie.remove=ie.removeAt,ie}),[]);return[V.current,oe]},esm_useLocalStorage=function(W,V,G){if(!ae)return[V,noop,noop];if(!W)throw new Error("useLocalStorage key may not be falsy");var oe=G?G.raw?function(W){return W}:G.deserializer:JSON.parse,ue=Object(ie.useRef)((function(W){try{var ie=G?G.raw?String:G.serializer:JSON.stringify,ue=localStorage.getItem(W);return null!==ue?oe(ue):(V&&localStorage.setItem(W,ie(V)),V)}catch(W){return V}})),se=Object(ie.useState)((function(){return ue.current(W)})),de=se[0],le=se[1];Object(ie.useLayoutEffect)((function(){return le(ue.current(W))}),[W]);var pe=Object(ie.useCallback)((function(V){try{var ie="function"==typeof V?V(de):V;if(void 0===ie)return;var ue=void 0;ue=G?G.raw?"string"==typeof ie?ie:JSON.stringify(ie):G.serializer?G.serializer(ie):JSON.stringify(ie):JSON.stringify(ie),localStorage.setItem(W,ue),le(oe(ue))}catch(W){}}),[W,le]),he=Object(ie.useCallback)((function(){try{localStorage.removeItem(W),le(void 0)}catch(W){}}),[W,le]);return[de,pe,he]},patchHistoryMethod=function(W){var V=window.history,G=V[W];V[W]=function(V){var ie=G.apply(this,arguments),oe=new Event(W.toLowerCase());return oe.state=V,window.dispatchEvent(oe),ie}};ae&&(patchHistoryMethod("pushState"),patchHistoryMethod("replaceState"));var buildState=function(W){var V=window.history,G=V.state,ie=V.length,oe=window.location;return{trigger:W,state:G,length:ie,hash:oe.hash,host:oe.host,hostname:oe.hostname,href:oe.href,origin:oe.origin,pathname:oe.pathname,port:oe.port,protocol:oe.protocol,search:oe.search}},it="function"==typeof Event,ot=ae&&it?function(){var W=Object(ie.useState)(buildState("load")),V=W[0],G=W[1];return Object(ie.useEffect)((function(){var onPopstate=function(){return G(buildState("popstate"))},onPushstate=function(){return G(buildState("pushstate"))},onReplacestate=function(){return G(buildState("replacestate"))};return on(window,"popstate",onPopstate),on(window,"pushstate",onPushstate),on(window,"replacestate",onReplacestate),function(){off(window,"popstate",onPopstate),off(window,"pushstate",onPushstate),off(window,"replacestate",onReplacestate)}}),[]),V}:function(){return{trigger:"load",length:1}};function getClosestBody(W){if(!W)return null;if("BODY"===W.tagName)return W;if("IFRAME"===W.tagName){var V=W.contentDocument;return V?V.body:null}return W.offsetParent?getClosestBody(W.offsetParent):null}function preventDefault(W){var V=W||window.event;return V.touches.length>1||(V.preventDefault&&V.preventDefault(),!1)}var ut=ae&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),at=new Map,st="object"==typeof document?document:void 0,ct=!1,dt=st?function useLockBody(W,V){void 0===W&&(W=!0);var G=Object(ie.useRef)(st.body);V=V||G;var unlock=function(W){var V=at.get(W);V&&(1===V.counter?(at.delete(W),ut?(W.ontouchmove=null,ct&&(off(document,"touchmove",preventDefault),ct=!1)):W.style.overflow=V.initialOverflow):at.set(W,{counter:V.counter-1,initialOverflow:V.initialOverflow}))};Object(ie.useEffect)((function(){var G=getClosestBody(V.current);G&&(W?function(W){var V=at.get(W);V?at.set(W,{counter:V.counter+1,initialOverflow:V.initialOverflow}):(at.set(W,{counter:1,initialOverflow:W.style.overflow}),ut?ct||(on(document,"touchmove",preventDefault,{passive:!1}),ct=!0):W.style.overflow="hidden")}(G):unlock(G))}),[W,V.current]),Object(ie.useEffect)((function(){var W=getClosestBody(V.current);if(W)return function(){unlock(W)}}),[])}:function useLockBodyMock(W,V){void 0===W&&(W=!0)},esm_useLogger=function(W){for(var V=[],G=1;G1?se=1:se<0&&(se=0),de&&(se=1-se),pe({value:se}),(V.onScrub||noop)(se)}}))};return on(W.current,"mousedown",onMouseDown_1),on(W.current,"touchstart",onTouchStart_1),function(){off(W.current,"mousedown",onMouseDown_1),off(W.current,"touchstart",onTouchStart_1)}}}),[W,V.vertical]),le},Et=ae&&"object"==typeof window.speechSynthesis?window.speechSynthesis.getVoices():[],esm_useSpeech=function(W,V){void 0===V&&(V={});var G=esm_useSetState({isPlaying:!1,lang:V.lang||"default",voice:V.voice||Et[0],rate:V.rate||1,pitch:V.pitch||1,volume:V.volume||1}),oe=G[0],ue=G[1],ae=Object(ie.useRef)(null);return esm_useMount((function(){var G=new SpeechSynthesisUtterance(W);V.lang&&(G.lang=V.lang),V.voice&&(G.voice=V.voice),G.rate=V.rate||1,G.pitch=V.pitch||1,G.volume=V.volume||1,G.onstart=function(){return ue({isPlaying:!0})},G.onresume=function(){return ue({isPlaying:!0})},G.onend=function(){return ue({isPlaying:!1})},G.onpause=function(){return ue({isPlaying:!1})},ae.current=G,window.speechSynthesis.speak(ae.current)})),oe},esm_useStartTyping=function(W){De((function(){var keydown=function(V){var G,ie,oe,ue,ae;!function(){var W=document.activeElement,V=document.body;if(!W)return!1;if(W===V)return!1;switch(W.tagName){case"INPUT":case"TEXTAREA":return!0}return W.hasAttribute("contenteditable")}()&&(ie=(G=V).keyCode,oe=G.metaKey,ue=G.ctrlKey,ae=G.altKey,!(oe||ue||ae)&&(ie>=48&&ie<=57||ie>=65&&ie<=90))&&W(V)};return on(document,"keydown",keydown),function(){off(document,"keydown",keydown)}}),[])};function useStateWithHistory(W,V,G){if(void 0===V&&(V=10),V<1)throw new Error("Capacity has to be greater than 1, got '"+V+"'");var oe=useFirstMountState(),ue=Object(ie.useState)(W),ae=ue[0],se=ue[1],de=Object(ie.useRef)(null!=G?G:[]),le=Object(ie.useRef)(0);return oe&&(de.current.length?(de.current[de.current.length-1]!==W&&de.current.push(W),de.current.length>V&&(de.current=de.current.slice(de.current.length-V))):de.current.push(W),le.current=de.current.length&&de.current.length-1),[ae,Object(ie.useCallback)((function(W){se((function(G){return(W=resolveHookState(W,G))!==G&&(le.currentV&&(de.current=de.current.slice(de.current.length-V))),W}))}),[ae,V]),Object(ie.useMemo)((function(){return{history:de.current,position:le.current,capacity:V,back:function(W){void 0===W&&(W=1),le.current&&se((function(){return le.current-=Math.min(W,le.current),de.current[le.current]}))},forward:function(W){void 0===W&&(W=1),le.current!==de.current.length-1&&se((function(){return le.current=Math.min(le.current+W,de.current.length-1),de.current[le.current]}))},go:function(W){W!==le.current&&se((function(){return le.current=W<0?Math.max(de.current.length+W,0):Math.min(de.current.length-1,W),de.current[le.current]}))}}}),[ae])]}function useStateList(W){void 0===W&&(W=[]);var V=useMountedState(),G=useUpdate(),ue=Object(ie.useRef)(0);esm_useUpdateEffect((function(){W.length<=ue.current&&(ue.current=W.length-1,G())}),[W.length]);var ae=Object(ie.useMemo)((function(){return{next:function(){return ae.setStateAt(ue.current+1)},prev:function(){return ae.setStateAt(ue.current-1)},setStateAt:function(ie){V()&&W.length&&ie!==ue.current&&(ue.current=ie>=0?ie%W.length:W.length+ie%W.length,G())},setState:function(ie){if(V()){var oe=W.length?W.indexOf(ie):-1;if(-1===oe)throw new Error("State '"+ie+"' is not a valid state (does not exist in state list)");ue.current=oe,G()}}}}),[W]);return Object(oe.__assign)({state:W[ue.current],currentIndex:ue.current},ae)}var esm_useThrottle=function(W,V){void 0===V&&(V=200);var G=Object(ie.useState)(W),oe=G[0],ue=G[1],ae=Object(ie.useRef)(),se=Object(ie.useRef)(null),de=Object(ie.useRef)(0);return Object(ie.useEffect)((function(){if(ae.current)se.current=W,de.current=!0;else{ue(W);var timeoutCallback_1=function(){de.current?(de.current=!1,ue(se.current),ae.current=setTimeout(timeoutCallback_1,V)):ae.current=void 0};ae.current=setTimeout(timeoutCallback_1,V)}}),[W]),esm_useUnmount((function(){ae.current&&clearTimeout(ae.current)})),oe},esm_useThrottleFn=function(W,V,G){void 0===V&&(V=200);var oe=Object(ie.useState)(null),ue=oe[0],ae=oe[1],se=Object(ie.useRef)(),de=Object(ie.useRef)();return Object(ie.useEffect)((function(){if(se.current)de.current=G;else{ae(W.apply(void 0,G));var timeoutCallback_1=function(){de.current?(ae(W.apply(void 0,de.current)),de.current=void 0,se.current=setTimeout(timeoutCallback_1,V)):se.current=void 0};se.current=setTimeout(timeoutCallback_1,V)}}),G),esm_useUnmount((function(){se.current&&clearTimeout(se.current)})),ue};function useTimeout(W){return void 0===W&&(W=0),useTimeoutFn(useUpdate(),W)}var Ct={restoreOnUnmount:!1};var Pt="undefined"!=typeof document?function useTitle(W,V){void 0===V&&(V=Ct);var G=Object(ie.useRef)(document.title);document.title=W,Object(ie.useEffect)((function(){return V&&V.restoreOnUnmount?function(){document.title=G.current}:void 0}),[])}:function(W){},Nt=G(132),esm_useTween=function(W,V,G){return void 0===W&&(W="inCirc"),void 0===V&&(V=200),void 0===G&&(G=0),(0,Nt.easing[W])(esm_useRaf(V,G))},esm_useUnmountPromise=function(){var W=Object(ie.useRef)(!1);return esm_useEffectOnce((function(){return function(){W.current=!0}})),Object(ie.useMemo)((function(){return function(V,G){return new Promise((function(ie,oe){V.then((function(V){W.current||ie(V)}),(function(V){W.current?G?G(V):console.error("useUnmountPromise",V):oe(V)}))}))}}),[])};function useUpsert(W,V){void 0===V&&(V=[]);var G=nt(V),ie=G[0],ue=G[1];return[ie,Object(oe.__assign)(Object(oe.__assign)({},ue),{upsert:function(V){ue.upsert(W,V)}})]}var Tt=se&&"vibrate"in navigator?function useVibrate(W,V,G){void 0===W&&(W=!0),void 0===V&&(V=[1e3,1e3]),void 0===G&&(G=!0),Object(ie.useEffect)((function(){var ie;if(W&&(navigator.vibrate(V),G)){var oe=V instanceof Array?V.reduce((function(W,V){return W+V})):V;ie=setInterval((function(){navigator.vibrate(V)}),oe)}return function(){W&&(navigator.vibrate(0),G&&clearInterval(ie))}}),[W])}:noop,jt=createHTMLMediaHook("video");function useStateValidator(W,V,G){void 0===G&&(G=[void 0]);var oe=Object(ie.useRef)(V),ue=Object(ie.useRef)(W);oe.current=V,ue.current=W;var ae=Object(ie.useState)(G),se=ae[0],de=ae[1],le=Object(ie.useCallback)((function(){oe.current.length>=2?oe.current(ue.current,de):de(oe.current(ue.current))}),[de]);return Object(ie.useEffect)((function(){le()}),[W]),[se,le]}var e=function(W){if("undefined"==typeof document)return 0;if(document.body&&(!document.readyState||"loading"!==document.readyState)){if(!0!==W&&"number"==typeof e.__cache)return e.__cache;var V=document.createElement("div"),G=V.style;G.display="block",G.position="absolute",G.width="100px",G.height="100px",G.left="-999px",G.top="-999px",G.overflow="scroll",document.body.insertBefore(V,null);var ie=V.clientWidth;if(0!==ie)return e.__cache=100-ie,document.body.removeChild(V),e.__cache;document.body.removeChild(V)}};function useScrollbarWidth(){var W=Object(ie.useState)(e()),V=W[0],G=W[1];return Object(ie.useEffect)((function(){if(void 0===V){var W=requestAnimationFrame((function(){G(e())}));return function(){return cancelAnimationFrame(W)}}}),[]),V}function useMultiStateValidator(W,V,G){if(void 0===G&&(G=[void 0]),"object"!=typeof W)throw new Error("states expected to be an object or array, got "+typeof W);var oe=Object(ie.useRef)(V),ue=Object(ie.useRef)(W);oe.current=V,ue.current=W;var ae=Object(ie.useState)(G),se=ae[0],de=ae[1],le=Object(ie.useCallback)((function(){oe.current.length>=2?oe.current(ue.current,de):de(oe.current(ue.current))}),[de]);return Object(ie.useEffect)((function(){le()}),Object.values(W)),[se,le]}var esm_useWindowScroll=function(){var W=esm_useRafState((function(){return{x:ae?window.pageXOffset:0,y:ae?window.pageYOffset:0}})),V=W[0],G=W[1];return Object(ie.useEffect)((function(){var handler=function(){G((function(W){var V=window.pageXOffset,G=window.pageYOffset;return W.x!==V||W.y!==G?{x:V,y:G}:W}))};return handler(),on(window,"scroll",handler,{capture:!1,passive:!0}),function(){off(window,"scroll",handler)}}),[]),V},esm_useWindowSize=function(W,V){void 0===W&&(W=1/0),void 0===V&&(V=1/0);var G=esm_useRafState({width:ae?window.innerWidth:W,height:ae?window.innerHeight:V}),oe=G[0],ue=G[1];return Object(ie.useEffect)((function(){if(ae){var handler_1=function(){ue({width:window.innerWidth,height:window.innerHeight})};return on(window,"resize",handler_1),function(){off(window,"resize",handler_1)}}}),[]),oe},kt={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};var At=ae&&void 0!==window.ResizeObserver?function useMeasure(){var W=Object(ie.useState)(null),V=W[0],G=W[1],oe=Object(ie.useState)(kt),ue=oe[0],ae=oe[1],se=Object(ie.useMemo)((function(){return new window.ResizeObserver((function(W){if(W[0]){var V=W[0].contentRect,G=V.x,ie=V.y,oe=V.width,ue=V.height,se=V.top,de=V.left,le=V.bottom,pe=V.right;ae({x:G,y:ie,width:oe,height:ue,top:se,left:de,bottom:le,right:pe})}}))}),[]);return De((function(){if(V)return se.observe(V),function(){se.disconnect()}}),[V]),[G,ue]}:function(){return[noop,kt]};function useRendersCount(){return++Object(ie.useRef)(0).current}var esm_useSet=function(W){void 0===W&&(W=new Set);var V=Object(ie.useState)(W),G=V[0],ue=V[1],ae=Object(ie.useMemo)((function(){return{add:function(W){return ue((function(V){return new Set(Object(oe.__spreadArrays)(Array.from(V),[W]))}))},remove:function(W){return ue((function(V){return new Set(Array.from(V).filter((function(V){return V!==W})))}))},toggle:function(W){return ue((function(V){return V.has(W)?new Set(Array.from(V).filter((function(V){return V!==W}))):new Set(Object(oe.__spreadArrays)(Array.from(V),[W]))}))},reset:function(){return ue(W)}}}),[ue]),se=Object(oe.__assign)({has:Object(ie.useCallback)((function(W){return G.has(W)}),[G])},ae);return[G,se]};function createGlobalState(W){var V={state:W instanceof Function?W():W,setState:function(W){V.state=resolveHookState(W,V.state),V.setters.forEach((function(W){return W(V.state)}))},setters:[]};return function(){var W=Object(ie.useState)(V.state),G=W[0],oe=W[1];return esm_useEffectOnce((function(){return function(){V.setters=V.setters.filter((function(W){return W!==oe}))}})),De((function(){V.setters.includes(oe)||V.setters.push(oe)})),[G,V.setState]}}var useHash=function(){var W=Object(ie.useState)((function(){return window.location.hash})),V=W[0],G=W[1],oe=Object(ie.useCallback)((function(){G(window.location.hash)}),[]);esm_useLifecycles((function(){on(window,"hashchange",oe)}),(function(){off(window,"hashchange",oe)}));var ue=Object(ie.useCallback)((function(W){W!==V&&(window.location.hash=W)}),[V]);return[V,ue]}},function(W,V,G){"use strict";G.d(V,"a",(function(){return refCount}));var ie=G(1),oe=G(2);function refCount(){return function refCountOperatorFunction(W){return W.lift(new ue(W))}}var ue=function(){function RefCountOperator(W){this.connectable=W}return RefCountOperator.prototype.call=function(W,V){var G=this.connectable;G._refCount++;var ie=new ae(W,G),oe=V.subscribe(ie);return ie.closed||(ie.connection=G.connect()),oe},RefCountOperator}(),ae=function(W){function RefCountSubscriber(V,G){var ie=W.call(this,V)||this;return ie.connectable=G,ie}return ie.__extends(RefCountSubscriber,W),RefCountSubscriber.prototype._unsubscribe=function(){var W=this.connectable;if(W){this.connectable=null;var V=W._refCount;if(V<=0)this.connection=null;else if(W._refCount=V-1,V>1)this.connection=null;else{var G=this.connection,ie=W._connection;this.connection=null,!ie||G&&ie!==G||ie.unsubscribe()}}else this.connection=null},RefCountSubscriber}(oe.a)},function(W,V,G){"use strict";G.d(V,"a",(function(){return pe}));var ie=G(1),oe=G(7),ue=G(70),ae=G(6),se=G(82),de=G(27),le=G(89),pe=function(W){function ReplaySubject(V,G,ie){void 0===V&&(V=Number.POSITIVE_INFINITY),void 0===G&&(G=Number.POSITIVE_INFINITY);var oe=W.call(this)||this;return oe.scheduler=ie,oe._events=[],oe._infiniteTimeWindow=!1,oe._bufferSize=V<1?1:V,oe._windowTime=G<1?1:G,G===Number.POSITIVE_INFINITY?(oe._infiniteTimeWindow=!0,oe.next=oe.nextInfiniteTimeWindow):oe.next=oe.nextTimeWindow,oe}return ie.__extends(ReplaySubject,W),ReplaySubject.prototype.nextInfiniteTimeWindow=function(V){if(!this.isStopped){var G=this._events;G.push(V),G.length>this._bufferSize&&G.shift()}W.prototype.next.call(this,V)},ReplaySubject.prototype.nextTimeWindow=function(V){this.isStopped||(this._events.push(new he(this._getNow(),V)),this._trimBufferThenGetEvents()),W.prototype.next.call(this,V)},ReplaySubject.prototype._subscribe=function(W){var V,G=this._infiniteTimeWindow,ie=G?this._events:this._trimBufferThenGetEvents(),oe=this.scheduler,ue=ie.length;if(this.closed)throw new de.a;if(this.isStopped||this.hasError?V=ae.a.EMPTY:(this.observers.push(W),V=new le.a(this,W)),oe&&W.add(W=new se.a(W,oe)),G)for(var pe=0;peV&&(ue=Math.max(ue,oe-V)),ue>0&&ie.splice(0,ue),ie},ReplaySubject}(oe.a),he=function(){return function ReplayEvent(W,V){this.time=W,this.value=V}}()},function(W,V,G){"use strict";G.d(V,"a",(function(){return throwError}));var ie=G(4);function throwError(W,V){return V?new ie.a((function(G){return V.schedule(dispatch,0,{error:W,subscriber:G})})):new ie.a((function(V){return V.error(W)}))}function dispatch(W){var V=W.error;W.subscriber.error(V)}},function(W,V,G){"use strict";G.d(V,"b",(function(){return combineLatest})),G.d(V,"a",(function(){return pe}));var ie=G(1),oe=G(11),ue=G(9),ae=G(21),se=G(18),de=G(33),le={};function combineLatest(){for(var W=[],V=0;Vthis.index},StaticArrayIterator.prototype.hasCompleted=function(){return this.array.length===this.index},StaticArrayIterator}(),ge=function(W){function ZipBufferIterator(V,G,ie){var oe=W.call(this,V)||this;return oe.parent=G,oe.observable=ie,oe.stillUnsubscribed=!0,oe.buffer=[],oe.isComplete=!1,oe}return ie.__extends(ZipBufferIterator,W),ZipBufferIterator.prototype[se.a]=function(){return this},ZipBufferIterator.prototype.next=function(){var W=this.buffer;return 0===W.length&&this.isComplete?{value:null,done:!0}:{value:W.shift(),done:!1}},ZipBufferIterator.prototype.hasValue=function(){return this.buffer.length>0},ZipBufferIterator.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},ZipBufferIterator.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},ZipBufferIterator.prototype.notifyNext=function(W){this.buffer.push(W),this.parent.checkIterators()},ZipBufferIterator.prototype.subscribe=function(){return Object(de.c)(this.observable,new de.a(this))},ZipBufferIterator}(de.b)},function(W,V,G){"use strict";function isObject(W){return null!==W&&"object"==typeof W}G.d(V,"a",(function(){return isObject}))},function(W,V,G){"use strict";G.d(V,"a",(function(){return canReportError}));var ie=G(2);function canReportError(W){for(;W;){var V=W,G=V.closed,oe=V.destination,ue=V.isStopped;if(G||ue)return!1;W=oe&&oe instanceof ie.a?oe:null}return!0}},function(W,V,G){"use strict";G.d(V,"a",(function(){return scheduleArray}));var ie=G(4),oe=G(6);function scheduleArray(W,V){return new ie.a((function(G){var ie=new oe.a,ue=0;return ie.add(V.schedule((function(){ue!==W.length?(G.next(W[ue++]),G.closed||ie.add(this.schedule())):G.complete()}))),ie}))}},function(W,V,G){"use strict";G.d(V,"a",(function(){return ue}));var ie=G(19),oe=G(41),ue={closed:!0,next:function(W){},error:function(W){if(ie.a.useDeprecatedSynchronousErrorHandling)throw W;Object(oe.a)(W)},complete:function(){}}},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.Deletable=V.useEditorTransactions=V.useEditorState=V.EditorContext=V.createEditor=V.useLinkTypeForHref=V.makeLinkType=V.registerDialog=V.registerLinkTypes=void 0;var ie=G(145);Object.defineProperty(V,"registerLinkTypes",{enumerable:!0,get:function get(){return ie.registerLinkTypes}}),Object.defineProperty(V,"registerDialog",{enumerable:!0,get:function get(){return ie.registerDialog}});var oe=G(30);Object.defineProperty(V,"makeLinkType",{enumerable:!0,get:function get(){return oe.makeLinkType}}),Object.defineProperty(V,"useLinkTypeForHref",{enumerable:!0,get:function get(){return oe.useLinkTypeForHref}}),Object.defineProperty(V,"createEditor",{enumerable:!0,get:function get(){return oe.createEditor}}),Object.defineProperty(V,"EditorContext",{enumerable:!0,get:function get(){return oe.EditorContext}}),Object.defineProperty(V,"useEditorState",{enumerable:!0,get:function get(){return oe.useEditorState}}),Object.defineProperty(V,"useEditorTransactions",{enumerable:!0,get:function get(){return oe.useEditorTransactions}});var ue=G(38);Object.defineProperty(V,"Deletable",{enumerable:!0,get:function get(){return ue.Deletable}})},function(W,V,G){"use strict";var ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V};Object.defineProperty(V,"__esModule",{value:!0}),V.useNeos=V.NeosContext=void 0;var ue=__importStar(G(0));V.NeosContext=ue.createContext(null),V.useNeos=function useNeos(){var W=ue.useContext(V.NeosContext);if(!W)throw new Error("[Sitegeist.Archaeopteryx]: Could not determine Neos Context.");return W}},function(W,V,G){"use strict";function _extends(){return(_extends=Object.assign||function(W){for(var V=1;V=0||(oe[G]=W[G]);return oe}G.r(V),G.d(V,"Field",(function(){return it})),G.d(V,"Form",(function(){return ReactFinalForm})),G.d(V,"FormSpy",(function(){return FormSpy})),G.d(V,"useField",(function(){return useField})),G.d(V,"useForm",(function(){return useForm})),G.d(V,"useFormState",(function(){return useFormState})),G.d(V,"version",(function(){return Ue})),G.d(V,"withTypes",(function(){return withTypes}));var ie=G(0),oe=G.n(ie),ue={},ae=/[.[\]]+/,se=function toPath(W){if(null==W||!W.length)return[];if("string"!=typeof W)throw new Error("toPath() expects a string");return null==ue[W]&&(ue[W]=W.split(ae).filter(Boolean)),ue[W]},de=function getIn(W,V){for(var G=se(V),ie=W,oe=0;oe=G.length)return ie;var ue=G[V];if(isNaN(ue)){var ae;if(null==W){var se,de=setInRecursor(void 0,V+1,G,ie,oe);return void 0===de?void 0:((se={})[ue]=de,se)}if(Array.isArray(W))throw new Error("Cannot set a non-numeric property on an array");var le=setInRecursor(W[ue],V+1,G,ie,oe);if(void 0===le){var pe=Object.keys(W).length;if(void 0===W[ue]&&0===pe)return;if(void 0!==W[ue]&&pe<=1)return isNaN(G[V-1])||oe?void 0:{};W[ue];return _objectWithoutPropertiesLoose(W,[ue].map(_toPropertyKey))}return _extends({},W,((ae={})[ue]=le,ae))}var he=Number(ue);if(null==W){var ve=setInRecursor(void 0,V+1,G,ie,oe);if(void 0===ve)return;var ge=[];return ge[he]=ve,ge}if(!Array.isArray(W))throw new Error("Cannot set a numeric property on an object");var Se=setInRecursor(W[he],V+1,G,ie,oe),we=[].concat(W);if(oe&&void 0===Se){if(we.splice(he,1),0===we.length)return}else we[he]=Se;return we}(W,0,se(V),G,ie)},pe="FINAL_FORM/array-error";function publishFieldState(W,V){var G=W.errors,ie=W.initialValues,oe=W.lastSubmittedValues,ue=W.submitErrors,ae=W.submitFailed,se=W.submitSucceeded,le=W.submitting,he=W.values,ve=V.active,ge=V.blur,Se=V.change,we=V.data,Ce=V.focus,Pe=V.modified,Ie=V.modifiedSinceLastSubmit,Fe=V.name,Re=V.touched,Le=V.validating,De=V.visited,Ue=de(he,Fe),ze=de(G,Fe);ze&&ze[pe]&&(ze=ze[pe]);var He=ue&&de(ue,Fe),Ke=ie&&de(ie,Fe),Ze=V.isEqual(Ke,Ue),Qe=!ze&&!He;return{active:ve,blur:ge,change:Se,data:we,dirty:!Ze,dirtySinceLastSubmit:!(!oe||V.isEqual(de(oe,Fe),Ue)),error:ze,focus:Ce,initial:Ke,invalid:!Qe,length:Array.isArray(Ue)?Ue.length:void 0,modified:Pe,modifiedSinceLastSubmit:Ie,name:Fe,pristine:Ze,submitError:He,submitFailed:ae,submitSucceeded:se,submitting:le,touched:Re,valid:Qe,value:Ue,visited:De,validating:Le}}var he=["active","data","dirty","dirtySinceLastSubmit","error","initial","invalid","length","modified","modifiedSinceLastSubmit","pristine","submitError","submitFailed","submitSucceeded","submitting","touched","valid","value","visited","validating"],ve=function shallowEqual(W,V){if(W===V)return!0;if("object"!=typeof W||!W||"object"!=typeof V||!V)return!1;var G=Object.keys(W),ie=Object.keys(V);if(G.length!==ie.length)return!1;for(var oe=Object.prototype.hasOwnProperty.bind(V),ue=0;ue0,Le=++De,ze=Promise.all(Ie).then(function clearAsyncValidationPromise(W){return function(V){return delete Ue[W],V}}(Le));Fe&&(Ue[Le]=ze);var He=function processErrors(){var W=_extends({},ae?ie.errors:{},we),V=function forEachError(V){ue.forEach((function(ie){if(G[ie]){var ue=de(we,ie),le=de(W,ie),pe=Qe(oe[ie]).length,he=Pe[ie];V(ie,pe&&he||se&&ue||(ue||ae?void 0:le))}}))};V((function(V,G){W=le(W,V,G)||{}})),V((function(V,G){if(G&&G[pe]){var ie=de(W,V),oe=[].concat(ie);oe[pe]=G[pe],W=le(W,V,oe)}})),ve(ie.errors,W)||(ie.errors=W),ie.error=we["FINAL_FORM/form-error"]};if(He(),V(),Fe){ge.formState.validating++,V();var Ke=function afterPromise(){ge.formState.validating--,V()};ze.then((function(){De>Le||He()})).then(Ke,Ke)}}else V()},tt=function notifyFieldListeners(W){if(!we){var V=ge.fields,G=ge.fieldSubscribers,ie=ge.formState,oe=_extends({},V),ue=function notifyField(W){var V=oe[W],ue=publishFieldState(ie,V),ae=V.lastFieldState;V.lastFieldState=ue;var se=G[W];se&¬ify(se,ue,ae,Se,void 0===ae)};W?ue(W):Object.keys(oe).forEach(ue)}},rt=function markAllFieldsTouched(){Object.keys(ge.fields).forEach((function(W){ge.fields[W].touched=!0}))},nt=function calculateNextFormState(){var W=ge.fields,V=ge.formState,G=ge.lastFormState,ie=_extends({},W),oe=Object.keys(ie),ue=!1,ae=oe.reduce((function(W,G){return!ie[G].isEqual(de(V.values,G),de(V.initialValues||{},G))&&(ue=!0,W[G]=!0),W}),{}),se=oe.reduce((function(W,G){var oe=V.lastSubmittedValues||{};return ie[G].isEqual(de(V.values,G),de(oe,G))||(W[G]=!0),W}),{});V.pristine=!ue,V.dirtySinceLastSubmit=!(!V.lastSubmittedValues||!Object.values(se).some((function(W){return W}))),V.modifiedSinceLastSubmit=!(!V.lastSubmittedValues||!Object.keys(ie).some((function(W){return ie[W].modifiedSinceLastSubmit}))),V.valid=!(V.error||V.submitError||Fe(V.errors)||V.submitErrors&&Fe(V.submitErrors));var le=function convertToExternalFormState(W){var V=W.active,G=W.dirtySinceLastSubmit,ie=W.modifiedSinceLastSubmit,oe=W.error,ue=W.errors,ae=W.initialValues,se=W.pristine,de=W.submitting,le=W.submitFailed,pe=W.submitSucceeded,he=W.submitError,ve=W.submitErrors,ge=W.valid,Se=W.validating,we=W.values;return{active:V,dirty:!se,dirtySinceLastSubmit:G,modifiedSinceLastSubmit:ie,error:oe,errors:ue,hasSubmitErrors:!!(he||ve&&Fe(ve)),hasValidationErrors:!(!oe&&!Fe(ue)),invalid:!ge,initialValues:ae,pristine:se,submitting:de,submitFailed:le,submitSucceeded:pe,submitError:he,submitErrors:ve,valid:ge,validating:Se>0,values:we}}(V),pe=oe.reduce((function(W,V){return W.modified[V]=ie[V].modified,W.touched[V]=ie[V].touched,W.visited[V]=ie[V].visited,W}),{modified:{},touched:{},visited:{}}),he=pe.modified,Se=pe.touched,we=pe.visited;return le.dirtyFields=G&&ve(G.dirtyFields,ae)?G.dirtyFields:ae,le.dirtyFieldsSinceLastSubmit=G&&ve(G.dirtyFieldsSinceLastSubmit,se)?G.dirtyFieldsSinceLastSubmit:se,le.modified=G&&ve(G.modified,he)?G.modified:he,le.touched=G&&ve(G.touched,Se)?G.touched:Se,le.visited=G&&ve(G.visited,we)?G.visited:we,G&&ve(G,le)?G:le},it=!1,ot=!1,ut=function notifyFormListeners(){if(it)ot=!0;else{if(it=!0,function callDebug(){V&&V(nt(),Object.keys(ge.fields).reduce((function(W,V){return W[V]=ge.fields[V],W}),{}))}(),!(we||Ce&&Le)){var W=ge.lastFormState,G=nt();G!==W&&(ge.lastFormState=G,notify(ge.subscribers,G,W,filterFormState))}it=!1,ot&&(ot=!1,notifyFormListeners())}};et(void 0,(function(){ut()}));var at={batch:function batch(W){we++,W(),we--,tt(),ut()},blur:function blur(W){var V=ge.fields,G=ge.formState,ie=V[W];ie&&(delete G.active,V[W]=_extends({},ie,{active:!1,touched:!0}),he?et(W,(function(){tt(),ut()})):(tt(),ut()))},change:function change(W,V){var G=ge.fields,ie=ge.formState;if(de(ie.values,W)!==V){ze(ge,W,(function(){return V}));var oe=G[W];oe&&(G[W]=_extends({},oe,{modified:!0,modifiedSinceLastSubmit:!!ie.lastSubmittedValues})),he?(tt(),ut()):et(W,(function(){tt(),ut()}))}},get destroyOnUnregister(){return!!G},set destroyOnUnregister(W){G=W},focus:function focus(W){var V=ge.fields[W];V&&!V.active&&(ge.formState.active=W,V.active=!0,V.visited=!0,tt(),ut())},mutators:Ze,getFieldState:function getFieldState(W){var V=ge.fields[W];return V&&V.lastFieldState},getRegisteredFields:function getRegisteredFields(){return Object.keys(ge.fields)},getState:function getState(){return nt()},initialize:function initialize(W){var V=ge.fields,G=ge.formState,oe=_extends({},V),ue="function"==typeof W?W(G.values):W;ie||(G.values=ue);var ae=ie?Object.keys(oe).reduce((function(W,V){return oe[V].isEqual(de(G.values,V),de(G.initialValues||{},V))||(W[V]=de(G.values,V)),W}),{}):{};G.initialValues=ue,G.values=ue,Object.keys(ae).forEach((function(W){G.values=le(G.values,W,ae[W])})),et(void 0,(function(){tt(),ut()}))},isValidationPaused:function isValidationPaused(){return Ce},pauseValidation:function pauseValidation(W){void 0===W&&(W=!0),Ce=!0,Le=W},registerField:function registerField(W,V,ie,oe){void 0===ie&&(ie={}),ge.fieldSubscribers[W]||(ge.fieldSubscribers[W]={index:0,entries:{}});var ue=ge.fieldSubscribers[W].index++;ge.fieldSubscribers[W].entries[ue]={subscriber:Pe(V),subscription:ie,notified:!1},ge.fields[W]||(ge.fields[W]={active:!1,afterSubmit:oe&&oe.afterSubmit,beforeSubmit:oe&&oe.beforeSubmit,blur:function blur(){return at.blur(W)},change:function change(V){return at.change(W,V)},data:oe&&oe.data||{},focus:function focus(){return at.focus(W)},isEqual:oe&&oe.isEqual||Ie,lastFieldState:void 0,modified:!1,modifiedSinceLastSubmit:!1,name:W,touched:!1,valid:!0,validateFields:oe&&oe.validateFields,validators:{},validating:!1,visited:!1});var ae=!1,se=oe&&oe.silent,pe=function notify(){se?tt(W):(ut(),tt())};if(oe){ae=!(!oe.getValidator||!oe.getValidator()),oe.getValidator&&(ge.fields[W].validators[ue]=oe.getValidator);var he=void 0===de(ge.formState.values,W);void 0===oe.initialValue||!he||void 0!==de(ge.formState.values,W)&&de(ge.formState.values,W)!==de(ge.formState.initialValues,W)||(ge.formState.initialValues=le(ge.formState.initialValues||{},W,oe.initialValue),ge.formState.values=le(ge.formState.values,W,oe.initialValue),et(void 0,pe)),void 0!==oe.defaultValue&&void 0===oe.initialValue&&void 0===de(ge.formState.initialValues,W)&&he&&(ge.formState.values=le(ge.formState.values,W,oe.defaultValue))}return ae?et(void 0,pe):pe(),function(){var V=!1;ge.fields[W]&&(V=!(!ge.fields[W].validators[ue]||!ge.fields[W].validators[ue]()),delete ge.fields[W].validators[ue]);var ie=!!ge.fieldSubscribers[W];ie&&delete ge.fieldSubscribers[W].entries[ue];var oe=ie&&!Object.keys(ge.fieldSubscribers[W].entries).length;oe&&(delete ge.fieldSubscribers[W],delete ge.fields[W],V&&(ge.formState.errors=le(ge.formState.errors,W,void 0)||{}),G&&(ge.formState.values=le(ge.formState.values,W,void 0,!0)||{})),se||(V?et(void 0,(function(){ut(),tt()})):oe&&ut())}},reset:function reset(W){void 0===W&&(W=ge.formState.initialValues),ge.formState.submitting&&(ge.formState.resetWhileSubmitting=!0),ge.formState.submitFailed=!1,ge.formState.submitSucceeded=!1,delete ge.formState.submitError,delete ge.formState.submitErrors,delete ge.formState.lastSubmittedValues,at.initialize(W||{})},resetFieldState:function resetFieldState(W){ge.fields[W]=_extends({},ge.fields[W],{active:!1,lastFieldState:void 0,modified:!1,touched:!1,valid:!0,validating:!1,visited:!1}),et(void 0,(function(){tt(),ut()}))},restart:function restart(W){void 0===W&&(W=ge.formState.initialValues),at.batch((function(){for(var V in ge.fields)at.resetFieldState(V),ge.fields[V]=_extends({},ge.fields[V],{active:!1,lastFieldState:void 0,modified:!1,modifiedSinceLastSubmit:!1,touched:!1,valid:!0,validating:!1,visited:!1});at.reset(W)}))},resumeValidation:function resumeValidation(){Ce=!1,Le=!1,Re&&et(void 0,(function(){tt(),ut()})),Re=!1},setConfig:function setConfig(W,oe){switch(W){case"debug":V=oe;break;case"destroyOnUnregister":G=oe;break;case"initialValues":at.initialize(oe);break;case"keepDirtyOnReinitialize":ie=oe;break;case"mutators":ue=oe,oe?(Object.keys(Ze).forEach((function(W){W in oe||delete Ze[W]})),Object.keys(oe).forEach((function(W){Ze[W]=Ke(W)}))):Object.keys(Ze).forEach((function(W){delete Ze[W]}));break;case"onSubmit":ae=oe;break;case"validate":se=oe,et(void 0,(function(){tt(),ut()}));break;case"validateOnBlur":he=oe;break;default:throw new Error("Unrecognised option "+W)}},submit:function submit(){var W=ge.formState;if(!W.submitting){if(delete W.submitErrors,delete W.submitError,W.lastSubmittedValues=_extends({},W.values),function hasSyncErrors(){return!(!ge.formState.error&&!Fe(ge.formState.errors))}())return rt(),ge.formState.submitFailed=!0,ut(),void tt();var V=Object.keys(Ue);if(V.length)Promise.all(V.map((function(W){return Ue[Number(W)]}))).then(at.submit,console.error);else if(!function beforeSubmit(){return Object.keys(ge.fields).some((function(W){return ge.fields[W].beforeSubmit&&!1===ge.fields[W].beforeSubmit()}))}()){var G,ie=!1,oe=function complete(V){W.submitting=!1;var oe=W.resetWhileSubmitting;return oe&&(W.resetWhileSubmitting=!1),V&&Fe(V)?(W.submitFailed=!0,W.submitSucceeded=!1,W.submitErrors=V,W.submitError=V["FINAL_FORM/form-error"],rt()):(oe||(W.submitFailed=!1,W.submitSucceeded=!0),function afterSubmit(){Object.keys(ge.fields).forEach((function(W){return ge.fields[W].afterSubmit&&ge.fields[W].afterSubmit()}))}()),ut(),tt(),ie=!0,G&&G(V),V};W.submitting=!0,W.submitFailed=!1,W.submitSucceeded=!1,W.lastSubmittedValues=_extends({},W.values),function resetModifiedAfterSubmit(){Object.keys(ge.fields).forEach((function(W){return ge.fields[W].modifiedSinceLastSubmit=!1}))}();var ue=ae(W.values,at,oe);if(!ie){if(ue&&isPromise(ue))return ut(),tt(),ue.then(oe,(function(W){throw oe(),W}));if(ae.length>=3)return ut(),tt(),new Promise((function(W){G=W}));oe(ue)}}}},subscribe:function subscribe(W,V){if(!W)throw new Error("No callback given.");if(!V)throw new Error("No subscription provided. What values do you want to listen to?");var G=Pe(W),ie=ge.subscribers,oe=ie.index++;ie.entries[oe]={subscriber:G,subscription:V,notified:!1};var ue=nt();return notifySubscriber(G,V,ue,ue,filterFormState,!0),function(){delete ie.entries[oe]}}};return at}function renderComponent(W,V,G){var oe=W.render,ue=W.children,ae=W.component,se=_objectWithoutPropertiesLoose(W,["render","children","component"]);if(ae)return ie.createElement(ae,Object.assign(V,se,{children:ue,render:oe}));if(oe)return oe(void 0===ue?Object.assign(V,se):Object.assign(V,se,{children:ue}));if("function"!=typeof ue)throw new Error("Must specify either a render prop, a render function as children, or a component prop to "+G);return ue(Object.assign(V,se))}function useWhenValueChanges(W,V,G){void 0===G&&(G=function isEqual(W,V){return W===V});var ie=oe.a.useRef(W);oe.a.useEffect((function(){G(W,ie.current)||(V(),ie.current=W)}))}var Re=function shallowEqual(W,V){if(W===V)return!0;if("object"!=typeof W||!W||"object"!=typeof V||!V)return!1;var G=Object.keys(W),ie=Object.keys(V);if(G.length!==ie.length)return!1;for(var oe=Object.prototype.hasOwnProperty.bind(V),ue=0;ue component");return V}function useFormState(W){var V=void 0===W?{}:W,G=V.onChange,oe=V.subscription,ue=void 0===oe?Ze:oe,ae=useForm("useFormState"),se=ie.useRef(!0),de=ie.useRef(G);de.current=G;var le=ie.useState((function(){var W={};return ae.subscribe((function(V){W=V}),ue)(),G&&G(W),W})),pe=le[0],he=le[1];ie.useEffect((function(){return ae.subscribe((function(W){se.current?se.current=!1:(he(W),de.current&&de.current(W))}),ue)}),[]);var ve={};return He(ve,pe),ve}function FormSpy(W){var V=W.onChange,G=W.subscription,ie=_objectWithoutPropertiesLoose(W,["onChange","subscription"]),oe=useForm("FormSpy"),ue=useFormState({onChange:V,subscription:G});if(V)return null;var ae={form:_extends({},oe,{reset:function reset(W){Le(W)?oe.reset():oe.reset(W)}})};return renderComponent(_extends({},ie,ae),ue,"FormSpy")}var Qe="undefined"!=typeof window&&window.navigator&&window.navigator.product&&"ReactNative"===window.navigator.product,et=he.reduce((function(W,V){return W[V]=!0,W}),{}),tt=function defaultFormat(W,V){return void 0===W?"":W},rt=function defaultParse(W,V){return""===W?void 0:W},nt=function defaultIsEqual(W,V){return W===V};function useField(W,V){void 0===V&&(V={});var G=V,oe=G.afterSubmit,ue=G.allowNull,ae=G.component,se=G.data,de=G.defaultValue,le=G.format,pe=void 0===le?tt:le,he=G.formatOnBlur,ve=G.initialValue,ge=G.multiple,Se=G.parse,we=void 0===Se?rt:Se,Ce=G.subscription,Pe=void 0===Ce?et:Ce,Ie=G.type,Fe=G.validateFields,Re=G.value,Le=useForm("useField"),De=useLatest(V),Ue=function register(V,G){return Le.registerField(W,V,Pe,{afterSubmit:oe,beforeSubmit:function beforeSubmit(){var V=De.current,beforeSubmit=V.beforeSubmit,G=V.formatOnBlur,ie=V.format,oe=void 0===ie?tt:ie;if(G){var ue=Le.getFieldState(W).value,ae=oe(ue,W);ae!==ue&&Le.change(W,ae)}return beforeSubmit&&beforeSubmit()},data:se,defaultValue:de,getValidator:function getValidator(){return De.current.validate},initialValue:ve,isEqual:function isEqual(W,V){return(De.current.isEqual||nt)(W,V)},silent:G,validateFields:Fe})},He=ie.useRef(!0),Ke=ie.useState((function(){var W={},V=Le.destroyOnUnregister;return Le.destroyOnUnregister=!1,Ue((function(V){W=V}),!0)(),Le.destroyOnUnregister=V,W})),Ze=Ke[0],it=Ke[1];ie.useEffect((function(){return Ue((function(W){He.current?He.current=!1:it(W)}),!1)}),[W,se,de,ve]);var ot={onBlur:ie.useCallback((function(W){if(Ze.blur(),he){var V=Le.getFieldState(Ze.name);Ze.change(pe(V.value,Ze.name))}}),[Ze.blur,Ze.name,pe,he]),onChange:ie.useCallback((function(V){var G=V&&V.target?function getValue(W,V,G,ie){if(!ie&&W.nativeEvent&&void 0!==W.nativeEvent.text)return W.nativeEvent.text;if(ie&&W.nativeEvent)return W.nativeEvent.text;var oe=W.target,ue=oe.type,ae=oe.value,se=oe.checked;switch(ue){case"checkbox":if(void 0!==G){if(se)return Array.isArray(V)?V.concat(G):[G];if(!Array.isArray(V))return V;var de=V.indexOf(G);return de<0?V:V.slice(0,de).concat(V.slice(de+1))}return!!se;case"select-multiple":return function getSelectedValues(W){var V=[];if(W)for(var G=0;G component");return renderComponent(_extends({children:ae,component:se,ref:V},De),Ue,"Field("+we+")")}));function withTypes(){return{Form:ReactFinalForm,FormSpy:FormSpy}}},function(W,V,G){"use strict";G.d(V,"b",(function(){return ue})),G.d(V,"a",(function(){return ae}));var ie=G(1),oe=function(W){function QueueAction(V,G){var ie=W.call(this,V,G)||this;return ie.scheduler=V,ie.work=G,ie}return ie.__extends(QueueAction,W),QueueAction.prototype.schedule=function(V,G){return void 0===G&&(G=0),G>0?W.prototype.schedule.call(this,V,G):(this.delay=G,this.state=V,this.scheduler.flush(this),this)},QueueAction.prototype.execute=function(V,G){return G>0||this.closed?W.prototype.execute.call(this,V,G):this._execute(V,G)},QueueAction.prototype.requestAsyncId=function(V,G,ie){return void 0===ie&&(ie=0),null!==ie&&ie>0||null===ie&&this.delay>0?W.prototype.requestAsyncId.call(this,V,G,ie):V.flush(this)},QueueAction}(G(36).a),ue=new(function(W){function QueueScheduler(){return null!==W&&W.apply(this,arguments)||this}return ie.__extends(QueueScheduler,W),QueueScheduler}(G(34).a))(oe),ae=ue},function(W,V,G){"use strict";G.d(V,"a",(function(){return ie}));var ie=function(){function Scheduler(W,V){void 0===V&&(V=Scheduler.now),this.SchedulerAction=W,this.now=V}return Scheduler.prototype.schedule=function(W,V,G){return void 0===V&&(V=0),new this.SchedulerAction(this,W).schedule(G,V)},Scheduler.now=function(){return Date.now()},Scheduler}()},function(W,V,G){var ie=G(180),oe=G(74),ue=G(199),ae=G(54).isError,se=ue.sprintf;function parseConstructorArguments(W){var V,G,oe,ue;if(ie.object(W,"args"),ie.bool(W.strict,"args.strict"),ie.array(W.argv,"args.argv"),0===(V=W.argv).length)G={},oe=[];else if(ae(V[0]))G={cause:V[0]},oe=V.slice(1);else if("object"==typeof V[0]){for(ue in G={},V[0])G[ue]=V[0][ue];oe=V.slice(1)}else ie.string(V[0],"first argument to VError, SError, or WError constructor must be a string, object, or Error"),G={},oe=V;return ie.object(G),G.strict||W.strict||(oe=oe.map((function(W){return null===W?"null":void 0===W?"undefined":W}))),{options:G,shortmessage:0===oe.length?"":se.apply(null,oe)}}function VError(){var W,V,G,oe,ue,se,de;if(W=Array.prototype.slice.call(arguments,0),!(this instanceof VError))return V=Object.create(VError.prototype),VError.apply(V,arguments),V;if((G=parseConstructorArguments({argv:W,strict:!1})).options.name&&(ie.string(G.options.name,'error\'s "name" must be a string'),this.name=G.options.name),this.jse_shortmsg=G.shortmessage,se=G.shortmessage,(oe=G.options.cause)&&(ie.ok(ae(oe),"cause is not an Error"),this.jse_cause=oe,G.options.skipCauseMessage||(se+=": "+oe.message)),this.jse_info={},G.options.info)for(de in G.options.info)this.jse_info[de]=G.options.info[de];return this.message=se,Error.call(this,se),Error.captureStackTrace&&(ue=G.options.constructorOpt||this.constructor,Error.captureStackTrace(this,ue)),this}function SError(){var W,V,G,ie;return W=Array.prototype.slice.call(arguments,0),this instanceof SError?(ie=(G=parseConstructorArguments({argv:W,strict:!0})).options,VError.call(this,ie,"%s",G.shortmessage),this):(V=Object.create(SError.prototype),SError.apply(V,arguments),V)}function MultiError(W){ie.array(W,"list of errors"),ie.ok(W.length>0,"must be at least one error"),this.ase_errors=W,VError.call(this,{cause:W[0]},"first of %d error%s",W.length,1==W.length?"":"s")}function WError(){var W,V,G,ie;return W=Array.prototype.slice.call(arguments,0),this instanceof WError?((ie=(G=parseConstructorArguments({argv:W,strict:!1})).options).skipCauseMessage=!0,VError.call(this,ie,"%s",G.shortmessage),this):(V=Object.create(WError.prototype),WError.apply(V,W),V)}W.exports=VError,VError.VError=VError,VError.SError=SError,VError.WError=WError,VError.MultiError=MultiError,oe.inherits(VError,Error),VError.prototype.name="VError",VError.prototype.toString=function ve_toString(){var W=this.hasOwnProperty("name")&&this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(W+=": "+this.message),W},VError.prototype.cause=function ve_cause(){var W=VError.cause(this);return null===W?void 0:W},VError.cause=function(W){return ie.ok(ae(W),"err must be an Error"),ae(W.jse_cause)?W.jse_cause:null},VError.info=function(W){var V,G,oe;if(ie.ok(ae(W),"err must be an Error"),V=null!==(G=VError.cause(W))?VError.info(G):{},"object"==typeof W.jse_info&&null!==W.jse_info)for(oe in W.jse_info)V[oe]=W.jse_info[oe];return V},VError.findCauseByName=function(W,V){var G;for(ie.ok(ae(W),"err must be an Error"),ie.string(V,"name"),ie.ok(V.length>0,"name cannot be empty"),G=W;null!==G;G=VError.cause(G))if(ie.ok(ae(G)),G.name==V)return G;return null},VError.hasCauseWithName=function(W,V){return null!==VError.findCauseByName(W,V)},VError.fullStack=function(W){ie.ok(ae(W),"err must be an Error");var V=VError.cause(W);return V?W.stack+"\ncaused by: "+VError.fullStack(V):W.stack},VError.errorFromList=function(W){return ie.arrayOfObject(W,"errors"),0===W.length?null:(W.forEach((function(W){ie.ok(ae(W))})),1==W.length?W[0]:new MultiError(W))},VError.errorForEach=function(W,V){ie.ok(ae(W),"err must be an Error"),ie.func(V,"func"),W instanceof MultiError?W.errors().forEach((function iterError(W){V(W)})):V(W)},oe.inherits(SError,VError),oe.inherits(MultiError,VError),MultiError.prototype.name="MultiError",MultiError.prototype.errors=function me_errors(){return this.ase_errors.slice(0)},oe.inherits(WError,VError),WError.prototype.name="WError",WError.prototype.toString=function we_toString(){var W=this.hasOwnProperty("name")&&this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(W+=": "+this.message),this.jse_cause&&this.jse_cause.message&&(W+="; caused by "+this.jse_cause.toString()),W},WError.prototype.cause=function we_cause(W){return ae(W)&&(this.jse_cause=W),this.jse_cause}},function(W,V,G){"use strict";(function(W){var ie=G(181),oe=G(182),ue=G(112);function kMaxLength(){return Buffer.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function createBuffer(W,V){if(kMaxLength()=kMaxLength())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kMaxLength().toString(16)+" bytes");return 0|W}function byteLength(W,V){if(Buffer.isBuffer(W))return W.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(W)||W instanceof ArrayBuffer))return W.byteLength;"string"!=typeof W&&(W=""+W);var G=W.length;if(0===G)return 0;for(var ie=!1;;)switch(V){case"ascii":case"latin1":case"binary":return G;case"utf8":case"utf-8":case void 0:return utf8ToBytes(W).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*G;case"hex":return G>>>1;case"base64":return base64ToBytes(W).length;default:if(ie)return utf8ToBytes(W).length;V=(""+V).toLowerCase(),ie=!0}}function slowToString(W,V,G){var ie=!1;if((void 0===V||V<0)&&(V=0),V>this.length)return"";if((void 0===G||G>this.length)&&(G=this.length),G<=0)return"";if((G>>>=0)<=(V>>>=0))return"";for(W||(W="utf8");;)switch(W){case"hex":return hexSlice(this,V,G);case"utf8":case"utf-8":return utf8Slice(this,V,G);case"ascii":return asciiSlice(this,V,G);case"latin1":case"binary":return latin1Slice(this,V,G);case"base64":return base64Slice(this,V,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,V,G);default:if(ie)throw new TypeError("Unknown encoding: "+W);W=(W+"").toLowerCase(),ie=!0}}function swap(W,V,G){var ie=W[V];W[V]=W[G],W[G]=ie}function bidirectionalIndexOf(W,V,G,ie,oe){if(0===W.length)return-1;if("string"==typeof G?(ie=G,G=0):G>2147483647?G=2147483647:G<-2147483648&&(G=-2147483648),G=+G,isNaN(G)&&(G=oe?0:W.length-1),G<0&&(G=W.length+G),G>=W.length){if(oe)return-1;G=W.length-1}else if(G<0){if(!oe)return-1;G=0}if("string"==typeof V&&(V=Buffer.from(V,ie)),Buffer.isBuffer(V))return 0===V.length?-1:arrayIndexOf(W,V,G,ie,oe);if("number"==typeof V)return V&=255,Buffer.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?oe?Uint8Array.prototype.indexOf.call(W,V,G):Uint8Array.prototype.lastIndexOf.call(W,V,G):arrayIndexOf(W,[V],G,ie,oe);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(W,V,G,ie,oe){var ue,ae=1,se=W.length,de=V.length;if(void 0!==ie&&("ucs2"===(ie=String(ie).toLowerCase())||"ucs-2"===ie||"utf16le"===ie||"utf-16le"===ie)){if(W.length<2||V.length<2)return-1;ae=2,se/=2,de/=2,G/=2}function read(W,V){return 1===ae?W[V]:W.readUInt16BE(V*ae)}if(oe){var le=-1;for(ue=G;uese&&(G=se-de),ue=G;ue>=0;ue--){for(var pe=!0,he=0;heoe&&(ie=oe):ie=oe;var ue=V.length;if(ue%2!=0)throw new TypeError("Invalid hex string");ie>ue/2&&(ie=ue/2);for(var ae=0;ae>8,oe=G%256,ue.push(oe),ue.push(ie);return ue}(V,W.length-G),W,G,ie)}function base64Slice(W,V,G){return 0===V&&G===W.length?ie.fromByteArray(W):ie.fromByteArray(W.slice(V,G))}function utf8Slice(W,V,G){G=Math.min(W.length,G);for(var ie=[],oe=V;oe239?4:le>223?3:le>191?2:1;if(oe+he<=G)switch(he){case 1:le<128&&(pe=le);break;case 2:128==(192&(ue=W[oe+1]))&&(de=(31&le)<<6|63&ue)>127&&(pe=de);break;case 3:ue=W[oe+1],ae=W[oe+2],128==(192&ue)&&128==(192&ae)&&(de=(15&le)<<12|(63&ue)<<6|63&ae)>2047&&(de<55296||de>57343)&&(pe=de);break;case 4:ue=W[oe+1],ae=W[oe+2],se=W[oe+3],128==(192&ue)&&128==(192&ae)&&128==(192&se)&&(de=(15&le)<<18|(63&ue)<<12|(63&ae)<<6|63&se)>65535&&de<1114112&&(pe=de)}null===pe?(pe=65533,he=1):pe>65535&&(pe-=65536,ie.push(pe>>>10&1023|55296),pe=56320|1023&pe),ie.push(pe),oe+=he}return function decodeCodePointsArray(W){var V=W.length;if(V<=4096)return String.fromCharCode.apply(String,W);var G="",ie=0;for(;ie0&&(W=this.toString("hex",0,G).match(/.{2}/g).join(" "),this.length>G&&(W+=" ... ")),""},Buffer.prototype.compare=function compare(W,V,G,ie,oe){if(!Buffer.isBuffer(W))throw new TypeError("Argument must be a Buffer");if(void 0===V&&(V=0),void 0===G&&(G=W?W.length:0),void 0===ie&&(ie=0),void 0===oe&&(oe=this.length),V<0||G>W.length||ie<0||oe>this.length)throw new RangeError("out of range index");if(ie>=oe&&V>=G)return 0;if(ie>=oe)return-1;if(V>=G)return 1;if(this===W)return 0;for(var ue=(oe>>>=0)-(ie>>>=0),ae=(G>>>=0)-(V>>>=0),se=Math.min(ue,ae),de=this.slice(ie,oe),le=W.slice(V,G),pe=0;peoe)&&(G=oe),W.length>0&&(G<0||V<0)||V>this.length)throw new RangeError("Attempt to write outside buffer bounds");ie||(ie="utf8");for(var ue=!1;;)switch(ie){case"hex":return hexWrite(this,W,V,G);case"utf8":case"utf-8":return utf8Write(this,W,V,G);case"ascii":return asciiWrite(this,W,V,G);case"latin1":case"binary":return latin1Write(this,W,V,G);case"base64":return base64Write(this,W,V,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,W,V,G);default:if(ue)throw new TypeError("Unknown encoding: "+ie);ie=(""+ie).toLowerCase(),ue=!0}},Buffer.prototype.toJSON=function toJSON(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function asciiSlice(W,V,G){var ie="";G=Math.min(W.length,G);for(var oe=V;oeie)&&(G=ie);for(var oe="",ue=V;ueG)throw new RangeError("Trying to access beyond buffer length")}function checkInt(W,V,G,ie,oe,ue){if(!Buffer.isBuffer(W))throw new TypeError('"buffer" argument must be a Buffer instance');if(V>oe||VW.length)throw new RangeError("Index out of range")}function objectWriteUInt16(W,V,G,ie){V<0&&(V=65535+V+1);for(var oe=0,ue=Math.min(W.length-G,2);oe>>8*(ie?oe:1-oe)}function objectWriteUInt32(W,V,G,ie){V<0&&(V=4294967295+V+1);for(var oe=0,ue=Math.min(W.length-G,4);oe>>8*(ie?oe:3-oe)&255}function checkIEEE754(W,V,G,ie,oe,ue){if(G+ie>W.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("Index out of range")}function writeFloat(W,V,G,ie,ue){return ue||checkIEEE754(W,0,G,4),oe.write(W,V,G,ie,23,4),G+4}function writeDouble(W,V,G,ie,ue){return ue||checkIEEE754(W,0,G,8),oe.write(W,V,G,ie,52,8),G+8}Buffer.prototype.slice=function slice(W,V){var G,ie=this.length;if((W=~~W)<0?(W+=ie)<0&&(W=0):W>ie&&(W=ie),(V=void 0===V?ie:~~V)<0?(V+=ie)<0&&(V=0):V>ie&&(V=ie),V0&&(oe*=256);)ie+=this[W+--V]*oe;return ie},Buffer.prototype.readUInt8=function readUInt8(W,V){return V||checkOffset(W,1,this.length),this[W]},Buffer.prototype.readUInt16LE=function readUInt16LE(W,V){return V||checkOffset(W,2,this.length),this[W]|this[W+1]<<8},Buffer.prototype.readUInt16BE=function readUInt16BE(W,V){return V||checkOffset(W,2,this.length),this[W]<<8|this[W+1]},Buffer.prototype.readUInt32LE=function readUInt32LE(W,V){return V||checkOffset(W,4,this.length),(this[W]|this[W+1]<<8|this[W+2]<<16)+16777216*this[W+3]},Buffer.prototype.readUInt32BE=function readUInt32BE(W,V){return V||checkOffset(W,4,this.length),16777216*this[W]+(this[W+1]<<16|this[W+2]<<8|this[W+3])},Buffer.prototype.readIntLE=function readIntLE(W,V,G){W|=0,V|=0,G||checkOffset(W,V,this.length);for(var ie=this[W],oe=1,ue=0;++ue=(oe*=128)&&(ie-=Math.pow(2,8*V)),ie},Buffer.prototype.readIntBE=function readIntBE(W,V,G){W|=0,V|=0,G||checkOffset(W,V,this.length);for(var ie=V,oe=1,ue=this[W+--ie];ie>0&&(oe*=256);)ue+=this[W+--ie]*oe;return ue>=(oe*=128)&&(ue-=Math.pow(2,8*V)),ue},Buffer.prototype.readInt8=function readInt8(W,V){return V||checkOffset(W,1,this.length),128&this[W]?-1*(255-this[W]+1):this[W]},Buffer.prototype.readInt16LE=function readInt16LE(W,V){V||checkOffset(W,2,this.length);var G=this[W]|this[W+1]<<8;return 32768&G?4294901760|G:G},Buffer.prototype.readInt16BE=function readInt16BE(W,V){V||checkOffset(W,2,this.length);var G=this[W+1]|this[W]<<8;return 32768&G?4294901760|G:G},Buffer.prototype.readInt32LE=function readInt32LE(W,V){return V||checkOffset(W,4,this.length),this[W]|this[W+1]<<8|this[W+2]<<16|this[W+3]<<24},Buffer.prototype.readInt32BE=function readInt32BE(W,V){return V||checkOffset(W,4,this.length),this[W]<<24|this[W+1]<<16|this[W+2]<<8|this[W+3]},Buffer.prototype.readFloatLE=function readFloatLE(W,V){return V||checkOffset(W,4,this.length),oe.read(this,W,!0,23,4)},Buffer.prototype.readFloatBE=function readFloatBE(W,V){return V||checkOffset(W,4,this.length),oe.read(this,W,!1,23,4)},Buffer.prototype.readDoubleLE=function readDoubleLE(W,V){return V||checkOffset(W,8,this.length),oe.read(this,W,!0,52,8)},Buffer.prototype.readDoubleBE=function readDoubleBE(W,V){return V||checkOffset(W,8,this.length),oe.read(this,W,!1,52,8)},Buffer.prototype.writeUIntLE=function writeUIntLE(W,V,G,ie){(W=+W,V|=0,G|=0,ie)||checkInt(this,W,V,G,Math.pow(2,8*G)-1,0);var oe=1,ue=0;for(this[V]=255&W;++ue=0&&(ue*=256);)this[V+oe]=W/ue&255;return V+G},Buffer.prototype.writeUInt8=function writeUInt8(W,V,G){return W=+W,V|=0,G||checkInt(this,W,V,1,255,0),Buffer.TYPED_ARRAY_SUPPORT||(W=Math.floor(W)),this[V]=255&W,V+1},Buffer.prototype.writeUInt16LE=function writeUInt16LE(W,V,G){return W=+W,V|=0,G||checkInt(this,W,V,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[V]=255&W,this[V+1]=W>>>8):objectWriteUInt16(this,W,V,!0),V+2},Buffer.prototype.writeUInt16BE=function writeUInt16BE(W,V,G){return W=+W,V|=0,G||checkInt(this,W,V,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[V]=W>>>8,this[V+1]=255&W):objectWriteUInt16(this,W,V,!1),V+2},Buffer.prototype.writeUInt32LE=function writeUInt32LE(W,V,G){return W=+W,V|=0,G||checkInt(this,W,V,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[V+3]=W>>>24,this[V+2]=W>>>16,this[V+1]=W>>>8,this[V]=255&W):objectWriteUInt32(this,W,V,!0),V+4},Buffer.prototype.writeUInt32BE=function writeUInt32BE(W,V,G){return W=+W,V|=0,G||checkInt(this,W,V,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[V]=W>>>24,this[V+1]=W>>>16,this[V+2]=W>>>8,this[V+3]=255&W):objectWriteUInt32(this,W,V,!1),V+4},Buffer.prototype.writeIntLE=function writeIntLE(W,V,G,ie){if(W=+W,V|=0,!ie){var oe=Math.pow(2,8*G-1);checkInt(this,W,V,G,oe-1,-oe)}var ue=0,ae=1,se=0;for(this[V]=255&W;++ue>0)-se&255;return V+G},Buffer.prototype.writeIntBE=function writeIntBE(W,V,G,ie){if(W=+W,V|=0,!ie){var oe=Math.pow(2,8*G-1);checkInt(this,W,V,G,oe-1,-oe)}var ue=G-1,ae=1,se=0;for(this[V+ue]=255&W;--ue>=0&&(ae*=256);)W<0&&0===se&&0!==this[V+ue+1]&&(se=1),this[V+ue]=(W/ae>>0)-se&255;return V+G},Buffer.prototype.writeInt8=function writeInt8(W,V,G){return W=+W,V|=0,G||checkInt(this,W,V,1,127,-128),Buffer.TYPED_ARRAY_SUPPORT||(W=Math.floor(W)),W<0&&(W=255+W+1),this[V]=255&W,V+1},Buffer.prototype.writeInt16LE=function writeInt16LE(W,V,G){return W=+W,V|=0,G||checkInt(this,W,V,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[V]=255&W,this[V+1]=W>>>8):objectWriteUInt16(this,W,V,!0),V+2},Buffer.prototype.writeInt16BE=function writeInt16BE(W,V,G){return W=+W,V|=0,G||checkInt(this,W,V,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[V]=W>>>8,this[V+1]=255&W):objectWriteUInt16(this,W,V,!1),V+2},Buffer.prototype.writeInt32LE=function writeInt32LE(W,V,G){return W=+W,V|=0,G||checkInt(this,W,V,4,2147483647,-2147483648),Buffer.TYPED_ARRAY_SUPPORT?(this[V]=255&W,this[V+1]=W>>>8,this[V+2]=W>>>16,this[V+3]=W>>>24):objectWriteUInt32(this,W,V,!0),V+4},Buffer.prototype.writeInt32BE=function writeInt32BE(W,V,G){return W=+W,V|=0,G||checkInt(this,W,V,4,2147483647,-2147483648),W<0&&(W=4294967295+W+1),Buffer.TYPED_ARRAY_SUPPORT?(this[V]=W>>>24,this[V+1]=W>>>16,this[V+2]=W>>>8,this[V+3]=255&W):objectWriteUInt32(this,W,V,!1),V+4},Buffer.prototype.writeFloatLE=function writeFloatLE(W,V,G){return writeFloat(this,W,V,!0,G)},Buffer.prototype.writeFloatBE=function writeFloatBE(W,V,G){return writeFloat(this,W,V,!1,G)},Buffer.prototype.writeDoubleLE=function writeDoubleLE(W,V,G){return writeDouble(this,W,V,!0,G)},Buffer.prototype.writeDoubleBE=function writeDoubleBE(W,V,G){return writeDouble(this,W,V,!1,G)},Buffer.prototype.copy=function copy(W,V,G,ie){if(G||(G=0),ie||0===ie||(ie=this.length),V>=W.length&&(V=W.length),V||(V=0),ie>0&&ie=this.length)throw new RangeError("sourceStart out of bounds");if(ie<0)throw new RangeError("sourceEnd out of bounds");ie>this.length&&(ie=this.length),W.length-V=0;--oe)W[oe+V]=this[oe+G];else if(ue<1e3||!Buffer.TYPED_ARRAY_SUPPORT)for(oe=0;oe>>=0,G=void 0===G?this.length:G>>>0,W||(W=0),"number"==typeof W)for(ue=V;ue55295&&G<57344){if(!oe){if(G>56319){(V-=3)>-1&&ue.push(239,191,189);continue}if(ae+1===ie){(V-=3)>-1&&ue.push(239,191,189);continue}oe=G;continue}if(G<56320){(V-=3)>-1&&ue.push(239,191,189),oe=G;continue}G=65536+(oe-55296<<10|G-56320)}else oe&&(V-=3)>-1&&ue.push(239,191,189);if(oe=null,G<128){if((V-=1)<0)break;ue.push(G)}else if(G<2048){if((V-=2)<0)break;ue.push(G>>6|192,63&G|128)}else if(G<65536){if((V-=3)<0)break;ue.push(G>>12|224,G>>6&63|128,63&G|128)}else{if(!(G<1114112))throw new Error("Invalid code point");if((V-=4)<0)break;ue.push(G>>18|240,G>>12&63|128,G>>6&63|128,63&G|128)}}return ue}function base64ToBytes(W){return ie.toByteArray(function base64clean(W){if((W=function stringtrim(W){return W.trim?W.trim():W.replace(/^\s+|\s+$/g,"")}(W).replace(ae,"")).length<2)return"";for(;W.length%4!=0;)W+="=";return W}(W))}function blitBuffer(W,V,G,ie){for(var oe=0;oe=V.length||oe>=W.length);++oe)V[oe+G]=W[oe];return oe}}).call(this,G(47))},function(W,V,G){(function(W){var ie=Object.getOwnPropertyDescriptors||function getOwnPropertyDescriptors(W){for(var V=Object.keys(W),G={},ie=0;ie=ue)return W;switch(W){case"%s":return String(ie[G++]);case"%d":return Number(ie[G++]);case"%j":try{return JSON.stringify(ie[G++])}catch(W){return"[Circular]"}default:return W}})),se=ie[G];G=3&&(ie.depth=arguments[2]),arguments.length>=4&&(ie.colors=arguments[3]),isBoolean(G)?ie.showHidden=G:G&&V._extend(ie,G),isUndefined(ie.showHidden)&&(ie.showHidden=!1),isUndefined(ie.depth)&&(ie.depth=2),isUndefined(ie.colors)&&(ie.colors=!1),isUndefined(ie.customInspect)&&(ie.customInspect=!0),ie.colors&&(ie.stylize=stylizeWithColor),formatValue(ie,W,ie.depth)}function stylizeWithColor(W,V){var G=inspect.styles[V];return G?"["+inspect.colors[G][0]+"m"+W+"["+inspect.colors[G][1]+"m":W}function stylizeNoColor(W,V){return W}function formatValue(W,G,ie){if(W.customInspect&&G&&isFunction(G.inspect)&&G.inspect!==V.inspect&&(!G.constructor||G.constructor.prototype!==G)){var oe=G.inspect(ie,W);return isString(oe)||(oe=formatValue(W,oe,ie)),oe}var ue=function formatPrimitive(W,V){if(isUndefined(V))return W.stylize("undefined","undefined");if(isString(V)){var G="'"+JSON.stringify(V).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return W.stylize(G,"string")}if(isNumber(V))return W.stylize(""+V,"number");if(isBoolean(V))return W.stylize(""+V,"boolean");if(isNull(V))return W.stylize("null","null")}(W,G);if(ue)return ue;var ae=Object.keys(G),se=function arrayToHash(W){var V={};return W.forEach((function(W,G){V[W]=!0})),V}(ae);if(W.showHidden&&(ae=Object.getOwnPropertyNames(G)),isError(G)&&(ae.indexOf("message")>=0||ae.indexOf("description")>=0))return formatError(G);if(0===ae.length){if(isFunction(G)){var de=G.name?": "+G.name:"";return W.stylize("[Function"+de+"]","special")}if(isRegExp(G))return W.stylize(RegExp.prototype.toString.call(G),"regexp");if(isDate(G))return W.stylize(Date.prototype.toString.call(G),"date");if(isError(G))return formatError(G)}var le,pe="",he=!1,ve=["{","}"];(isArray(G)&&(he=!0,ve=["[","]"]),isFunction(G))&&(pe=" [Function"+(G.name?": "+G.name:"")+"]");return isRegExp(G)&&(pe=" "+RegExp.prototype.toString.call(G)),isDate(G)&&(pe=" "+Date.prototype.toUTCString.call(G)),isError(G)&&(pe=" "+formatError(G)),0!==ae.length||he&&0!=G.length?ie<0?isRegExp(G)?W.stylize(RegExp.prototype.toString.call(G),"regexp"):W.stylize("[Object]","special"):(W.seen.push(G),le=he?function formatArray(W,V,G,ie,oe){for(var ue=[],ae=0,se=V.length;ae=0&&0,W+V.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return G[0]+(""===V?"":V+"\n ")+" "+W.join(",\n ")+" "+G[1];return G[0]+V+" "+W.join(", ")+" "+G[1]}(le,pe,ve)):ve[0]+pe+ve[1]}function formatError(W){return"["+Error.prototype.toString.call(W)+"]"}function formatProperty(W,V,G,ie,oe,ue){var ae,se,de;if((de=Object.getOwnPropertyDescriptor(V,oe)||{value:V[oe]}).get?se=de.set?W.stylize("[Getter/Setter]","special"):W.stylize("[Getter]","special"):de.set&&(se=W.stylize("[Setter]","special")),hasOwnProperty(ie,oe)||(ae="["+oe+"]"),se||(W.seen.indexOf(de.value)<0?(se=isNull(G)?formatValue(W,de.value,null):formatValue(W,de.value,G-1)).indexOf("\n")>-1&&(se=ue?se.split("\n").map((function(W){return" "+W})).join("\n").substr(2):"\n"+se.split("\n").map((function(W){return" "+W})).join("\n")):se=W.stylize("[Circular]","special")),isUndefined(ae)){if(ue&&oe.match(/^\d+$/))return se;(ae=JSON.stringify(""+oe)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(ae=ae.substr(1,ae.length-2),ae=W.stylize(ae,"name")):(ae=ae.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),ae=W.stylize(ae,"string"))}return ae+": "+se}function isArray(W){return Array.isArray(W)}function isBoolean(W){return"boolean"==typeof W}function isNull(W){return null===W}function isNumber(W){return"number"==typeof W}function isString(W){return"string"==typeof W}function isUndefined(W){return void 0===W}function isRegExp(W){return isObject(W)&&"[object RegExp]"===objectToString(W)}function isObject(W){return"object"==typeof W&&null!==W}function isDate(W){return isObject(W)&&"[object Date]"===objectToString(W)}function isError(W){return isObject(W)&&("[object Error]"===objectToString(W)||W instanceof Error)}function isFunction(W){return"function"==typeof W}function objectToString(W){return Object.prototype.toString.call(W)}function pad(W){return W<10?"0"+W.toString(10):W.toString(10)}V.debuglog=function(G){if(isUndefined(ue)&&(ue=W.env.NODE_DEBUG||""),G=G.toUpperCase(),!ae[G])if(new RegExp("\\b"+G+"\\b","i").test(ue)){var ie=W.pid;ae[G]=function(){var W=V.format.apply(V,arguments);console.error("%s %d: %s",G,ie,W)}}else ae[G]=function(){};return ae[G]},V.inspect=inspect,inspect.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},inspect.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},V.isArray=isArray,V.isBoolean=isBoolean,V.isNull=isNull,V.isNullOrUndefined=function isNullOrUndefined(W){return null==W},V.isNumber=isNumber,V.isString=isString,V.isSymbol=function isSymbol(W){return"symbol"==typeof W},V.isUndefined=isUndefined,V.isRegExp=isRegExp,V.isObject=isObject,V.isDate=isDate,V.isError=isError,V.isFunction=isFunction,V.isPrimitive=function isPrimitive(W){return null===W||"boolean"==typeof W||"number"==typeof W||"string"==typeof W||"symbol"==typeof W||void 0===W},V.isBuffer=G(184);var se=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function timestamp(){var W=new Date,V=[pad(W.getHours()),pad(W.getMinutes()),pad(W.getSeconds())].join(":");return[W.getDate(),se[W.getMonth()],V].join(" ")}function hasOwnProperty(W,V){return Object.prototype.hasOwnProperty.call(W,V)}V.log=function(){console.log("%s - %s",timestamp(),V.format.apply(V,arguments))},V.inherits=G(185),V._extend=function(W,V){if(!V||!isObject(V))return W;for(var G=Object.keys(V),ie=G.length;ie--;)W[G[ie]]=V[G[ie]];return W};var de="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function callbackifyOnRejected(W,V){if(!W){var G=new Error("Promise was rejected with a falsy value");G.reason=W,W=G}return V(W)}V.promisify=function promisify(W){if("function"!=typeof W)throw new TypeError('The "original" argument must be of type Function');if(de&&W[de]){var V;if("function"!=typeof(V=W[de]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(V,de,{value:V,enumerable:!1,writable:!1,configurable:!0}),V}function V(){for(var V,G,ie=new Promise((function(W,ie){V=W,G=ie})),oe=[],ue=0;ue1&&"number"==typeof W[W.length-1]&&(G=W.pop())):"number"==typeof de&&(G=W.pop()),null===se&&1===W.length&&W[0]instanceof ie.a?W[0]:Object(ue.a)(G)(Object(ae.a)(W,se))}},function(W,V,G){"use strict";G.d(V,"a",(function(){return race}));var ie=G(1),oe=G(9),ue=G(33),ae=G(21),se=G(18);function race(){for(var W=[],V=0;V0)&&!(ie=ue.next()).done;)ae.push(ie.value)}catch(W){oe={error:W}}finally{try{ie&&!ie.done&&(G=ue.return)&&G.call(ue)}finally{if(oe)throw oe.error}}return ae};Object.defineProperty(V,"__esModule",{value:!0}),V.useSelector=void 0;var ue=__importStar(G(0)),ae=G(68);V.useSelector=function useSelector(W){var V=ae.useNeos(),G=__read(ue.useState(W(V.store.getState())),2),ie=G[0],oe=G[1];return ue.useEffect((function(){return V.store.subscribe((function(){var G=V.store.getState(),ie=W(G);oe(ie)}))}),[]),ie}},function(W,V,G){"use strict";var ie,oe="object"==typeof Reflect?Reflect:null,ue=oe&&"function"==typeof oe.apply?oe.apply:function ReflectApply(W,V,G){return Function.prototype.apply.call(W,V,G)};ie=oe&&"function"==typeof oe.ownKeys?oe.ownKeys:Object.getOwnPropertySymbols?function ReflectOwnKeys(W){return Object.getOwnPropertyNames(W).concat(Object.getOwnPropertySymbols(W))}:function ReflectOwnKeys(W){return Object.getOwnPropertyNames(W)};var ae=Number.isNaN||function NumberIsNaN(W){return W!=W};function EventEmitter(){EventEmitter.init.call(this)}W.exports=EventEmitter,W.exports.once=function once(W,V){return new Promise((function(G,ie){function errorListener(G){W.removeListener(V,resolver),ie(G)}function resolver(){"function"==typeof W.removeListener&&W.removeListener("error",errorListener),G([].slice.call(arguments))}eventTargetAgnosticAddListener(W,V,resolver,{once:!0}),"error"!==V&&function addErrorHandlerIfEventEmitter(W,V,G){"function"==typeof W.on&&eventTargetAgnosticAddListener(W,"error",V,G)}(W,errorListener,{once:!0})}))},EventEmitter.EventEmitter=EventEmitter,EventEmitter.prototype._events=void 0,EventEmitter.prototype._eventsCount=0,EventEmitter.prototype._maxListeners=void 0;var se=10;function checkListener(W){if("function"!=typeof W)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof W)}function _getMaxListeners(W){return void 0===W._maxListeners?EventEmitter.defaultMaxListeners:W._maxListeners}function _addListener(W,V,G,ie){var oe,ue,ae;if(checkListener(G),void 0===(ue=W._events)?(ue=W._events=Object.create(null),W._eventsCount=0):(void 0!==ue.newListener&&(W.emit("newListener",V,G.listener?G.listener:G),ue=W._events),ae=ue[V]),void 0===ae)ae=ue[V]=G,++W._eventsCount;else if("function"==typeof ae?ae=ue[V]=ie?[G,ae]:[ae,G]:ie?ae.unshift(G):ae.push(G),(oe=_getMaxListeners(W))>0&&ae.length>oe&&!ae.warned){ae.warned=!0;var se=new Error("Possible EventEmitter memory leak detected. "+ae.length+" "+String(V)+" listeners added. Use emitter.setMaxListeners() to increase limit");se.name="MaxListenersExceededWarning",se.emitter=W,se.type=V,se.count=ae.length,function ProcessEmitWarning(W){console&&console.warn&&console.warn(W)}(se)}return W}function onceWrapper(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(W,V,G){var ie={fired:!1,wrapFn:void 0,target:W,type:V,listener:G},oe=onceWrapper.bind(ie);return oe.listener=G,ie.wrapFn=oe,oe}function _listeners(W,V,G){var ie=W._events;if(void 0===ie)return[];var oe=ie[V];return void 0===oe?[]:"function"==typeof oe?G?[oe.listener||oe]:[oe]:G?function unwrapListeners(W){for(var V=new Array(W.length),G=0;G0&&(ae=V[0]),ae instanceof Error)throw ae;var se=new Error("Unhandled error."+(ae?" ("+ae.message+")":""));throw se.context=ae,se}var de=oe[W];if(void 0===de)return!1;if("function"==typeof de)ue(de,this,V);else{var le=de.length,pe=arrayClone(de,le);for(G=0;G=0;ue--)if(G[ue]===V||G[ue].listener===V){ae=G[ue].listener,oe=ue;break}if(oe<0)return this;0===oe?G.shift():function spliceOne(W,V){for(;V+1=0;ie--)this.removeListener(W,V[ie]);return this},EventEmitter.prototype.listeners=function listeners(W){return _listeners(this,W,!0)},EventEmitter.prototype.rawListeners=function rawListeners(W){return _listeners(this,W,!1)},EventEmitter.listenerCount=function(W,V){return"function"==typeof W.listenerCount?W.listenerCount(V):listenerCount.call(W,V)},EventEmitter.prototype.listenerCount=listenerCount,EventEmitter.prototype.eventNames=function eventNames(){return this._eventsCount>0?ie(this._events):[]}},function(W,V,G){(V=W.exports=G(114)).Stream=V,V.Readable=V,V.Writable=G(100),V.Duplex=G(48),V.Transform=G(118),V.PassThrough=G(194)},function(W,V,G){var ie=G(73),oe=ie.Buffer;function copyProps(W,V){for(var G in W)V[G]=W[G]}function SafeBuffer(W,V,G){return oe(W,V,G)}oe.from&&oe.alloc&&oe.allocUnsafe&&oe.allocUnsafeSlow?W.exports=ie:(copyProps(ie,V),V.Buffer=SafeBuffer),copyProps(oe,SafeBuffer),SafeBuffer.from=function(W,V,G){if("number"==typeof W)throw new TypeError("Argument must not be a number");return oe(W,V,G)},SafeBuffer.alloc=function(W,V,G){if("number"!=typeof W)throw new TypeError("Argument must be a number");var ie=oe(W);return void 0!==V?"string"==typeof G?ie.fill(V,G):ie.fill(V):ie.fill(0),ie},SafeBuffer.allocUnsafe=function(W){if("number"!=typeof W)throw new TypeError("Argument must be a number");return oe(W)},SafeBuffer.allocUnsafeSlow=function(W){if("number"!=typeof W)throw new TypeError("Argument must be a number");return ie.SlowBuffer(W)}},function(W,V,G){"use strict";(function(V,ie,oe){var ue=G(75);function CorkedRequest(W){var V=this;this.next=null,this.entry=null,this.finish=function(){!function onCorkedFinish(W,V,G){var ie=W.entry;W.entry=null;for(;ie;){var oe=ie.callback;V.pendingcb--,oe(G),ie=ie.next}V.corkedRequestsFree?V.corkedRequestsFree.next=W:V.corkedRequestsFree=W}(V,W)}}W.exports=Writable;var ae,se=!V.browser&&["v0.10","v0.9."].indexOf(V.version.slice(0,5))>-1?ie:ue.nextTick;Writable.WritableState=WritableState;var de=Object.create(G(54));de.inherits=G(53);var le={deprecate:G(192)},pe=G(115),he=G(99).Buffer,ve=oe.Uint8Array||function(){};var ge,Se=G(116);function nop(){}function WritableState(W,V){ae=ae||G(48),W=W||{};var ie=V instanceof ae;this.objectMode=!!W.objectMode,ie&&(this.objectMode=this.objectMode||!!W.writableObjectMode);var oe=W.highWaterMark,de=W.writableHighWaterMark,le=this.objectMode?16:16384;this.highWaterMark=oe||0===oe?oe:ie&&(de||0===de)?de:le,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var pe=!1===W.decodeStrings;this.decodeStrings=!pe,this.defaultEncoding=W.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(W){!function onwrite(W,V){var G=W._writableState,ie=G.sync,oe=G.writecb;if(function onwriteStateUpdate(W){W.writing=!1,W.writecb=null,W.length-=W.writelen,W.writelen=0}(G),V)!function onwriteError(W,V,G,ie,oe){--V.pendingcb,G?(ue.nextTick(oe,ie),ue.nextTick(finishMaybe,W,V),W._writableState.errorEmitted=!0,W.emit("error",ie)):(oe(ie),W._writableState.errorEmitted=!0,W.emit("error",ie),finishMaybe(W,V))}(W,G,ie,V,oe);else{var ae=needFinish(G);ae||G.corked||G.bufferProcessing||!G.bufferedRequest||clearBuffer(W,G),ie?se(afterWrite,W,G,ae,oe):afterWrite(W,G,ae,oe)}}(V,W)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new CorkedRequest(this)}function Writable(W){if(ae=ae||G(48),!(ge.call(Writable,this)||this instanceof ae))return new Writable(W);this._writableState=new WritableState(W,this),this.writable=!0,W&&("function"==typeof W.write&&(this._write=W.write),"function"==typeof W.writev&&(this._writev=W.writev),"function"==typeof W.destroy&&(this._destroy=W.destroy),"function"==typeof W.final&&(this._final=W.final)),pe.call(this)}function doWrite(W,V,G,ie,oe,ue,ae){V.writelen=ie,V.writecb=ae,V.writing=!0,V.sync=!0,G?W._writev(oe,V.onwrite):W._write(oe,ue,V.onwrite),V.sync=!1}function afterWrite(W,V,G,ie){G||function onwriteDrain(W,V){0===V.length&&V.needDrain&&(V.needDrain=!1,W.emit("drain"))}(W,V),V.pendingcb--,ie(),finishMaybe(W,V)}function clearBuffer(W,V){V.bufferProcessing=!0;var G=V.bufferedRequest;if(W._writev&&G&&G.next){var ie=V.bufferedRequestCount,oe=new Array(ie),ue=V.corkedRequestsFree;ue.entry=G;for(var ae=0,se=!0;G;)oe[ae]=G,G.isBuf||(se=!1),G=G.next,ae+=1;oe.allBuffers=se,doWrite(W,V,!0,V.length,oe,"",ue.finish),V.pendingcb++,V.lastBufferedRequest=null,ue.next?(V.corkedRequestsFree=ue.next,ue.next=null):V.corkedRequestsFree=new CorkedRequest(V),V.bufferedRequestCount=0}else{for(;G;){var de=G.chunk,le=G.encoding,pe=G.callback;if(doWrite(W,V,!1,V.objectMode?1:de.length,de,le,pe),G=G.next,V.bufferedRequestCount--,V.writing)break}null===G&&(V.lastBufferedRequest=null)}V.bufferedRequest=G,V.bufferProcessing=!1}function needFinish(W){return W.ending&&0===W.length&&null===W.bufferedRequest&&!W.finished&&!W.writing}function callFinal(W,V){W._final((function(G){V.pendingcb--,G&&W.emit("error",G),V.prefinished=!0,W.emit("prefinish"),finishMaybe(W,V)}))}function finishMaybe(W,V){var G=needFinish(V);return G&&(!function prefinish(W,V){V.prefinished||V.finalCalled||("function"==typeof W._final?(V.pendingcb++,V.finalCalled=!0,ue.nextTick(callFinal,W,V)):(V.prefinished=!0,W.emit("prefinish")))}(W,V),0===V.pendingcb&&(V.finished=!0,W.emit("finish"))),G}de.inherits(Writable,pe),WritableState.prototype.getBuffer=function getBuffer(){for(var W=this.bufferedRequest,V=[];W;)V.push(W),W=W.next;return V},function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:le.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(W){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(ge=Function.prototype[Symbol.hasInstance],Object.defineProperty(Writable,Symbol.hasInstance,{value:function(W){return!!ge.call(this,W)||this===Writable&&(W&&W._writableState instanceof WritableState)}})):ge=function(W){return W instanceof this},Writable.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},Writable.prototype.write=function(W,V,G){var ie=this._writableState,oe=!1,ae=!ie.objectMode&&function _isUint8Array(W){return he.isBuffer(W)||W instanceof ve}(W);return ae&&!he.isBuffer(W)&&(W=function _uint8ArrayToBuffer(W){return he.from(W)}(W)),"function"==typeof V&&(G=V,V=null),ae?V="buffer":V||(V=ie.defaultEncoding),"function"!=typeof G&&(G=nop),ie.ended?function writeAfterEnd(W,V){var G=new Error("write after end");W.emit("error",G),ue.nextTick(V,G)}(this,G):(ae||function validChunk(W,V,G,ie){var oe=!0,ae=!1;return null===G?ae=new TypeError("May not write null values to stream"):"string"==typeof G||void 0===G||V.objectMode||(ae=new TypeError("Invalid non-string/buffer chunk")),ae&&(W.emit("error",ae),ue.nextTick(ie,ae),oe=!1),oe}(this,ie,W,G))&&(ie.pendingcb++,oe=function writeOrBuffer(W,V,G,ie,oe,ue){if(!G){var ae=function decodeChunk(W,V,G){W.objectMode||!1===W.decodeStrings||"string"!=typeof V||(V=he.from(V,G));return V}(V,ie,oe);ie!==ae&&(G=!0,oe="buffer",ie=ae)}var se=V.objectMode?1:ie.length;V.length+=se;var de=V.length-1))throw new TypeError("Unknown encoding: "+W);return this._writableState.defaultEncoding=W,this},Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Writable.prototype._write=function(W,V,G){G(new Error("_write() is not implemented"))},Writable.prototype._writev=null,Writable.prototype.end=function(W,V,G){var ie=this._writableState;"function"==typeof W?(G=W,W=null,V=null):"function"==typeof V&&(G=V,V=null),null!=W&&this.write(W,V),ie.corked&&(ie.corked=1,this.uncork()),ie.ending||ie.finished||function endWritable(W,V,G){V.ending=!0,finishMaybe(W,V),G&&(V.finished?ue.nextTick(G):W.once("finish",G));V.ended=!0,W.writable=!1}(this,ie,G)},Object.defineProperty(Writable.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(W){this._writableState&&(this._writableState.destroyed=W)}}),Writable.prototype.destroy=Se.destroy,Writable.prototype._undestroy=Se.undestroy,Writable.prototype._destroy=function(W,V){this.end(),V(W)}}).call(this,G(44),G(190).setImmediate,G(47))},function(W,V,G){"use strict";W.exports=G(174)},function(W,V,G){"use strict";var ie=G(175),oe={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ue={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ae={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},se={};function getStatics(W){return ie.isMemo(W)?ae:se[W.$$typeof]||oe}se[ie.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},se[ie.Memo]=ae;var de=Object.defineProperty,le=Object.getOwnPropertyNames,pe=Object.getOwnPropertySymbols,he=Object.getOwnPropertyDescriptor,ve=Object.getPrototypeOf,ge=Object.prototype;W.exports=function hoistNonReactStatics(W,V,G){if("string"!=typeof V){if(ge){var ie=ve(V);ie&&ie!==ge&&hoistNonReactStatics(W,ie,G)}var oe=le(V);pe&&(oe=oe.concat(pe(V)));for(var ae=getStatics(W),se=getStatics(V),Se=0;Se0)&&!(ie=ue.next()).done;)ae.push(ie.value)}catch(W){oe={error:W}}finally{try{ie&&!ie.done&&(G=ue.return)&&G.call(ue)}finally{if(oe)throw oe.error}}return ae},__values=function(W){var V="function"==typeof Symbol&&Symbol.iterator,G=V&&W[V],ie=0;if(G)return G.call(W);if(W&&"number"==typeof W.length)return{next:function next(){return W&&ie>=W.length&&(W=void 0),{value:W&&W[ie++],done:!W}}};throw new TypeError(V?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(V,"__esModule",{value:!0}),V.useDocumentNodeContextPath=V.useSiteNodeContextPath=V.ContextPath=void 0;var ue=__importStar(G(0)),ae=G(96),se=function(){function ContextPath(W,V){this.path=W,this.context=V}return ContextPath.fromString=function(W){var V=__read((null!=W?W:"").split("@"),2),G=V[0],ie=V[1];return G&&W?new ContextPath(G,ie):null},ContextPath.prototype.adopt=function(W){var V=__read((null!=W?W:"").split("@"),1)[0];return V?new ContextPath(V,this.context):null},ContextPath.prototype.getIntermediateContextPaths=function(W){var V,G;if(W.path.startsWith(this.path)){var ie=W.path.split("/"),oe=[];try{for(var ue=__values(ie.entries()),ae=ue.next();!ae.done;ae=ue.next()){var se=__read(ae.value,1)[0],de=ie.slice(0,-se).join("/");if(de&&oe.push(new ContextPath(de,this.context)),de===this.path)break}}catch(W){V={error:W}}finally{try{ae&&!ae.done&&(G=ue.return)&&G.call(ue)}finally{if(V)throw V.error}}return oe}return[]},ContextPath.prototype.equals=function(W){return this.path===W.path&&this.context===W.context},ContextPath.prototype.toString=function(){return this.path+"@"+this.context},Object.defineProperty(ContextPath.prototype,"depth",{get:function get(){var W,V;return null!==(V=null===(W=this.path.match(/\//g))||void 0===W?void 0:W.length)&&void 0!==V?V:0},enumerable:!1,configurable:!0}),ContextPath}();V.ContextPath=se,V.useSiteNodeContextPath=function useSiteNodeContextPath(){var W=ae.useSelector((function(W){var V,G;return null===(G=null===(V=W.cr)||void 0===V?void 0:V.nodes)||void 0===G?void 0:G.siteNode}));return ue.useMemo((function(){return W?se.fromString(W):null}),[W])},V.useDocumentNodeContextPath=function useDocumentNodeContextPath(){var W=ae.useSelector((function(W){var V,G;return null===(G=null===(V=W.cr)||void 0===V?void 0:V.nodes)||void 0===G?void 0:G.documentNode}));return ue.useMemo((function(){return W?se.fromString(W):null}),[W])}},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.fetchWithErrorHandling=void 0;var ie=function _interopRequireDefault(W){return W&&W.__esModule?W:{default:W}}(G(46));V.default=(0,ie.default)("NeosProjectPackages")().NeosUiBackendConnectorDefault;var oe=(0,ie.default)("NeosProjectPackages")().NeosUiBackendConnector.fetchWithErrorHandling;V.fetchWithErrorHandling=oe},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0});var ie=G(5),oe=G(0),ue=parseInt(oe.version.substr(0,oe.version.indexOf(".")))>15,isFn=function(W){return"function"==typeof W};V.default=function(W,V){for(var G=[],ae=2;ae=0;le--)if(he[le]!==ve[le])return!1;for(le=he.length-1;le>=0;le--)if(de=he[le],!_deepEqual(W[de],V[de],G,ie))return!1;return!0}(W,V,G,ie))}return G?W===V:W==V}function isArguments(W){return"[object Arguments]"==Object.prototype.toString.call(W)}function expectedException(W,V){if(!W||!V)return!1;if("[object RegExp]"==Object.prototype.toString.call(V))return V.test(W);try{if(W instanceof V)return!0}catch(W){}return!Error.isPrototypeOf(V)&&!0===V.call({},W)}function _throws(W,V,G,ie){var ue;if("function"!=typeof V)throw new TypeError('"block" argument must be a function');"string"==typeof G&&(ie=G,G=null),ue=function _tryBlock(W){var V;try{W()}catch(W){V=W}return V}(V),ie=(G&&G.name?" ("+G.name+").":".")+(ie?" "+ie:"."),W&&!ue&&fail(ue,G,"Missing expected exception"+ie);var ae="string"==typeof ie,se=!W&&ue&&!G;if((!W&&oe.isError(ue)&&ae&&expectedException(ue,G)||se)&&fail(ue,G,"Got unwanted exception"+ie),W&&ue&&G&&!expectedException(ue,G)||!W&&ue)throw ue}de.AssertionError=function AssertionError(W){this.name="AssertionError",this.actual=W.actual,this.expected=W.expected,this.operator=W.operator,W.message?(this.message=W.message,this.generatedMessage=!1):(this.message=function getMessage(W){return truncate(inspect(W.actual),128)+" "+W.operator+" "+truncate(inspect(W.expected),128)}(this),this.generatedMessage=!0);var V=W.stackStartFunction||fail;if(Error.captureStackTrace)Error.captureStackTrace(this,V);else{var G=new Error;if(G.stack){var ie=G.stack,oe=getName(V),ue=ie.indexOf("\n"+oe);if(ue>=0){var ae=ie.indexOf("\n",ue+1);ie=ie.substring(ae+1)}this.stack=ie}}},oe.inherits(de.AssertionError,Error),de.fail=fail,de.ok=ok,de.equal=function equal(W,V,G){W!=V&&fail(W,V,G,"==",de.equal)},de.notEqual=function notEqual(W,V,G){W==V&&fail(W,V,G,"!=",de.notEqual)},de.deepEqual=function deepEqual(W,V,G){_deepEqual(W,V,!1)||fail(W,V,G,"deepEqual",de.deepEqual)},de.deepStrictEqual=function deepStrictEqual(W,V,G){_deepEqual(W,V,!0)||fail(W,V,G,"deepStrictEqual",de.deepStrictEqual)},de.notDeepEqual=function notDeepEqual(W,V,G){_deepEqual(W,V,!1)&&fail(W,V,G,"notDeepEqual",de.notDeepEqual)},de.notDeepStrictEqual=function notDeepStrictEqual(W,V,G){_deepEqual(W,V,!0)&&fail(W,V,G,"notDeepStrictEqual",notDeepStrictEqual)},de.strictEqual=function strictEqual(W,V,G){W!==V&&fail(W,V,G,"===",de.strictEqual)},de.notStrictEqual=function notStrictEqual(W,V,G){W===V&&fail(W,V,G,"!==",de.notStrictEqual)},de.throws=function(W,V,G){_throws(!0,W,V,G)},de.doesNotThrow=function(W,V,G){_throws(!1,W,V,G)},de.ifError=function(W){if(W)throw W},de.strict=ie((function strict(W,V){W||fail(W,!0,V,"==",strict)}),de,{equal:de.strictEqual,deepEqual:de.deepStrictEqual,notEqual:de.notStrictEqual,notDeepEqual:de.notDeepStrictEqual}),de.strict.strict=de.strict;var pe=Object.keys||function(W){var V=[];for(var G in W)ue.call(W,G)&&V.push(G);return V}}).call(this,G(47))},function(W,V,G){"use strict";(function(V,ie){var oe=G(75);W.exports=Readable;var ue,ae=G(112);Readable.ReadableState=ReadableState;G(97).EventEmitter;var EElistenerCount=function(W,V){return W.listeners(V).length},se=G(115),de=G(99).Buffer,le=V.Uint8Array||function(){};var pe=Object.create(G(54));pe.inherits=G(53);var he=G(187),ve=void 0;ve=he&&he.debuglog?he.debuglog("stream"):function(){};var ge,Se=G(188),we=G(116);pe.inherits(Readable,se);var Ce=["error","close","destroy","pause","resume"];function ReadableState(W,V){W=W||{};var ie=V instanceof(ue=ue||G(48));this.objectMode=!!W.objectMode,ie&&(this.objectMode=this.objectMode||!!W.readableObjectMode);var oe=W.highWaterMark,ae=W.readableHighWaterMark,se=this.objectMode?16:16384;this.highWaterMark=oe||0===oe?oe:ie&&(ae||0===ae)?ae:se,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new Se,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=W.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,W.encoding&&(ge||(ge=G(117).StringDecoder),this.decoder=new ge(W.encoding),this.encoding=W.encoding)}function Readable(W){if(ue=ue||G(48),!(this instanceof Readable))return new Readable(W);this._readableState=new ReadableState(W,this),this.readable=!0,W&&("function"==typeof W.read&&(this._read=W.read),"function"==typeof W.destroy&&(this._destroy=W.destroy)),se.call(this)}function readableAddChunk(W,V,G,ie,oe){var ue,ae=W._readableState;null===V?(ae.reading=!1,function onEofChunk(W,V){if(V.ended)return;if(V.decoder){var G=V.decoder.end();G&&G.length&&(V.buffer.push(G),V.length+=V.objectMode?1:G.length)}V.ended=!0,emitReadable(W)}(W,ae)):(oe||(ue=function chunkInvalid(W,V){var G;(function _isUint8Array(W){return de.isBuffer(W)||W instanceof le})(V)||"string"==typeof V||void 0===V||W.objectMode||(G=new TypeError("Invalid non-string/buffer chunk"));return G}(ae,V)),ue?W.emit("error",ue):ae.objectMode||V&&V.length>0?("string"==typeof V||ae.objectMode||Object.getPrototypeOf(V)===de.prototype||(V=function _uint8ArrayToBuffer(W){return de.from(W)}(V)),ie?ae.endEmitted?W.emit("error",new Error("stream.unshift() after end event")):addChunk(W,ae,V,!0):ae.ended?W.emit("error",new Error("stream.push() after EOF")):(ae.reading=!1,ae.decoder&&!G?(V=ae.decoder.write(V),ae.objectMode||0!==V.length?addChunk(W,ae,V,!1):maybeReadMore(W,ae)):addChunk(W,ae,V,!1))):ie||(ae.reading=!1));return function needMoreData(W){return!W.ended&&(W.needReadable||W.lengthV.highWaterMark&&(V.highWaterMark=function computeNewHighWaterMark(W){return W>=8388608?W=8388608:(W--,W|=W>>>1,W|=W>>>2,W|=W>>>4,W|=W>>>8,W|=W>>>16,W++),W}(W)),W<=V.length?W:V.ended?V.length:(V.needReadable=!0,0))}function emitReadable(W){var V=W._readableState;V.needReadable=!1,V.emittedReadable||(ve("emitReadable",V.flowing),V.emittedReadable=!0,V.sync?oe.nextTick(emitReadable_,W):emitReadable_(W))}function emitReadable_(W){ve("emit readable"),W.emit("readable"),flow(W)}function maybeReadMore(W,V){V.readingMore||(V.readingMore=!0,oe.nextTick(maybeReadMore_,W,V))}function maybeReadMore_(W,V){for(var G=V.length;!V.reading&&!V.flowing&&!V.ended&&V.length=V.length?(G=V.decoder?V.buffer.join(""):1===V.buffer.length?V.buffer.head.data:V.buffer.concat(V.length),V.buffer.clear()):G=function fromListPartial(W,V,G){var ie;Wue.length?ue.length:W;if(ae===ue.length?oe+=ue:oe+=ue.slice(0,W),0===(W-=ae)){ae===ue.length?(++ie,G.next?V.head=G.next:V.head=V.tail=null):(V.head=G,G.data=ue.slice(ae));break}++ie}return V.length-=ie,oe}(W,V):function copyFromBuffer(W,V){var G=de.allocUnsafe(W),ie=V.head,oe=1;ie.data.copy(G),W-=ie.data.length;for(;ie=ie.next;){var ue=ie.data,ae=W>ue.length?ue.length:W;if(ue.copy(G,G.length-W,0,ae),0===(W-=ae)){ae===ue.length?(++oe,ie.next?V.head=ie.next:V.head=V.tail=null):(V.head=ie,ie.data=ue.slice(ae));break}++oe}return V.length-=oe,G}(W,V);return ie}(W,V.buffer,V.decoder),G);var G}function endReadable(W){var V=W._readableState;if(V.length>0)throw new Error('"endReadable()" called on non-empty stream');V.endEmitted||(V.ended=!0,oe.nextTick(endReadableNT,V,W))}function endReadableNT(W,V){W.endEmitted||0!==W.length||(W.endEmitted=!0,V.readable=!1,V.emit("end"))}function indexOf(W,V){for(var G=0,ie=W.length;G=V.highWaterMark||V.ended))return ve("read: emitReadable",V.length,V.ended),0===V.length&&V.ended?endReadable(this):emitReadable(this),null;if(0===(W=howMuchToRead(W,V))&&V.ended)return 0===V.length&&endReadable(this),null;var ie,oe=V.needReadable;return ve("need readable",oe),(0===V.length||V.length-W0?fromList(W,V):null)?(V.needReadable=!0,W=0):V.length-=W,0===V.length&&(V.ended||(V.needReadable=!0),G!==W&&V.ended&&endReadable(this)),null!==ie&&this.emit("data",ie),ie},Readable.prototype._read=function(W){this.emit("error",new Error("_read() is not implemented"))},Readable.prototype.pipe=function(W,V){var G=this,ue=this._readableState;switch(ue.pipesCount){case 0:ue.pipes=W;break;case 1:ue.pipes=[ue.pipes,W];break;default:ue.pipes.push(W)}ue.pipesCount+=1,ve("pipe count=%d opts=%j",ue.pipesCount,V);var se=(!V||!1!==V.end)&&W!==ie.stdout&&W!==ie.stderr?onend:unpipe;function onunpipe(V,ie){ve("onunpipe"),V===G&&ie&&!1===ie.hasUnpiped&&(ie.hasUnpiped=!0,function cleanup(){ve("cleanup"),W.removeListener("close",onclose),W.removeListener("finish",onfinish),W.removeListener("drain",de),W.removeListener("error",onerror),W.removeListener("unpipe",onunpipe),G.removeListener("end",onend),G.removeListener("end",unpipe),G.removeListener("data",ondata),le=!0,!ue.awaitDrain||W._writableState&&!W._writableState.needDrain||de()}())}function onend(){ve("onend"),W.end()}ue.endEmitted?oe.nextTick(se):G.once("end",se),W.on("unpipe",onunpipe);var de=function pipeOnDrain(W){return function(){var V=W._readableState;ve("pipeOnDrain",V.awaitDrain),V.awaitDrain&&V.awaitDrain--,0===V.awaitDrain&&EElistenerCount(W,"data")&&(V.flowing=!0,flow(W))}}(G);W.on("drain",de);var le=!1;var pe=!1;function ondata(V){ve("ondata"),pe=!1,!1!==W.write(V)||pe||((1===ue.pipesCount&&ue.pipes===W||ue.pipesCount>1&&-1!==indexOf(ue.pipes,W))&&!le&&(ve("false write response, pause",G._readableState.awaitDrain),G._readableState.awaitDrain++,pe=!0),G.pause())}function onerror(V){ve("onerror",V),unpipe(),W.removeListener("error",onerror),0===EElistenerCount(W,"error")&&W.emit("error",V)}function onclose(){W.removeListener("finish",onfinish),unpipe()}function onfinish(){ve("onfinish"),W.removeListener("close",onclose),unpipe()}function unpipe(){ve("unpipe"),G.unpipe(W)}return G.on("data",ondata),function prependListener(W,V,G){if("function"==typeof W.prependListener)return W.prependListener(V,G);W._events&&W._events[V]?ae(W._events[V])?W._events[V].unshift(G):W._events[V]=[G,W._events[V]]:W.on(V,G)}(W,"error",onerror),W.once("close",onclose),W.once("finish",onfinish),W.emit("pipe",G),ue.flowing||(ve("pipe resume"),G.resume()),W},Readable.prototype.unpipe=function(W){var V=this._readableState,G={hasUnpiped:!1};if(0===V.pipesCount)return this;if(1===V.pipesCount)return W&&W!==V.pipes||(W||(W=V.pipes),V.pipes=null,V.pipesCount=0,V.flowing=!1,W&&W.emit("unpipe",this,G)),this;if(!W){var ie=V.pipes,oe=V.pipesCount;V.pipes=null,V.pipesCount=0,V.flowing=!1;for(var ue=0;ue>5==6?2:W>>4==14?3:W>>3==30?4:W>>6==2?-1:-2}function utf8FillLast(W){var V=this.lastTotal-this.lastNeed,G=function utf8CheckExtraBytes(W,V,G){if(128!=(192&V[0]))return W.lastNeed=0,"�";if(W.lastNeed>1&&V.length>1){if(128!=(192&V[1]))return W.lastNeed=1,"�";if(W.lastNeed>2&&V.length>2&&128!=(192&V[2]))return W.lastNeed=2,"�"}}(this,W);return void 0!==G?G:this.lastNeed<=W.length?(W.copy(this.lastChar,V,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(W.copy(this.lastChar,V,0,W.length),void(this.lastNeed-=W.length))}function utf16Text(W,V){if((W.length-V)%2==0){var G=W.toString("utf16le",V);if(G){var ie=G.charCodeAt(G.length-1);if(ie>=55296&&ie<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=W[W.length-2],this.lastChar[1]=W[W.length-1],G.slice(0,-1)}return G}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=W[W.length-1],W.toString("utf16le",V,W.length-1)}function utf16End(W){var V=W&&W.length?this.write(W):"";if(this.lastNeed){var G=this.lastTotal-this.lastNeed;return V+this.lastChar.toString("utf16le",0,G)}return V}function base64Text(W,V){var G=(W.length-V)%3;return 0===G?W.toString("base64",V):(this.lastNeed=3-G,this.lastTotal=3,1===G?this.lastChar[0]=W[W.length-1]:(this.lastChar[0]=W[W.length-2],this.lastChar[1]=W[W.length-1]),W.toString("base64",V,W.length-G))}function base64End(W){var V=W&&W.length?this.write(W):"";return this.lastNeed?V+this.lastChar.toString("base64",0,3-this.lastNeed):V}function simpleWrite(W){return W.toString(this.encoding)}function simpleEnd(W){return W&&W.length?this.write(W):""}V.StringDecoder=StringDecoder,StringDecoder.prototype.write=function(W){if(0===W.length)return"";var V,G;if(this.lastNeed){if(void 0===(V=this.fillLast(W)))return"";G=this.lastNeed,this.lastNeed=0}else G=0;return G=0)return oe>0&&(W.lastNeed=oe-1),oe;if(--ie=0)return oe>0&&(W.lastNeed=oe-2),oe;if(--ie=0)return oe>0&&(2===oe?oe=0:W.lastNeed=oe-3),oe;return 0}(this,W,V);if(!this.lastNeed)return W.toString("utf8",V);this.lastTotal=G;var ie=W.length-(G-this.lastNeed);return W.copy(this.lastChar,0,ie),W.toString("utf8",V,ie)},StringDecoder.prototype.fillLast=function(W){if(this.lastNeed<=W.length)return W.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);W.copy(this.lastChar,this.lastTotal-this.lastNeed,0,W.length),this.lastNeed-=W.length}},function(W,V,G){"use strict";W.exports=Transform;var ie=G(48),oe=Object.create(G(54));function afterTransform(W,V){var G=this._transformState;G.transforming=!1;var ie=G.writecb;if(!ie)return this.emit("error",new Error("write callback called multiple times"));G.writechunk=null,G.writecb=null,null!=V&&this.push(V),ie(W);var oe=this._readableState;oe.reading=!1,(oe.needReadable||oe.length>>0).toString(36)}(G.stringify(W))},selector:function(W,V){return W+(":"===V[0]?"":" ")+V},putRaw:function(W){G.raw+=W}},W);return G.client&&(G.sh||document.head.appendChild(G.sh=document.createElement("style")),G.putRaw=function(W){var V=G.sh.sheet;try{V.insertRule(W,V.cssRules.length)}catch(W){}}),G.put=function(W,V,ie){var oe,ue,ae="",se=[];for(oe in V)(ue=V[oe])instanceof Object&&!(ue instanceof Array)?se.push(oe):ae+=G.decl(oe,ue,W,ie);ae&&(ae=W+"{"+ae+"}",G.putRaw(ie?ie+"{"+ae+"}":ae));for(var de=0;de-1,le=G.split(",");if(de)for(var pe=0;peie&&(ie=(V=V.trim()).charCodeAt(0)),ie){case 38:return V.replace(se,"$1"+W.trim());case 58:return W.trim()+V.replace(se,"$1"+W.trim());default:if(0<1*G&&0le.charCodeAt(8))break;case 115:se=se.replace(le,"-webkit-"+le)+";"+se;break;case 207:case 102:se=se.replace(le,"-webkit-"+(102oe.charCodeAt(0)&&(oe=oe.trim()),oe=[oe],0se)&&(it=(at=at.replace(" ",":")).length),0=0)){if(Qe.push(W),Ue[W]){var se=et(Ue[W],!0);try{for(var de=ie.__values(se),le=de.next();!le.done;le=de.next()){var pe=le.value;addToResults(Ue[W][pe],V)}}catch(W){G={error:W}}finally{try{le&&!le.done&&(oe=de.return)&&oe.call(de)}finally{if(G)throw G.error}}}if(V.push(W),ze[W]){var he=et(ze[W],!1);try{for(var ve=ie.__values(he),ge=ve.next();!ge.done;ge=ve.next()){pe=ge.value;addToResults(ze[W][pe],V)}}catch(W){ue={error:W}}finally{try{ge&&!ge.done&&(ae=ve.return)&&ae.call(ve)}finally{if(ue)throw ue.error}}}}}))};try{for(var rt=ie.__values(et(Le,!1)),nt=rt.next();!nt.done;nt=rt.next()){var it=nt.value;tt(Le[it],He)}}catch(W){oe={error:W}}finally{try{nt&&!nt.done&&(ue=rt.return)&&ue.call(rt)}finally{if(oe)throw oe.error}}try{for(var ot=ie.__values(et(Re,!0)),ut=ot.next();!ut.done;ut=ot.next()){it=ut.value;tt(Re[it],Ke)}}catch(W){ae={error:W}}finally{try{ut&&!ut.done&&(se=ot.return)&&se.call(ot)}finally{if(ae)throw ae.error}}try{for(var at=ie.__values(et(De,!0)),st=at.next();!st.done;st=at.next()){it=st.value;tt(De[it],Ze)}}catch(W){de={error:W}}finally{try{st&&!st.done&&(le=at.return)&&le.call(at)}finally{if(de)throw de.error}}try{for(var ct=ie.__values(Object.keys(Ue)),dt=ct.next();!dt.done;dt=ct.next()){var lt=dt.value;if(!(Qe.indexOf(lt)>=0))try{for(var ft=(ve=void 0,ie.__values(et(Ue[lt],!1))),pt=ft.next();!pt.done;pt=ft.next()){it=pt.value;tt(Ue[lt][it],He)}}catch(W){ve={error:W}}finally{try{pt&&!pt.done&&(ge=ft.return)&&ge.call(ft)}finally{if(ve)throw ve.error}}}}catch(W){pe={error:W}}finally{try{dt&&!dt.done&&(he=ct.return)&&he.call(ct)}finally{if(pe)throw pe.error}}try{for(var ht=ie.__values(Object.keys(ze)),bt=ht.next();!bt.done;bt=ht.next()){lt=bt.value;if(!(Qe.indexOf(lt)>=0))try{for(var yt=(Ce=void 0,ie.__values(et(ze[lt],!1))),vt=yt.next();!vt.done;vt=yt.next()){it=vt.value;tt(ze[lt][it],Ke)}}catch(W){Ce={error:W}}finally{try{vt&&!vt.done&&(Pe=yt.return)&&Pe.call(yt)}finally{if(Ce)throw Ce.error}}}}catch(W){Se={error:W}}finally{try{bt&&!bt.done&&(we=ht.return)&&we.call(ht)}finally{if(Se)throw Se.error}}return ie.__spread(He,Ke,Ze).map((function(W){return Fe[W]})).map((function(V){return W[V]}))}},function(W,V,G){"use strict";V.__esModule=!0;var ie=G(1),oe=function(W){function SynchronousMetaRegistry(){return null!==W&&W.apply(this,arguments)||this}return ie.__extends(SynchronousMetaRegistry,W),SynchronousMetaRegistry.prototype.set=function(V,G){if("d8a5aa78-978e-11e6-ae22-56b6b6499611"!==G.SERIAL_VERSION_UID)throw new Error("You can only add registries to a meta registry");return W.prototype.set.call(this,V,G)},SynchronousMetaRegistry}(ie.__importDefault(G(105)).default);V.default=oe},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.registerDialog=V.registerLinkTypes=void 0;var ie=G(146);Object.defineProperty(V,"registerLinkTypes",{enumerable:!0,get:function get(){return ie.registerLinkTypes}});var oe=G(242);Object.defineProperty(V,"registerDialog",{enumerable:!0,get:function get(){return oe.registerDialog}})},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.registerLinkTypes=void 0;var ie=G(104),oe=G(147),ue=G(213),ae=G(233),se=G(236),de=G(238),le=G(240);V.registerLinkTypes=function registerLinkTypes(W){var V=new ie.SynchronousRegistry("\n # Sitegeist.Archaeopteryx LinkType Registry\n ");V.set(ue.Node.id,ue.Node),V.set(ae.Asset.id,ae.Asset),V.set(oe.Web.id,oe.Web),V.set(se.MailTo.id,se.MailTo),V.set(de.PhoneNumber.id,de.PhoneNumber),V.set(le.CustomLink.id,le.CustomLink),W.set("@sitegeist/archaeopteryx/link-types",V)}},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.Web=void 0;var ie=G(148);Object.defineProperty(V,"Web",{enumerable:!0,get:function get(){return ie.Web}})},function(W,V,G){"use strict";var __assign=function(){return(__assign=Object.assign||function(W){for(var V,G=1,ie=arguments.length;G0)&&!(ie=ue.next()).done;)ae.push(ie.value)}catch(W){oe={error:W}}finally{try{ie&&!ie.done&&(G=ue.return)&&G.call(ue)}finally{if(oe)throw oe.error}}return ae};Object.defineProperty(V,"__esModule",{value:!0}),V.Web=void 0;var ue=__importStar(G(0)),ae=G(0),se=G(69),de=G(16),le=G(12),pe=G(43),he=G(30),ve=G(38);function removeHttp(W){return W.replace(/^https?:\/\//,"")}V.Web=he.makeLinkType("Sitegeist.Archaeopteryx:Web",(function(W){var V=W.createError;return{supportedLinkOptions:["anchor","title","targetBlank","relNofollow"],isSuitableFor:function isSuitableFor(W){var V=W.href.startsWith("http://"),G=W.href.startsWith("https://");return V||G},useResolvedModel:function useResolvedModel(W){var G=W.href.match(/^(https?):\/\/(.*)$/);if(G){var ie=__read(G,3),oe=ie[1],ue=ie[2];return pe.Process.success({protocol:oe,urlWithoutProtocol:ue})}return pe.Process.error(V('Cannot handle href "'+W.href+'".'))},convertModelToLink:function convertModelToLink(W){return{href:W.protocol+"://"+removeHttp(W.urlWithoutProtocol)}},TabHeader:function TabHeader(){var W=le.useI18n();return ue.createElement(ve.IconLabel,{icon:"globe"},W("Sitegeist.Archaeopteryx:LinkTypes.Web:title"))},Preview:function Preview(W){var V=W.model;return ue.createElement(ve.IconCard,{icon:"external-link",title:V.protocol+"://"+removeHttp(V.urlWithoutProtocol)})},Editor:function Editor(W){var V,G=W.model,ie=__read(ae.useState(""),2),oe=ie[0],he=ie[1],ve=le.useI18n();return ue.createElement("div",null,ue.createElement("label",{htmlFor:"linkTypeProps.Sitegeist_Archaeopteryx:Web.urlWithoutProtocol"},ve("Sitegeist.Archaeopteryx:LinkTypes.Web:label.link"),":"),ue.createElement("div",{style:{display:"grid",gridTemplateColumns:"160px 1fr",minWidth:"600px"}},ue.createElement(pe.Field,{name:"protocol",format:function format(W){return void 0===W&&""===W||he(W),void 0===W&&se.useForm().change("linkTypeProps.Sitegeist_Archaeopteryx:Web.protocol",oe),W},initialValue:null!==(V=null==G?void 0:G.protocol)&&void 0!==V?V:"https",validate:function validate(W){if(!W)return ve("Sitegeist.Archaeopteryx:LinkTypes.Web:protocol.validation.required")}},(function(W){var V=W.input;return ue.createElement(de.SelectBox,{onValueChange:V.onChange,allowEmpty:!1,value:V.value,options:[{value:"https",label:"HTTPS",icon:"lock"},{value:"http",label:"HTTP",icon:"unlock"}]})})),ue.createElement(pe.Field,{name:"urlWithoutProtocol",initialValue:null==G?void 0:G.urlWithoutProtocol,format:function format(W){var V=null==W?void 0:W.match(/^(https?):\/\/(.*)$/);return V?__read(V,3)[2]:W},parse:function parse(W){var V=null==W?void 0:W.match(/^(https?):\/\/(.*)$/);if(V){var G=__read(V,3),ie=G[1],oe=G[2];return se.useForm().change("linkTypeProps.Sitegeist_Archaeopteryx:Web.protocol",ie),oe}return W},validate:function validate(W){if(!W)return ve("Sitegeist.Archaeopteryx:LinkTypes.Web:urlWithoutProtocol.validation.required")}},(function(W){var V=W.input;return ue.createElement(de.TextInput,__assign({id:V.name,type:"text",placeholder:ve("Sitegeist.Archaeopteryx:LinkTypes.Web:urlWithoutProtocol.placeholder")},V))}))))}}}))},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.q=void 0;var ie=G(150);Object.defineProperty(V,"q",{enumerable:!0,get:function get(){return ie.q}})},function(W,V,G){"use strict";var __importDefault=function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(V,"__esModule",{value:!0}),V.q=void 0;var ie=G(95),oe=__importDefault(G(107));V.q=function q(W){var V=oe.default.get().q;return new ie.FlowQuery(V(Array.isArray(W)?W.map((function(W){return W.toString()})):W.toString()))}},function(W,V,G){"use strict";var __assign=function(){return(__assign=Object.assign||function(W){for(var V,G=1,ie=arguments.length;G0&&oe[oe.length-1])||6!==ue[0]&&2!==ue[0])){ae=0;continue}if(3===ue[0]&&(!oe||ue[1]>oe[0]&&ue[1]0&&oe[oe.length-1])||6!==ue[0]&&2!==ue[0])){ae=0;continue}if(3===ue[0]&&(!oe||ue[1]>oe[0]&&ue[1]=W.length&&(W=void 0),{value:W&&W[ie++],done:!W}}};throw new TypeError(V?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(V,"__esModule",{value:!0}),V.useHasNode=V.useNodeSummary=void 0;var ie=G(55),oe=G(162),ue=G(95),ae=G(96);V.useNodeSummary=function useNodeSummary(W){var V=this,G=ae.useSelector(oe.selectors.UI.NodeLinking.contextForNodeLinking);return ie.useAsync((function(){return __awaiter(V,void 0,void 0,(function(){var V,ie,oe,ae,se;return __generator(this,(function(de){switch(de.label){case 0:return[4,ue.endpoints().searchNodes(__assign(__assign({},G),{nodeIdentifiers:[W]}))];case 1:if(V=de.sent(),Array.isArray(V))try{for(ie=__values(V),oe=ie.next();!oe.done;oe=ie.next())return[2,oe.value]}catch(W){ae={error:W}}finally{try{oe&&!oe.done&&(se=ie.return)&&se.call(ie)}finally{if(ae)throw ae.error}}return[2,null]}}))}))}),[W])},V.useHasNode=function useHasNode(W){var V,G=ae.useSelector(oe.selectors.CR.Nodes.byContextPathSelector(null!==(V=null==W?void 0:W.toString())&&void 0!==V?V:""));return Boolean(G)}},function(W,V){W.exports=function(){var W=document.getSelection();if(!W.rangeCount)return function(){};for(var V=document.activeElement,G=[],ie=0;ie=0;){if(ie[V]===W){G.deleteRule(V);break}V--}}},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.divWrapper=void 0;var ie=G(5),oe=ie.__importStar(G(0)),ue=ie.__importDefault(G(159)),ae=oe.createElement,noWrap=function(W,V,G,oe){var ue;return ae(W,V?ie.__assign(((ue={})[V]=oe,ue),G):ie.__assign(ie.__assign({},oe),G))};V.divWrapper=function(W,V,G,ie){return ae("div",null,noWrap(W,V,G,ie))};V.default=function(W,V,G){void 0===G&&(G=noWrap);var enhancer=function(ie,oe,se){void 0===oe&&(oe=V),void 0===se&&(se=null);var de="string"==typeof ie;if(de)return function(W){return enhancer(W,ie||V,oe)};var Enhanced=function(V){return ae(W,se,(function(W){return G(ie,oe,V,W)}))};return de?ue.default(Enhanced):Enhanced};return enhancer}},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0});var ie=G(5).__importDefault(G(160));V.default=function(W){return!W.prototype?ie.default(W):W}},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0});var ie=G(5),oe=ie.__importStar(G(0));V.default=function(W){return function(V){function class_1(){return null!==V&&V.apply(this,arguments)||this}return ie.__extends(class_1,V),class_1.prototype.render=function(){return W(this.props,this.context)},class_1}(oe.Component)}},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0});var ie=G(5).__importDefault(G(108)),defaultMapPropsToArgs=function(W){return[W]};V.default=function(W,V){return void 0===V&&(V=defaultMapPropsToArgs),function(G){return ie.default(G,W.apply(void 0,V(G)))}}},function(W,V,G){"use strict";var ie=function _interopRequireDefault(W){return W&&W.__esModule?W:{default:W}}(G(46));W.exports=(0,ie.default)("NeosProjectPackages")().NeosUiReduxStore},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.useNodeTypes=V.useNodeType=V.NodeTypeName=void 0;var ie=G(109);V.NodeTypeName=function NodeTypeName(W){return W},V.useNodeType=function useNodeType(W){var V;return null!==(V=ie.useNodeTypesRegistry().get(W))&&void 0!==V?V:null},V.useNodeTypes=function useNodeTypes(W){var V,G=ie.useNodeTypesRegistry();return null!==(V=G.getSubTypesOf(W).map((function(W){return null==G?void 0:G.get(W)})).filter((function(W){return W})))&&void 0!==V?V:[]}},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.useConfiguration=void 0;var ie=G(68);V.useConfiguration=function useConfiguration(W){var V=ie.useNeos();return W?W(V.configuration):V.configuration}},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.useRoutes=void 0;var ie=G(68);V.useRoutes=function useRoutes(W){var V=ie.useNeos();if(V.routes)return W?W(V.routes):V.routes}},function(W,V,G){"use strict";var ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V};Object.defineProperty(V,"__esModule",{value:!0}),V.useI18n=void 0;var ue=__importStar(G(0)),ae=G(111);V.useI18n=function useI18n(){var W=ae.useGlobalRegistry().get("i18n");return ue.useMemo((function(){return function(V,G,ie,oe,ue,ae){return void 0===ie&&(ie={}),void 0===oe&&(oe="Neos.Neos"),void 0===ue&&(ue="Main"),void 0===ae&&(ae=0),W.translate(V,G,ie,oe,ue,ae)}}),[W])}},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.useAssetSummary=void 0;var ie=G(168);Object.defineProperty(V,"useAssetSummary",{enumerable:!0,get:function get(){return ie.useAssetSummary}})},function(W,V,G){"use strict";var __awaiter=function(W,V,G,ie){return new(G||(G=Promise))((function(oe,ue){function fulfilled(W){try{step(ie.next(W))}catch(W){ue(W)}}function rejected(W){try{step(ie.throw(W))}catch(W){ue(W)}}function step(W){W.done?oe(W.value):function adopt(W){return W instanceof G?W:new G((function(V){V(W)}))}(W.value).then(fulfilled,rejected)}step((ie=ie.apply(W,V||[])).next())}))},__generator=function(W,V){var G,ie,oe,ue,ae={label:0,sent:function sent(){if(1&oe[0])throw oe[1];return oe[1]},trys:[],ops:[]};return ue={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ue[Symbol.iterator]=function(){return this}),ue;function verb(ue){return function(se){return function step(ue){if(G)throw new TypeError("Generator is already executing.");for(;ae;)try{if(G=1,ie&&(oe=2&ue[0]?ie.return:ue[0]?ie.throw||((oe=ie.return)&&oe.call(ie),0):ie.next)&&!(oe=oe.call(ie,ue[1])).done)return oe;switch(ie=0,oe&&(ue=[2&ue[0],oe.value]),ue[0]){case 0:case 1:oe=ue;break;case 4:return ae.label++,{value:ue[1],done:!1};case 5:ae.label++,ie=ue[1],ue=[0];continue;case 7:ue=ae.ops.pop(),ae.trys.pop();continue;default:if(!(oe=ae.trys,(oe=oe.length>0&&oe[oe.length-1])||6!==ue[0]&&2!==ue[0])){ae=0;continue}if(3===ue[0]&&(!oe||ue[1]>oe[0]&&ue[1]0)&&!(ie=ue.next()).done;)ae.push(ie.value)}catch(W){oe={error:W}}finally{try{ie&&!ie.done&&(G=ue.return)&&G.call(ue)}finally{if(oe)throw oe.error}}return ae},__spreadArray=function(W,V){for(var G=0,ie=V.length,oe=W.length;G=W.length&&(W=void 0),{value:W&&W[ie++],done:!W}}};throw new TypeError(V?"Object is not iterable.":"Symbol.iterator is not defined.")},__importDefault=function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(V,"__esModule",{value:!0}),V.useSortedAndFilteredLinkTypes=V.useLinkTypeForHref=V.useLinkTypes=V.makeLinkType=void 0;var ue=__importStar(G(0)),ae=G(72),se=__importDefault(G(200)),de=G(12),le=G(119);function useLinkTypes(){var W,V;return null!==(V=null===(W=de.useGlobalRegistry().get("@sitegeist/archaeopteryx/link-types"))||void 0===W?void 0:W.getAllAsList())&&void 0!==V?V:[]}V.makeLinkType=function makeLinkType(W,V){var G,ie,oe=V({createError:function createError(V,G){return G?new ae.VError(G,"["+W+"]: "+V):new ae.VError("["+W+"]: "+V)}});return __assign(__assign({id:W,supportedLinkOptions:[]},oe),{LoadingPreview:null!==(G=oe.LoadingPreview)&&void 0!==G?G:function(){return ue.createElement("div",{},"Loading...")},LoadingEditor:null!==(ie=oe.LoadingEditor)&&void 0!==ie?ie:function(){return ue.createElement("div",{},"Loading...")}})},V.useLinkTypes=useLinkTypes,V.useLinkTypeForHref=function useLinkTypeForHref(W){var V=useLinkTypes();return ue.useMemo((function(){var G,ie;if(null===W)return null;try{for(var oe=__values(__spreadArray([],__read(V)).reverse()),ue=oe.next();!ue.done;ue=oe.next()){var ae=ue.value;if(ae.isSuitableFor({href:W}))return ae}}catch(W){G={error:W}}finally{try{ue&&!ue.done&&(ie=oe.return)&&ie.call(oe)}finally{if(G)throw G.error}}return null}),[V,W])},V.useSortedAndFilteredLinkTypes=function useSortedAndFilteredLinkTypes(){var W=useLinkTypes(),V=le.useEditorState().editorOptions,G=W.map((function(W){var G;return{linkType:W,options:null===(G=V.linkTypes)||void 0===G?void 0:G[W.id]}}));return se.default(G,(function(W){var V=W.options;return null==V?void 0:V.position})).filter((function(W){var V=W.options;return!V||!("enabled"in V)||V.enabled})).map((function(W){return W.linkType}))}},function(W,V,G){(function(V,ie){var oe=G(113),ue=G(186).Stream,ae=G(74),se=/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;function _capitalize(W){return W.charAt(0).toUpperCase()+W.slice(1)}function _toss(W,V,G,ie,ue){throw new oe.AssertionError({message:ae.format("%s (%s) is required",W,V),actual:void 0===ue?typeof ie:ue(ie),expected:V,operator:G||"===",stackStartFunction:_toss.caller})}function _getClass(W){return Object.prototype.toString.call(W).slice(8,-1)}function noop(){}var de={bool:{check:function(W){return"boolean"==typeof W}},func:{check:function(W){return"function"==typeof W}},string:{check:function(W){return"string"==typeof W}},object:{check:function(W){return"object"==typeof W&&null!==W}},number:{check:function(W){return"number"==typeof W&&!isNaN(W)}},finite:{check:function(W){return"number"==typeof W&&!isNaN(W)&&isFinite(W)}},buffer:{check:function(W){return V.isBuffer(W)},operator:"Buffer.isBuffer"},array:{check:function(W){return Array.isArray(W)},operator:"Array.isArray"},stream:{check:function(W){return W instanceof ue},operator:"instanceof",actual:_getClass},date:{check:function(W){return W instanceof Date},operator:"instanceof",actual:_getClass},regexp:{check:function(W){return W instanceof RegExp},operator:"instanceof",actual:_getClass},uuid:{check:function(W){return"string"==typeof W&&se.test(W)},operator:"isUUID"}};W.exports=function _setExports(W){var V,G=Object.keys(de);return V=ie.env.NODE_NDEBUG?noop:function(W,V){W||_toss(V,"true",W)},G.forEach((function(G){if(W)V[G]=noop;else{var ie=de[G];V[G]=function(W,V){ie.check(W)||_toss(V,G,ie.operator,W,ie.actual)}}})),G.forEach((function(G){var ie="optional"+_capitalize(G);if(W)V[ie]=noop;else{var oe=de[G];V[ie]=function(W,V){null!=W&&(oe.check(W)||_toss(V,G,oe.operator,W,oe.actual))}}})),G.forEach((function(G){var ie="arrayOf"+_capitalize(G);if(W)V[ie]=noop;else{var oe=de[G],ue="["+G+"]";V[ie]=function(W,V){var G;for(Array.isArray(W)||_toss(V,ue,oe.operator,W,oe.actual),G=0;G0?ae-4:ae;for(G=0;G>16&255,de[le++]=V>>8&255,de[le++]=255&V;2===se&&(V=oe[W.charCodeAt(G)]<<2|oe[W.charCodeAt(G+1)]>>4,de[le++]=255&V);1===se&&(V=oe[W.charCodeAt(G)]<<10|oe[W.charCodeAt(G+1)]<<4|oe[W.charCodeAt(G+2)]>>2,de[le++]=V>>8&255,de[le++]=255&V);return de},V.fromByteArray=function fromByteArray(W){for(var V,G=W.length,oe=G%3,ue=[],ae=0,se=G-oe;aese?se:ae+16383));1===oe?(V=W[G-1],ue.push(ie[V>>2]+ie[V<<4&63]+"==")):2===oe&&(V=(W[G-2]<<8)+W[G-1],ue.push(ie[V>>10]+ie[V>>4&63]+ie[V<<2&63]+"="));return ue.join("")};for(var ie=[],oe=[],ue="undefined"!=typeof Uint8Array?Uint8Array:Array,ae="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",se=0,de=ae.length;se0)throw new Error("Invalid string. Length must be a multiple of 4");var G=W.indexOf("=");return-1===G&&(G=V),[G,G===V?0:4-G%4]}function encodeChunk(W,V,G){for(var oe,ue,ae=[],se=V;se>18&63]+ie[ue>>12&63]+ie[ue>>6&63]+ie[63&ue]);return ae.join("")}oe["-".charCodeAt(0)]=62,oe["_".charCodeAt(0)]=63},function(W,V){V.read=function(W,V,G,ie,oe){var ue,ae,se=8*oe-ie-1,de=(1<>1,pe=-7,he=G?oe-1:0,ve=G?-1:1,ge=W[V+he];for(he+=ve,ue=ge&(1<<-pe)-1,ge>>=-pe,pe+=se;pe>0;ue=256*ue+W[V+he],he+=ve,pe-=8);for(ae=ue&(1<<-pe)-1,ue>>=-pe,pe+=ie;pe>0;ae=256*ae+W[V+he],he+=ve,pe-=8);if(0===ue)ue=1-le;else{if(ue===de)return ae?NaN:1/0*(ge?-1:1);ae+=Math.pow(2,ie),ue-=le}return(ge?-1:1)*ae*Math.pow(2,ue-ie)},V.write=function(W,V,G,ie,oe,ue){var ae,se,de,le=8*ue-oe-1,pe=(1<>1,ve=23===oe?Math.pow(2,-24)-Math.pow(2,-77):0,ge=ie?0:ue-1,Se=ie?1:-1,we=V<0||0===V&&1/V<0?1:0;for(V=Math.abs(V),isNaN(V)||V===1/0?(se=isNaN(V)?1:0,ae=pe):(ae=Math.floor(Math.log(V)/Math.LN2),V*(de=Math.pow(2,-ae))<1&&(ae--,de*=2),(V+=ae+he>=1?ve/de:ve*Math.pow(2,1-he))*de>=2&&(ae++,de/=2),ae+he>=pe?(se=0,ae=pe):ae+he>=1?(se=(V*de-1)*Math.pow(2,oe),ae+=he):(se=V*Math.pow(2,he-1)*Math.pow(2,oe),ae=0));oe>=8;W[G+ge]=255&se,ge+=Se,se/=256,oe-=8);for(ae=ae<0;W[G+ge]=255&ae,ge+=Se,ae/=256,le-=8);W[G+ge-Se]|=128*we}},function(W,V,G){"use strict";var ie=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable;function toObject(W){if(null==W)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(W)}W.exports=function shouldUseNative(){try{if(!Object.assign)return!1;var W=new String("abc");if(W[5]="de","5"===Object.getOwnPropertyNames(W)[0])return!1;for(var V={},G=0;G<10;G++)V["_"+String.fromCharCode(G)]=G;if("0123456789"!==Object.getOwnPropertyNames(V).map((function(W){return V[W]})).join(""))return!1;var ie={};return"abcdefghijklmnopqrst".split("").forEach((function(W){ie[W]=W})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},ie)).join("")}catch(W){return!1}}()?Object.assign:function(W,V){for(var G,ae,se=toObject(W),de=1;de0?this.tail.next=V:this.head=V,this.tail=V,++this.length},BufferList.prototype.unshift=function unshift(W){var V={data:W,next:this.head};0===this.length&&(this.tail=V),this.head=V,++this.length},BufferList.prototype.shift=function shift(){if(0!==this.length){var W=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,W}},BufferList.prototype.clear=function clear(){this.head=this.tail=null,this.length=0},BufferList.prototype.join=function join(W){if(0===this.length)return"";for(var V=this.head,G=""+V.data;V=V.next;)G+=W+V.data;return G},BufferList.prototype.concat=function concat(W){if(0===this.length)return ie.alloc(0);if(1===this.length)return this.head.data;for(var V,G,oe,ue=ie.allocUnsafe(W>>>0),ae=this.head,se=0;ae;)V=ae.data,G=ue,oe=se,V.copy(G,oe),se+=ae.data.length,ae=ae.next;return ue},BufferList}(),oe&&oe.inspect&&oe.inspect.custom&&(W.exports.prototype[oe.inspect.custom]=function(){var W=oe.inspect({length:this.length});return this.constructor.name+" "+W})},function(W,V){},function(W,V,G){(function(W){var ie=void 0!==W&&W||"undefined"!=typeof self&&self||window,oe=Function.prototype.apply;function Timeout(W,V){this._id=W,this._clearFn=V}V.setTimeout=function(){return new Timeout(oe.call(setTimeout,ie,arguments),clearTimeout)},V.setInterval=function(){return new Timeout(oe.call(setInterval,ie,arguments),clearInterval)},V.clearTimeout=V.clearInterval=function(W){W&&W.close()},Timeout.prototype.unref=Timeout.prototype.ref=function(){},Timeout.prototype.close=function(){this._clearFn.call(ie,this._id)},V.enroll=function(W,V){clearTimeout(W._idleTimeoutId),W._idleTimeout=V},V.unenroll=function(W){clearTimeout(W._idleTimeoutId),W._idleTimeout=-1},V._unrefActive=V.active=function(W){clearTimeout(W._idleTimeoutId);var V=W._idleTimeout;V>=0&&(W._idleTimeoutId=setTimeout((function onTimeout(){W._onTimeout&&W._onTimeout()}),V))},G(191),V.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==W&&W.setImmediate||this&&this.setImmediate,V.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==W&&W.clearImmediate||this&&this.clearImmediate}).call(this,G(47))},function(W,V,G){(function(W,V){!function(W,G){"use strict";if(!W.setImmediate){var ie,oe=1,ue={},ae=!1,se=W.document,de=Object.getPrototypeOf&&Object.getPrototypeOf(W);de=de&&de.setTimeout?de:W,"[object process]"==={}.toString.call(W.process)?function installNextTickImplementation(){ie=function(W){V.nextTick((function(){runIfPresent(W)}))}}():!function canUsePostMessage(){if(W.postMessage&&!W.importScripts){var V=!0,G=W.onmessage;return W.onmessage=function(){V=!1},W.postMessage("","*"),W.onmessage=G,V}}()?W.MessageChannel?function installMessageChannelImplementation(){var W=new MessageChannel;W.port1.onmessage=function(W){runIfPresent(W.data)},ie=function(V){W.port2.postMessage(V)}}():se&&"onreadystatechange"in se.createElement("script")?function installReadyStateChangeImplementation(){var W=se.documentElement;ie=function(V){var G=se.createElement("script");G.onreadystatechange=function(){runIfPresent(V),G.onreadystatechange=null,W.removeChild(G),G=null},W.appendChild(G)}}():function installSetTimeoutImplementation(){ie=function(W){setTimeout(runIfPresent,0,W)}}():function installPostMessageImplementation(){var V="setImmediate$"+Math.random()+"$",onGlobalMessage=function(G){G.source===W&&"string"==typeof G.data&&0===G.data.indexOf(V)&&runIfPresent(+G.data.slice(V.length))};W.addEventListener?W.addEventListener("message",onGlobalMessage,!1):W.attachEvent("onmessage",onGlobalMessage),ie=function(G){W.postMessage(V+G,"*")}}(),de.setImmediate=function setImmediate(W){"function"!=typeof W&&(W=new Function(""+W));for(var V=new Array(arguments.length-1),G=0;G0)throw jsError(W,ve,ge,"uses non-zero precision (not supported)");switch(V.match(/-/)&&(se=!0),V.match(/0/)&&(de="0"),V.match(/\+/)&&(le=!0),ae){case"s":if(null==pe)throw jsError(W,ve,ge,"attempted to print undefined or null as a string (argument "+Fe+" to sprintf)");Ie+=doPad(de,G,se,pe.toString());break;case"d":pe=Math.floor(pe);case"f":Ie+=(le=le&&pe>0?"+":"")+doPad(de,G,se,pe.toString());break;case"x":Ie+=doPad(de,G,se,pe.toString(16));break;case"j":0===G&&(G=10),Ie+=oe.inspect(pe,!1,G);break;case"r":Ie+=dumpException(pe);break;default:throw jsError(W,ve,ge,"is not supported")}}else Ie+="%";return Ie+=Pe}function jsError(W,V,G,oe){return ie.equal(typeof W,"string"),ie.equal(typeof G,"string"),ie.equal(typeof V,"number"),ie.equal(typeof oe,"string"),new Error('format string "'+W+'": conversion specifier "'+G+'" at character '+V+" "+oe)}function jsFprintf(W){var V=Array.prototype.slice.call(arguments,1);return W.write(jsSprintf.apply(this,V))}function doPad(W,V,G,ie){for(var oe=ie;oe.length=0)){if(Qe.push(W),Ue[W]){var se=et(Ue[W],!0);try{for(var de=ie.__values(se),le=de.next();!le.done;le=de.next()){var pe=le.value;addToResults(Ue[W][pe],V)}}catch(W){G={error:W}}finally{try{le&&!le.done&&(oe=de.return)&&oe.call(de)}finally{if(G)throw G.error}}}if(V.push(W),ze[W]){var he=et(ze[W],!1);try{for(var ve=ie.__values(he),ge=ve.next();!ge.done;ge=ve.next()){pe=ge.value;addToResults(ze[W][pe],V)}}catch(W){ue={error:W}}finally{try{ge&&!ge.done&&(ae=ve.return)&&ae.call(ve)}finally{if(ue)throw ue.error}}}}}))};try{for(var rt=ie.__values(et(Le,!1)),nt=rt.next();!nt.done;nt=rt.next()){var it=nt.value;tt(Le[it],He)}}catch(W){oe={error:W}}finally{try{nt&&!nt.done&&(ue=rt.return)&&ue.call(rt)}finally{if(oe)throw oe.error}}try{for(var ot=ie.__values(et(Re,!0)),ut=ot.next();!ut.done;ut=ot.next()){it=ut.value;tt(Re[it],Ke)}}catch(W){ae={error:W}}finally{try{ut&&!ut.done&&(se=ot.return)&&se.call(ot)}finally{if(ae)throw ae.error}}try{for(var at=ie.__values(et(De,!0)),st=at.next();!st.done;st=at.next()){it=st.value;tt(De[it],Ze)}}catch(W){de={error:W}}finally{try{st&&!st.done&&(le=at.return)&&le.call(at)}finally{if(de)throw de.error}}try{for(var ct=ie.__values(Object.keys(Ue)),dt=ct.next();!dt.done;dt=ct.next()){var lt=dt.value;if(!(Qe.indexOf(lt)>=0))try{for(var ft=(ve=void 0,ie.__values(et(Ue[lt],!1))),pt=ft.next();!pt.done;pt=ft.next()){it=pt.value;tt(Ue[lt][it],He)}}catch(W){ve={error:W}}finally{try{pt&&!pt.done&&(ge=ft.return)&&ge.call(ft)}finally{if(ve)throw ve.error}}}}catch(W){pe={error:W}}finally{try{dt&&!dt.done&&(he=ct.return)&&he.call(ct)}finally{if(pe)throw pe.error}}try{for(var ht=ie.__values(Object.keys(ze)),bt=ht.next();!bt.done;bt=ht.next()){lt=bt.value;if(!(Qe.indexOf(lt)>=0))try{for(var yt=(Ce=void 0,ie.__values(et(ze[lt],!1))),vt=yt.next();!vt.done;vt=yt.next()){it=vt.value;tt(ze[lt][it],Ke)}}catch(W){Ce={error:W}}finally{try{vt&&!vt.done&&(Pe=yt.return)&&Pe.call(yt)}finally{if(Ce)throw Ce.error}}}}catch(W){Se={error:W}}finally{try{bt&&!bt.done&&(we=ht.return)&&we.call(ht)}finally{if(Se)throw Se.error}}return ie.__spread(He,Ke,Ze).map((function(W){return Fe[W]})).map((function(V){return W[V]}))}},function(W,V,G){"use strict";var __assign=function(){return(__assign=Object.assign||function(W){for(var V,G=1,ie=arguments.length;G0)&&!(ie=ue.next()).done;)ae.push(ie.value)}catch(W){oe={error:W}}finally{try{ie&&!ie.done&&(G=ue.return)&&G.call(ue)}finally{if(oe)throw oe.error}}return ae};Object.defineProperty(V,"__esModule",{value:!0}),V.useEditorTransactions=V.useEditorState=V.EditorContext=V.createEditor=V.editorReducer=void 0;var ue=__importStar(G(0)),ae=G(76),se=G(252),de=G(250),le=__importStar(G(202)),pe={enabledLinkOptions:[],editorOptions:{},isOpen:!1,initialValue:null};function editorReducer(W,V){switch(void 0===W&&(W=pe),V.type){case ae.getType(le.EditorWasOpened):return __assign(__assign({},V.payload),{isOpen:!0});case ae.getType(le.EditorWasDismissed):case ae.getType(le.ValueWasUnset):case ae.getType(le.ValueWasApplied):return pe;default:return W}}function createEditor(){var W=new se.Subject,V=function dispatch(V){return W.next(V)},G=new se.BehaviorSubject(pe);W.pipe(de.scan(editorReducer,pe),de.shareReplay(1)).subscribe(G);return{state$:G,tx:{dismiss:function dismiss(){return V(le.EditorWasDismissed())},unset:function unset(){return V(le.ValueWasUnset())},apply:function apply(W){return V(le.ValueWasApplied(W))},editLink:function editLink(G,ie,oe){return void 0===ie&&(ie=[]),void 0===oe&&(oe={}),new Promise((function(ue){V(le.EditorWasOpened(G,ie,oe)),W.subscribe((function(W){switch(W.type){case ae.getType(le.EditorWasDismissed):return ue({change:!1});case ae.getType(le.ValueWasUnset):return ue({change:!0,value:null});case ae.getType(le.ValueWasApplied):return ue({change:!0,value:W.payload});default:return}}))}))}},initialState:pe}}V.editorReducer=editorReducer,V.createEditor=createEditor,V.EditorContext=ue.createContext(createEditor()),V.useEditorState=function useEditorState(){var W=ue.useContext(V.EditorContext).state$,G=__read(ue.useState(W.getValue()),2),ie=G[0],oe=G[1];return ue.useEffect((function(){var V=W.subscribe(oe);return function(){return V.unsubscribe()}}),[W]),ie},V.useEditorTransactions=function useEditorTransactions(){return ue.useContext(V.EditorContext).tx}},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.ValueWasApplied=V.ValueWasUnset=V.EditorWasDismissed=V.EditorWasOpened=void 0;var ie=G(76);V.EditorWasOpened=ie.createAction("http://sitegeist.de/Sitegeist.Archaeopteryx/EditorWasOpened",(function(W,V,G){return void 0===G&&(G={}),{initialValue:W,enabledLinkOptions:V,editorOptions:G}}))(),V.EditorWasDismissed=ie.createAction("http://sitegeist.de/Sitegeist.Archaeopteryx/EditorWasDismissed")(),V.ValueWasUnset=ie.createAction("http://sitegeist.de/Sitegeist.Archaeopteryx/ValueWasUnset")(),V.ValueWasApplied=ie.createAction("http://sitegeist.de/Sitegeist.Archaeopteryx/ValueWasApplied",(function(W){return W}))()},function(W,V,G){"use strict";var __makeTemplateObject=function(W,V){return Object.defineProperty?Object.defineProperty(W,"raw",{value:V}):W.raw=V,W},ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V},__importDefault=function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(V,"__esModule",{value:!0}),V.IconCard=void 0;var ue,ae,se=__importStar(G(0)),de=__importDefault(G(17)),le=G(16),pe=G(120),he=G(204),ve=de.default.div(ue||(ue=__makeTemplateObject(["\n display: grid;\n grid-gap: 8px;\n grid-template-columns: 20px 1fr;\n grid-template-rows: repeat(2, 1fr);\n background-color: #141414;\n padding: 8px 16px;\n min-height: 50px;\n"],["\n display: grid;\n grid-gap: 8px;\n grid-template-columns: 20px 1fr;\n grid-template-rows: repeat(2, 1fr);\n background-color: #141414;\n padding: 8px 16px;\n min-height: 50px;\n"]))),ge=de.default.span(ae||(ae=__makeTemplateObject(["\n display: flex;\n justify-content: center;\n align-items: center;\n grid-column: 1 / span 1;\n grid-row: 1 / span ",";\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n grid-column: 1 / span 1;\n grid-row: 1 / span ",";\n"])),(function(W){return W.span}));V.IconCard=function IconCard(W){return se.createElement(ve,null,se.createElement(ge,{span:W.subTitle?1:2},se.createElement(le.Icon,{icon:W.icon})),se.createElement(pe.CardTitle,{span:W.subTitle?1:2},W.title),se.createElement(he.CardSubTitle,null,W.subTitle))}},function(W,V,G){"use strict";var __makeTemplateObject=function(W,V){return Object.defineProperty?Object.defineProperty(W,"raw",{value:V}):W.raw=V,W},ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V},__importDefault=function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(V,"__esModule",{value:!0}),V.CardSubTitle=void 0;var ue,ae=__importStar(G(0)),se=__importDefault(G(17)),de=G(121),le=se.default.span(ue||(ue=__makeTemplateObject(["\n display: flex;\n align-items: center;\n line-height: 1;\n font-size: 12px;\n color: #999;\n grid-column: 1 / span 2;\n grid-row: 2 / span 1;\n min-width: 0;\n"],["\n display: flex;\n align-items: center;\n line-height: 1;\n font-size: 12px;\n color: #999;\n grid-column: 1 / span 2;\n grid-row: 2 / span 1;\n min-width: 0;\n"])));V.CardSubTitle=function CardSubTitle(W){return ae.createElement(le,null,ae.createElement(de.Ellipsis,null,W.children))}},function(W,V,G){"use strict";var __makeTemplateObject=function(W,V){return Object.defineProperty?Object.defineProperty(W,"raw",{value:V}):W.raw=V,W},ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V},__importDefault=function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(V,"__esModule",{value:!0}),V.ImageCard=void 0;var ue,ae,se=__importStar(G(0)),de=__importDefault(G(17)),le=G(120),pe=de.default.div(ue||(ue=__makeTemplateObject(["\n display: grid;\n grid-gap: 8px;\n grid-template-columns: 75px 1fr;\n background-color: #141414;\n padding: 0 16px 0 0;\n"],["\n display: grid;\n grid-gap: 8px;\n grid-template-columns: 75px 1fr;\n background-color: #141414;\n padding: 0 16px 0 0;\n"]))),he=de.default.img(ae||(ae=__makeTemplateObject(["\n display: block;\n grid-column: 1 / span 1;\n width: 100%;\n height: 56px;\n object-fit: contain;\n background-color: #fff;\n background-size: 10px 10px;\n background-position: 0 0, 25px 25px;\n background-image: linear-gradient(45deg, #cccccc 25%, transparent 25%, transparent 75%, #cccccc 75%, #cccccc), linear-gradient(45deg, #cccccc 25%, transparent 25%, transparent 75%, #cccccc 75%, #cccccc);\n"],["\n display: block;\n grid-column: 1 / span 1;\n width: 100%;\n height: 56px;\n object-fit: contain;\n background-color: #fff;\n background-size: 10px 10px;\n background-position: 0 0, 25px 25px;\n background-image: linear-gradient(45deg, #cccccc 25%, transparent 25%, transparent 75%, #cccccc 75%, #cccccc), linear-gradient(45deg, #cccccc 25%, transparent 25%, transparent 75%, #cccccc 75%, #cccccc);\n"])));V.ImageCard=function ImageCard(W){return se.createElement(pe,null,se.createElement(he,{src:W.src}),se.createElement(le.CardTitle,{span:1},W.label))}},function(W,V,G){"use strict";var __makeTemplateObject=function(W,V){return Object.defineProperty?Object.defineProperty(W,"raw",{value:V}):W.raw=V,W},ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V};Object.defineProperty(V,"__esModule",{value:!0}),V.Tabs=void 0;var ue,ae,se,de,le,pe,he,ve=__importStar(G(0)),ge=__importStar(G(17)),Se=ge.default.ul(ue||(ue=__makeTemplateObject(["\n display: flex;\n margin: 0 0 -1px 0;\n padding: 0;\n list-style-type: none;\n\n > * + * {\n margin-left: -1px;\n }\n"],["\n display: flex;\n margin: 0 0 -1px 0;\n padding: 0;\n list-style-type: none;\n\n > * + * {\n margin-left: -1px;\n }\n"]))),we=ge.default.button(pe||(pe=__makeTemplateObject(["\n height: 40px;\n ","\n ","\n border-right: 1px solid #3f3f3f;\n border-left: 1px solid #3f3f3f;\n color: #FFF;\n background-color: #222;\n line-height: 40px;\n padding: 0 16px;\n cursor: pointer;\n"],["\n height: 40px;\n ","\n ","\n border-right: 1px solid #3f3f3f;\n border-left: 1px solid #3f3f3f;\n color: #FFF;\n background-color: #222;\n line-height: 40px;\n padding: 0 16px;\n cursor: pointer;\n"])),(function(W){return W.isActive?ge.css(ae||(ae=__makeTemplateObject(["border-top: 2px solid #00adee;"],["border-top: 2px solid #00adee;"]))):ge.css(se||(se=__makeTemplateObject(["border-top: 1px solid #3f3f3f;"],["border-top: 1px solid #3f3f3f;"])))}),(function(W){return W.isActive?ge.css(de||(de=__makeTemplateObject(["border-bottom: 1px solid #222;"],["border-bottom: 1px solid #222;"]))):ge.css(le||(le=__makeTemplateObject(["border-bottom: 1px solid #3f3f3f;"],["border-bottom: 1px solid #3f3f3f;"])))})),Ce=ge.default.div(he||(he=__makeTemplateObject(["\n padding: 16px;\n background-color: #222;\n border: 1px solid #3f3f3f;\n"],["\n padding: 16px;\n background-color: #222;\n border: 1px solid #3f3f3f;\n"])));V.Tabs=function Tabs(W){if(W.from.length<1)throw new Error("[Sitegeist.Archaeopteryx]: Tabs must have at least one item!");var V=ve.createElement("header",null,ve.createElement("nav",null,ve.createElement(Se,null,W.from.map((function(V){return ve.createElement("li",{key:W.getKey(V)},ve.createElement(we,{type:"button",isActive:W.getKey(V)===W.activeItemKey,onClick:function onClick(){W.onSwitchTab&&W.onSwitchTab(W.getKey(V))}},W.renderHeader(V)))}))))),G=W.lazy?ve.createElement("div",null,W.from.filter((function(V){return W.getKey(V)===W.activeItemKey})).map((function(V){return ve.createElement(Ce,{key:W.getKey(V)},W.renderPanel(V))}))):ve.createElement("div",null,W.from.map((function(V){return ve.createElement(Ce,{key:W.getKey(V),hidden:W.getKey(V)!==W.activeItemKey},W.renderPanel(V))})));return ve.createElement("div",null,V,G)}},function(W,V,G){"use strict";var __makeTemplateObject=function(W,V){return Object.defineProperty?Object.defineProperty(W,"raw",{value:V}):W.raw=V,W},ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V},__importDefault=function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(V,"__esModule",{value:!0}),V.Form=void 0;var ue,ae,se,de=__importStar(G(0)),le=__importDefault(G(17)),pe=le.default.form(ue||(ue=__makeTemplateObject(["\n > * + * {\n margin-top: 16px;\n }\n"],["\n > * + * {\n margin-top: 16px;\n }\n"]))),he=le.default.div(ae||(ae=__makeTemplateObject(["\n padding: 0 16px;\n"],["\n padding: 0 16px;\n"]))),ve=le.default.div(se||(se=__makeTemplateObject(["\n display: flex;\n justify-content: flex-end;\n"],["\n display: flex;\n justify-content: flex-end;\n"])));V.Form=function Form(W){return de.createElement(pe,{onSubmit:W.onSubmit},de.createElement(he,null,W.renderBody()),de.createElement(ve,null,W.renderActions()))}},function(W,V,G){"use strict";var __makeTemplateObject=function(W,V){return Object.defineProperty?Object.defineProperty(W,"raw",{value:V}):W.raw=V,W},ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V},__importDefault=function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(V,"__esModule",{value:!0}),V.Modal=void 0;var ue,ae=__importStar(G(0)),se=__importStar(G(209)),de=__importDefault(G(17)),le=G(16),pe=de.default(le.Dialog)(ue||(ue=__makeTemplateObject(['\n [class*="_dialog__contentsPosition "],\n [class$="_dialog__contentsPosition"] {\n top: 50%;\n transform: translateY(-50%)translateX(-50%)scale(1);\n }\n [class*="_dialog__contents "],\n [class$="_dialog__contents"] {\n width: auto;\n max-width: calc(100vw - 40px * 2);\n }\n [class*="_dialog__body "],\n [class$="_dialog__body"] {\n max-height: 80vh;\n }\n'],['\n [class*="_dialog__contentsPosition "],\n [class$="_dialog__contentsPosition"] {\n top: 50%;\n transform: translateY(-50%)translateX(-50%)scale(1);\n }\n [class*="_dialog__contents "],\n [class$="_dialog__contents"] {\n width: auto;\n max-width: calc(100vw - 40px * 2);\n }\n [class*="_dialog__body "],\n [class$="_dialog__body"] {\n max-height: 80vh;\n }\n'])));V.Modal=function Modal(W){return se.createPortal(ae.createElement(pe,{isOpen:!0,title:W.renderTitle(),onRequestClose:function onRequestClose(){},preventClosing:!0},W.renderBody()),document.body)}},function(W,V,G){"use strict";var ie=function _interopRequireDefault(W){return W&&W.__esModule?W:{default:W}}(G(46));W.exports=(0,ie.default)("vendor")().ReactDOM},function(W,V,G){"use strict";var __makeTemplateObject=function(W,V){return Object.defineProperty?Object.defineProperty(W,"raw",{value:V}):W.raw=V,W},ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V},__importDefault=function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(V,"__esModule",{value:!0}),V.Deletable=void 0;var ue,ae,se=__importStar(G(0)),de=__importDefault(G(17)),le=G(16),pe=de.default.div(ue||(ue=__makeTemplateObject(["\n display: grid;\n grid-template-columns: 1fr 40px;\n justify-content: stretch;\n border: 1px solid #3f3f3f;\n max-width: 420px;\n"],["\n display: grid;\n grid-template-columns: 1fr 40px;\n justify-content: stretch;\n border: 1px solid #3f3f3f;\n max-width: 420px;\n"]))),he=de.default(le.IconButton)(ae||(ae=__makeTemplateObject(["\n height: 100%;\n"],["\n height: 100%;\n"])));V.Deletable=function Deletable(W){return se.createElement(pe,null,se.createElement("div",null,W.children),se.createElement(he,{icon:"trash",hoverStyle:"error",onClick:W.onDelete}))}},function(W,V,G){"use strict";var __makeTemplateObject=function(W,V){return Object.defineProperty?Object.defineProperty(W,"raw",{value:V}):W.raw=V,W},ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V},__importDefault=function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(V,"__esModule",{value:!0}),V.IconLabel=void 0;var ue,ae=__importStar(G(0)),se=__importDefault(G(17)),de=G(16),le=se.default.div(ue||(ue=__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 8px;\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n"])));V.IconLabel=function IconLabel(W){return ae.createElement(le,null,ae.createElement(de.Icon,{icon:W.icon}),W.children)}},function(W,V,G){"use strict";var __makeTemplateObject=function(W,V){return Object.defineProperty?Object.defineProperty(W,"raw",{value:V}):W.raw=V,W},__importDefault=function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(V,"__esModule",{value:!0}),V.Columns=V.Stack=V.Container=void 0;var ie,oe,ue,ae=__importDefault(G(17));V.Container=ae.default.div(ie||(ie=__makeTemplateObject(["\n padding: 16px;\n"],["\n padding: 16px;\n"]))),V.Stack=ae.default.div(oe||(oe=__makeTemplateObject(["\n > * + * {\n margin-top: 16px;\n }\n"],["\n > * + * {\n margin-top: 16px;\n }\n"]))),V.Columns=ae.default.div(ue||(ue=__makeTemplateObject(["\n display: grid;\n gap: 16px;\n grid-template-columns: repeat(auto-fill, minmax(max(160px, calc(50% - 8px)), calc(33.3333% - 8px)));\n min-width: 600px;\n"],["\n display: grid;\n gap: 16px;\n grid-template-columns: repeat(auto-fill, minmax(max(160px, calc(50% - 8px)), calc(33.3333% - 8px)));\n min-width: 600px;\n"])))},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.Node=void 0;var ie=G(214);Object.defineProperty(V,"Node",{enumerable:!0,get:function get(){return ie.Node}})},function(W,V,G){"use strict";var ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V},__awaiter=function(W,V,G,ie){return new(G||(G=Promise))((function(oe,ue){function fulfilled(W){try{step(ie.next(W))}catch(W){ue(W)}}function rejected(W){try{step(ie.throw(W))}catch(W){ue(W)}}function step(W){W.done?oe(W.value):function adopt(W){return W instanceof G?W:new G((function(V){V(W)}))}(W.value).then(fulfilled,rejected)}step((ie=ie.apply(W,V||[])).next())}))},__generator=function(W,V){var G,ie,oe,ue,ae={label:0,sent:function sent(){if(1&oe[0])throw oe[1];return oe[1]},trys:[],ops:[]};return ue={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ue[Symbol.iterator]=function(){return this}),ue;function verb(ue){return function(se){return function step(ue){if(G)throw new TypeError("Generator is already executing.");for(;ae;)try{if(G=1,ie&&(oe=2&ue[0]?ie.return:ue[0]?ie.throw||((oe=ie.return)&&oe.call(ie),0):ie.next)&&!(oe=oe.call(ie,ue[1])).done)return oe;switch(ie=0,oe&&(ue=[2&ue[0],oe.value]),ue[0]){case 0:case 1:oe=ue;break;case 4:return ae.label++,{value:ue[1],done:!1};case 5:ae.label++,ie=ue[1],ue=[0];continue;case 7:ue=ae.ops.pop(),ae.trys.pop();continue;default:if(!(oe=ae.trys,(oe=oe.length>0&&oe[oe.length-1])||6!==ue[0]&&2!==ue[0])){ae=0;continue}if(3===ue[0]&&(!oe||ue[1]>oe[0]&&ue[1]=W.length&&(W=void 0),{value:W&&W[ie++],done:!W}}};throw new TypeError(V?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(V,"__esModule",{value:!0}),V.Node=void 0;var ue=__importStar(G(0)),ae=G(55),se=G(12),de=G(215),le=G(30),pe=G(38),he=G(43),ve=new Map,ge=function NodePreview(W){var V,G,ie,oe,ae,de,le,he=W.node,ve=se.useNodeSummary(he.identifier),ge=se.useNodeType(null!==(V=he.nodeType)&&void 0!==V?V:se.NodeTypeName("Neos.Neos:Document"));return ue.createElement(pe.IconCard,{icon:null!==(ie=null===(G=null==ge?void 0:ge.ui)||void 0===G?void 0:G.icon)&&void 0!==ie?ie:"square",title:null!==(ae=null===(oe=ve.value)||void 0===oe?void 0:oe.label)&&void 0!==ae?ae:he.label,subTitle:null!==(le=null===(de=ve.value)||void 0===de?void 0:de.breadcrumb)&&void 0!==le?le:"node://"+he.identifier})};V.Node=le.makeLinkType("Sitegeist.Archaeopteryx:Node",(function(W){var V=W.createError;return{supportedLinkOptions:["anchor","title","targetBlank","relNofollow"],isSuitableFor:function isSuitableFor(W){return W.href.startsWith("node://")},useResolvedModel:function useResolvedModel(W){var G=se.useSiteNodeContextPath(),ie=ae.useAsync((function(){return __awaiter(void 0,void 0,void 0,(function(){var ie,oe,ue,ae,de,le,pe,he,ge,Se;return __generator(this,(function(we){switch(we.label){case 0:if(!G)throw V("Could not find siteNodeContextPath.");if(!(ie=/node:\/\/(.*)/.exec(W.href)))throw V('Cannot handle href "'+W.href+'".');return oe=ie[1],ue=oe+"@"+G.context,ve.has(ue)?[2,{node:ve.get(ue),identifier:oe}]:[4,se.q(G).find("#"+oe).getForTree()];case 1:ae=we.sent();try{for(de=__values(ae),le=de.next();!le.done;le=de.next())return pe=le.value,he={node:pe,identifier:oe},ve.set(ue,he.node),[2,he]}catch(W){ge={error:W}}finally{try{le&&!le.done&&(Se=de.return)&&Se.call(de)}finally{if(ge)throw ge.error}}return[2,{node:void 0,identifier:oe}]}}))}))}),[W.href,G]);return he.Process.fromAsyncState(ie)},convertModelToLink:function convertModelToLink(W){var V=W.node;return{href:"node://"+(null==V?void 0:V.identifier)}},TabHeader:function TabHeader(){var W=se.useI18n();return ue.createElement(pe.IconLabel,{icon:"file"},W("Sitegeist.Archaeopteryx:LinkTypes.Node:title"))},Preview:function Preview(W){var V=W.model,G=V.node,ie=V.identifier,oe=se.useI18n();return G?ue.createElement(ge,{node:G}):ue.createElement(pe.IconCard,{icon:"ban",title:"["+oe("Sitegeist.Archaeopteryx:LinkTypes.Node:labelOfNonExistingNode")+"]",subTitle:"node://"+ie})},Editor:function Editor(W){var G,ie,oe,ae,le=W.model,pe=W.options,ge=se.useI18n(),Se=se.useSiteNodeContextPath(),we=se.useDocumentNodeContextPath(),Ce=null!==(G=se.useConfiguration((function(W){var V,G,ie;return null===(ie=null===(G=null===(V=W.nodeTree)||void 0===V?void 0:V.presets)||void 0===G?void 0:G.default)||void 0===ie?void 0:ie.baseNodeType})))&&void 0!==G?G:se.NodeTypeName("Neos.Neos:Document"),Pe=null!==(ie=se.useConfiguration((function(W){var V;return null===(V=W.nodeTree)||void 0===V?void 0:V.loadingDepth})))&&void 0!==ie?ie:4,Ie=null!==(oe=se.useSelector((function(W){var V,G;return null===(G=null===(V=W.ui)||void 0===V?void 0:V.pageTree)||void 0===G?void 0:G.query})))&&void 0!==oe?oe:"",Fe=null!==(ae=se.useSelector((function(W){var V,G;return null===(G=null===(V=W.ui)||void 0===V?void 0:V.pageTree)||void 0===G?void 0:G.filterNodeType})))&&void 0!==ae?ae:"",Re=ue.useMemo((function(){var W;return pe.startingPoint&&null!==(W=null==Se?void 0:Se.adopt(pe.startingPoint))&&void 0!==W?W:Se}),[pe.startingPoint,Se]);if(Re){if(we)return ue.createElement(he.Field,{name:"node",initialValue:null==le?void 0:le.node,validate:function validate(W){if(!W)return ge("Sitegeist.Archaeopteryx:LinkTypes.Node:node.validation.required")}},(function(W){var V,G,ie,oe=W.input;return ue.createElement(de.NodeTree,{configuration:{baseNodeTypeName:null!==(V=pe.baseNodeType)&&void 0!==V?V:Ce,allowedNodeTypes:pe.allowedNodeTypes,rootNodeContextPath:Re,documentNodeContextPath:we,selectedNodeContextPath:null===(G=oe.value)||void 0===G?void 0:G.contextPath,loadingDepth:null!==(ie=pe.loadingDepth)&&void 0!==ie?ie:Pe},options:{enableSearch:!0,enableNodeTypeFilter:!0},initialSearchTerm:Ie,initialNodeTypeFilter:Fe,onSelect:function onSelect(W){var V=W.identifier+"@"+Re.context;ve.set(V,W),oe.onChange(W)}})}));throw V("Could not load node tree, because documentNodeContextPath could not be determined.")}throw V("Could not load node tree, because rootNodeContextPath could not be determined.")}}}))},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.NodeTree=void 0;var ie=G(216);Object.defineProperty(V,"NodeTree",{enumerable:!0,get:function get(){return ie.NodeTree}})},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.NodeTree=void 0;var ie=G(217);Object.defineProperty(V,"NodeTree",{enumerable:!0,get:function get(){return ie.NodeTree}})},function(W,V,G){"use strict";var __assign=function(){return(__assign=Object.assign||function(W){for(var V,G=1,ie=arguments.length;G0&&oe[oe.length-1])||6!==ue[0]&&2!==ue[0])){ae=0;continue}if(3===ue[0]&&(!oe||ue[1]>oe[0]&&ue[1]0)&&!(ie=ue.next()).done;)ae.push(ie.value)}catch(W){oe={error:W}}finally{try{ie&&!ie.done&&(G=ue.return)&&G.call(ue)}finally{if(oe)throw oe.error}}return ae};Object.defineProperty(V,"__esModule",{value:!0}),V.NodeTree=void 0;var ue=__importStar(G(0)),ae=G(55),se=G(72),de=G(16),le=G(12),pe=G(78),he=G(79),ve=G(228),ge=G(229),Se=G(232);V.NodeTree=function NodeTree(W){return ue.createElement(pe.ErrorBoundary,null,ue.createElement(we,__assign({},W)))};var we=function NodeTreeWithoutErrorHandling(W){var V,G,ie,oe,we=le.useNeos(),Ce=le.useNodeTypesRegistry(),Pe=__read(ue.useReducer(he.nodeTreeReducer,he.initialNodeTreeState),2),Ie=Pe[0],Fe=Pe[1],Re=ue.useRef(Ie);Re.current=Ie;var Le,De=function useCanBeLoadedFromUiState(W){var V=le.useSiteNodeContextPath(),G=le.useDocumentNodeContextPath(),ie=le.useConfiguration((function(W){var V,G,ie;return null===(ie=null===(G=null===(V=W.nodeTree)||void 0===V?void 0:V.presets)||void 0===G?void 0:G.default)||void 0===ie?void 0:ie.baseNodeType})),oe=le.useConfiguration((function(W){var V;return null===(V=W.nodeTree)||void 0===V?void 0:V.loadingDepth}));return le.useHasNode(W.selectedNodeContextPath)&&V&&W.rootNodeContextPath.equals(V)&&G&&W.documentNodeContextPath.equals(G)&&W.baseNodeTypeName===ie&&W.loadingDepth===oe}(W.configuration),Ue=ae.useAsync((function(){return __awaiter(void 0,void 0,void 0,(function(){var V;return __generator(this,(function(G){switch(G.label){case 0:return De?[4,he.loadNodeTreeFromUiState({state:Ie,dispatch:Fe},Ce,we,W.configuration)]:[3,2];case 1:return G.sent(),[3,4];case 2:return[4,he.loadNodeTree({state:Ie,dispatch:Fe},Ce,W.configuration)];case 3:G.sent(),G.label=4;case 4:return W.initialSearchTerm||W.initialNodeTypeFilter?[4,he.filterNodesInNodeTree({state:Re.current,dispatch:Fe},Ce,{searchTerm:null!==(V=W.initialSearchTerm)&&void 0!==V?V:null,nodeTypeFilter:W.initialNodeTypeFilter?le.NodeTypeName(W.initialNodeTypeFilter):null})]:[3,6];case 5:G.sent(),G.label=6;case 6:return[2]}}))}))}),[we,De,W.configuration.baseNodeTypeName,W.configuration.rootNodeContextPath,W.initialSearchTerm,W.initialNodeTypeFilter,W.configuration.allowedNodeTypes]),ze=ue.useMemo((function(){return W.configuration.selectedNodeContextPath?he.findNodeByContextPath(Ie,W.configuration.selectedNodeContextPath):null}),[W.configuration,Ie.nodesByContextPath]),He=ue.useCallback((function(W){Ce&&he.toggleNodeInNodeTree({state:Ie,dispatch:Fe},Ce,W)}),[Ie.nodesByContextPath,Ie.nodesByState.uncollapsed,Ce,Fe]);if(Ue.error)throw new se.VError(pe.decodeError(Ue.error),"NodeTree could not be loaded.");Le=Ue.loading||!Ie.rootNode?ue.createElement("div",null,"Loading..."):ue.createElement(de.Tree,null,ue.createElement(ve.NodeTreeNode,{state:Ie,dispatch:Fe,node:Ie.rootNode,selectedNode:ze,level:1,onToggle:He,onClick:function handleClick(V){return W.onSelect(V)},allowedNodeTypes:W.configuration.allowedNodeTypes}));var Ke=null;(null===(V=W.options)||void 0===V?void 0:V.enableSearch)&&(Ke=ue.createElement(ge.Search,{state:Ie,dispatch:Fe,initialValue:null!==(G=W.initialSearchTerm)&&void 0!==G?G:""}));var Ze=null;return(null===(ie=W.options)||void 0===ie?void 0:ie.enableNodeTypeFilter)&&(Ze=ue.createElement(Se.NodeTypeFilter,{state:Ie,dispatch:Fe,initialValue:null!==(oe=W.initialNodeTypeFilter)&&void 0!==oe?oe:""})),ue.createElement("div",{style:{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",backgroundColor:"#141414",border:"1px solid #3f3f3f"}},Ke?ue.createElement("div",{style:{gridColumn:Ze?"1 / span 1":"1 / span 2"}},Ke):null,Ze?ue.createElement("div",{style:{gridColumn:Ke?"2 / span 1":"1 / span 2"}},Ze):null,Le?ue.createElement("div",{style:{marginTop:"-5px",borderTop:"1px solid #3f3f3f",gridColumn:"1 / span 2",height:"50vh",maxHeight:"300px",overflowY:"auto"}},Le):null)}},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.decodeError=V.ErrorBoundary=void 0;var ie=G(219);Object.defineProperty(V,"ErrorBoundary",{enumerable:!0,get:function get(){return ie.ErrorBoundary}});var oe=G(224);Object.defineProperty(V,"decodeError",{enumerable:!0,get:function get(){return oe.decodeError}})},function(W,V,G){"use strict";var ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V};Object.defineProperty(V,"__esModule",{value:!0}),V.ErrorBoundary=void 0;var ue=__importStar(G(0)),ae=G(220),se=G(72),de=G(221),le=function ErrorFallback(W){var V=Boolean(document.querySelector('[data-env^="Development"]'));return ue.createElement(de.Alert,{title:""+W.error.name},ue.createElement("div",null,W.error.message),W.error instanceof se.VError?ue.createElement(pe,{error:W.error,level:0}):null,V?ue.createElement(de.Trace,{title:"Stacktrace"},W.error.stack):null)},pe=function RecursiveCauseChain(W){return W.error?ue.createElement(de.Trace,{title:"Cause: "+W.error.name},W.error.message,W.error instanceof se.VError&&W.level<10?ue.createElement(RecursiveCauseChain,{error:W.error.cause(),level:W.level+1}):null):null};function logError(W,V){console.warn("[Sitegeist.Archaeopteryx::"+W.name+"]: An error occurred."),console.error("[Sitegeist.Archaeopteryx::"+W.name+"]: ",W),console.error("[Sitegeist.Archaeopteryx::"+W.name+"]: Component Stack:",V.componentStack)}V.ErrorBoundary=function ErrorBoundary(W){return ue.createElement(ae.ErrorBoundary,{fallbackRender:le,onError:logError},W.children)}},function(W,V,G){!function(W,V){"use strict";function _interopNamespace(W){if(W&&W.__esModule)return W;var V=Object.create(null);return W&&Object.keys(W).forEach((function(G){if("default"!==G){var ie=Object.getOwnPropertyDescriptor(W,G);Object.defineProperty(V,G,ie.get?ie:{enumerable:!0,get:function(){return W[G]}})}})),V.default=W,Object.freeze(V)}var G=_interopNamespace(V);function _setPrototypeOf(W,V){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(W,V){return W.__proto__=V,W})(W,V)}var ie={error:null},oe=function(W){function ErrorBoundary(){for(var V,G=arguments.length,oe=new Array(G),ue=0;ue * + * {\n margin-top: 8px;\n }\n"],["\n padding: 8px;\n background-color: #ff6a3c;\n color: #fff;\n\n > * + * {\n margin-top: 8px;\n }\n"]))),he=de.default.header(ae||(ae=__makeTemplateObject(["\n display: flex;\n gap: 8px;\n align-items: center;\n"],["\n display: flex;\n gap: 8px;\n align-items: center;\n"])));V.Alert=function Alert(W){return se.createElement(pe,{role:"alert"},se.createElement(he,null,se.createElement(le.Icon,{icon:"exclamation-triangle"}),W.title),W.children)}},function(W,V,G){"use strict";var __makeTemplateObject=function(W,V){return Object.defineProperty?Object.defineProperty(W,"raw",{value:V}):W.raw=V,W},ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V},__importDefault=function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(V,"__esModule",{value:!0}),V.Trace=void 0;var ue,ae,se,de=__importStar(G(0)),le=__importDefault(G(17)),pe=le.default.details(ue||(ue=__makeTemplateObject(["\n"],["\n"]))),he=le.default.summary(ae||(ae=__makeTemplateObject(["\n cursor: pointer;\n"],["\n cursor: pointer;\n"]))),ve=le.default.pre(se||(se=__makeTemplateObject(["\n height: 60vh;\n max-height: 600px;\n padding: 8px;\n margin: 0;\n overflow: scroll;\n background-color: #111;\n box-shadow: inset 5px 5px 5px #000;\n"],["\n height: 60vh;\n max-height: 600px;\n padding: 8px;\n margin: 0;\n overflow: scroll;\n background-color: #111;\n box-shadow: inset 5px 5px 5px #000;\n"])));V.Trace=function Trace(W){return de.createElement(pe,null,de.createElement(he,null,W.title),de.createElement(ve,null,W.children))}},function(W,V,G){"use strict";function decodeErrorMessage(W){var V;if(W.includes("")){var G=(new DOMParser).parseFromString(W,"text/html");return"["+G.title+"] "+(null===(V=G.querySelector("h1"))||void 0===V?void 0:V.innerText)}return W}Object.defineProperty(V,"__esModule",{value:!0}),V.decodeError=void 0,V.decodeError=function decodeError(W){return W instanceof Error?(W.message=decodeErrorMessage(W.message),W):new Error(decodeErrorMessage(W))}},function(W,V,G){"use strict";var ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V},__values=function(W){var V="function"==typeof Symbol&&Symbol.iterator,G=V&&W[V],ie=0;if(G)return G.call(W);if(W&&"number"==typeof W.length)return{next:function next(){return W&&ie>=W.length&&(W=void 0),{value:W&&W[ie++],done:!W}}};throw new TypeError(V?"Object is not iterable.":"Symbol.iterator is not defined.")},__importDefault=function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(V,"__esModule",{value:!0}),V.nodeTreeReducer=V.initialNodeTreeState=void 0;var ue=__importDefault(G(226)),ae=G(76),se=G(12),de=__importStar(G(122));V.initialNodeTreeState={rootNode:null,baseNodeTypeName:se.NodeTypeName("Neos.Neos:Document"),filterParams:{searchTerm:null,nodeTypeFilter:null},nodesByContextPath:{all:{},filtered:null},nodesByState:{uncollapsed:[],loading:[]}},V.nodeTreeReducer=function nodeTreeReducer(W,G){switch(void 0===W&&(W=V.initialNodeTreeState),G.type){case ae.getType(de.NodesWereLoaded):return ue.default(W,(function(V){var ie,oe;V.rootNode=G.payload.rootNode,V.baseNodeTypeName=G.payload.baseNodeTypeName,V.nodesByContextPath.filtered=null,V.nodesByState.loading=W.nodesByState.loading.filter((function(V){return V!==W.rootNode})),V.nodesByState.uncollapsed=G.payload.uncollapsedNodes;try{for(var ue=__values(G.payload.nodes),ae=ue.next();!ae.done;ae=ue.next()){var se=ae.value;V.nodesByContextPath.all[se.contextPath.toString()]=se}}catch(W){ie={error:W}}finally{try{ae&&!ae.done&&(oe=ue.return)&&oe.call(ue)}finally{if(ie)throw ie.error}}}));case ae.getType(de.ChildNodesWereRequested):return ue.default(W,(function(W){W.nodesByState.loading.push(G.payload)}));case ae.getType(de.ChildNodesWereLoaded):return ue.default(W,(function(V){var ie,oe;V.nodesByState.loading=W.nodesByState.loading.filter((function(W){return W!==G.payload.parentNode}));try{for(var ue=__values(G.payload.childNodes),ae=ue.next();!ae.done;ae=ue.next()){var se=ae.value;V.nodesByContextPath.all[se.contextPath.toString()]=se}}catch(W){ie={error:W}}finally{try{ae&&!ae.done&&(oe=ue.return)&&oe.call(ue)}finally{if(ie)throw ie.error}}}));case ae.getType(de.NodeWasToggled):return ue.default(W,(function(V){(void 0===G.payload.forceToggleState?W.nodesByState.uncollapsed.includes(G.payload.node):!G.payload.forceToggleState)?V.nodesByState.uncollapsed=W.nodesByState.uncollapsed.filter((function(W){return W!==G.payload.node})):V.nodesByState.uncollapsed.push(G.payload.node)}));case ae.getType(de.FilteredNodesWereRequested):return ue.default(W,(function(V){W.rootNode&&!W.nodesByState.loading.includes(W.rootNode)&&V.nodesByState.loading.push(W.rootNode),V.filterParams=G.payload,V.nodesByContextPath.filtered={}}));case ae.getType(de.FilteredNodesWereLoaded):return ue.default(W,(function(V){var ie,oe;V.nodesByState.loading=W.nodesByState.loading.filter((function(V){return V!==W.rootNode})),V.nodesByContextPath.filtered={};try{for(var ue=__values(G.payload),ae=ue.next();!ae.done;ae=ue.next()){var se=ae.value;V.nodesByContextPath.filtered[se.contextPath.toString()]=se}}catch(W){ie={error:W}}finally{try{ae&&!ae.done&&(oe=ue.return)&&oe.call(ue)}finally{if(ie)throw ie.error}}}));case ae.getType(de.FilteredNodesWereReset):return ue.default(W,(function(V){V.nodesByState.loading=W.nodesByState.loading.filter((function(V){return V!==W.rootNode})),V.nodesByContextPath.filtered=null}));default:return W}}},function(W,V,G){"use strict";function n(W){for(var V=arguments.length,G=Array(V>1?V-1:0),ie=1;ie3?V.i-4:V.i:Array.isArray(W)?1:s(W)?2:v(W)?3:0}function u(W,V){return 2===o(W)?W.has(V):Object.prototype.hasOwnProperty.call(W,V)}function a(W,V){return 2===o(W)?W.get(V):W[V]}function f(W,V,G){var ie=o(W);2===ie?W.set(V,G):3===ie?(W.delete(V),W.add(G)):W[V]=G}function c(W,V){return W===V?0!==W||1/W==1/V:W!=W&&V!=V}function s(W){return ae&&W instanceof Map}function v(W){return se&&W instanceof Set}function p(W){return W.o||W.t}function l(W){if(Array.isArray(W))return Array.prototype.slice.call(W);var V=we(W);delete V[he];for(var G=Se(V),ie=0;ie1&&(W.set=W.add=W.clear=W.delete=h),Object.freeze(W),V&&i(W,(function(W,V){return d(V,!0)}),!0)),W}function h(){n(2)}function y(W){return null==W||"object"!=typeof W||Object.isFrozen(W)}function b(W){var V=Ce[W];return V||n(18,W),V}function m(W,V){Ce[W]||(Ce[W]=V)}function _(){return oe}function j(W,V){V&&(b("Patches"),W.u=[],W.s=[],W.v=V)}function g(W){O(W),W.p.forEach(S),W.p=null}function O(W){W===oe&&(oe=W.l)}function w(W){return oe={p:[],l:oe,h:W,m:!0,_:0}}function S(W){var V=W[he];0===V.i||1===V.i?V.j():V.g=!0}function P(W,V){V._=V.p.length;var G=V.p[0],ie=void 0!==W&&W!==G;return V.h.O||b("ES5").S(V,W,ie),ie?(G[he].P&&(g(V),n(4)),t(W)&&(W=M(V,W),V.l||x(V,W)),V.u&&b("Patches").M(G[he],W,V.u,V.s)):W=M(V,G,[]),g(V),V.u&&V.v(V.u,V.s),W!==le?W:void 0}function M(W,V,G){if(y(V))return V;var ie=V[he];if(!ie)return i(V,(function(oe,ue){return A(W,ie,V,oe,ue,G)}),!0),V;if(ie.A!==W)return V;if(!ie.P)return x(W,ie.t,!0),ie.t;if(!ie.I){ie.I=!0,ie.A._--;var oe=4===ie.i||5===ie.i?ie.o=l(ie.k):ie.o;i(3===ie.i?new Set(oe):oe,(function(V,ue){return A(W,ie,oe,V,ue,G)})),x(W,oe,!1),G&&W.u&&b("Patches").R(ie,G,W.u,W.s)}return ie.o}function A(W,V,G,ie,oe,ue){if(r(oe)){var ae=M(W,oe,ue&&V&&3!==V.i&&!u(V.D,ie)?ue.concat(ie):void 0);if(f(G,ie,ae),!r(ae))return;W.m=!1}if(t(oe)&&!y(oe)){if(!W.h.F&&W._<1)return;M(W,oe),V&&V.A.l||x(W,oe)}}function x(W,V,G){void 0===G&&(G=!1),W.h.F&&W.m&&d(V,G)}function z(W,V){var G=W[he];return(G?p(G):W)[V]}function I(W,V){if(V in W)for(var G=Object.getPrototypeOf(W);G;){var ie=Object.getOwnPropertyDescriptor(G,V);if(ie)return ie;G=Object.getPrototypeOf(G)}}function k(W){W.P||(W.P=!0,W.l&&k(W.l))}function E(W){W.o||(W.o=l(W.t))}function R(W,V,G){var ie=s(V)?b("MapSet").N(V,G):v(V)?b("MapSet").T(V,G):W.O?function(W,V){var G=Array.isArray(W),ie={i:G?1:0,A:V?V.A:_(),P:!1,I:!1,D:{},l:V,t:W,k:null,o:null,j:null,C:!1},oe=ie,ue=Pe;G&&(oe=[ie],ue=Ie);var ae=Proxy.revocable(oe,ue),se=ae.revoke,de=ae.proxy;return ie.k=de,ie.j=se,de}(V,G):b("ES5").J(V,G);return(G?G.A:_()).p.push(ie),ie}function D(W){return r(W)||n(22,W),function n(W){if(!t(W))return W;var V,G=W[he],ie=o(W);if(G){if(!G.P&&(G.i<4||!b("ES5").K(G)))return G.t;G.I=!0,V=F(W,ie),G.I=!1}else V=F(W,ie);return i(V,(function(W,ie){G&&a(G.t,W)===ie||f(V,W,n(ie))})),3===ie?new Set(V):V}(W)}function F(W,V){switch(V){case 2:return new Map(W);case 3:return Array.from(W)}return l(W)}function N(){function t(V,G){var ie=W[V];return ie?ie.enumerable=G:W[V]=ie={configurable:!0,enumerable:G,get:function(){var W=this[he];return Pe.get(W,V)},set:function(W){var G=this[he];Pe.set(G,V,W)}},ie}function e(W){for(var V=W.length-1;V>=0;V--){var G=W[V][he];if(!G.P)switch(G.i){case 5:a(G)&&k(G);break;case 4:o(G)&&k(G)}}}function o(W){for(var V=W.t,G=W.k,ie=Se(G),oe=ie.length-1;oe>=0;oe--){var ue=ie[oe];if(ue!==he){var ae=V[ue];if(void 0===ae&&!u(V,ue))return!0;var se=G[ue],de=se&&se[he];if(de?de.t!==ae:!c(se,ae))return!0}}var le=!!V[he];return ie.length!==Se(V).length+(le?0:1)}function a(W){var V=W.k;if(V.length!==W.t.length)return!0;var G=Object.getOwnPropertyDescriptor(V,V.length-1);return!(!G||G.get)}var W={};m("ES5",{J:function(W,V){var G=Array.isArray(W),ie=function(W,V){if(W){for(var G=Array(V.length),ie=0;ie1?ie-1:0),se=1;se1?ie-1:0),ue=1;ue=0;G--){var ie=V[G];if(0===ie.path.length&&"replace"===ie.op){W=ie.value;break}}var oe=b("Patches").$;return r(W)?oe(W,V):this.produce(W,(function(W){return oe(W,V.slice(G+1))}))},e}(),Re=new Fe,Le=Re.produce,De=Re.produceWithPatches.bind(Re),Ue=Re.setAutoFreeze.bind(Re),ze=Re.setUseProxies.bind(Re),He=Re.applyPatches.bind(Re),Ke=Re.createDraft.bind(Re),Ze=Re.finishDraft.bind(Re);V.default=Le},function(W,V,G){"use strict";var __assign=function(){return(__assign=Object.assign||function(W){for(var V,G=1,ie=arguments.length;G0&&oe[oe.length-1])||6!==ue[0]&&2!==ue[0])){ae=0;continue}if(3===ue[0]&&(!oe||ue[1]>oe[0]&&ue[1]0,isLastChild:!0,isCollapsed:he,isActive:ge,isFocused:ge,isLoading:ve,isDirty:!1,isHidden:W.node.properties._hidden,isHiddenInIndex:W.node.properties._hiddenInIndex,isDragging:!1,hasError:!1,label:W.node.label,icon:Se?"fas fa-unlink":null===(G=null==oe?void 0:oe.ui)||void 0===G?void 0:G.icon,iconLabel:null==oe?void 0:oe.label,level:W.level,onToggle:le,onClick:Se?function(){}:pe,dragForbidden:!0,title:W.node.label}),he?null:de.findChildNodesForNode(W.state,W.node).map((function(G){return ue.createElement(V.NodeTreeNode,__assign({},W,{node:G,level:W.level+1,allowedNodeTypes:W.allowedNodeTypes}))})))}},function(W,V,G){"use strict";var ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V},__read=function(W,V){var G="function"==typeof Symbol&&W[Symbol.iterator];if(!G)return W;var ie,oe,ue=G.call(W),ae=[];try{for(;(void 0===V||V-- >0)&&!(ie=ue.next()).done;)ae.push(ie.value)}catch(W){oe={error:W}}finally{try{ie&&!ie.done&&(G=ue.return)&&G.call(ue)}finally{if(oe)throw oe.error}}return ae};Object.defineProperty(V,"__esModule",{value:!0}),V.Search=void 0;var ue=__importStar(G(0)),ae=G(55),se=G(12),de=G(79),le=G(230);V.Search=function Search(W){var V=ue.useRef(!1),G=ue.useRef(!1),ie=se.useNodeTypesRegistry(),oe=__read(ue.useState(W.initialValue),2),pe=oe[0],he=oe[1],ve=ue.useCallback((function(){he(""),ie&&de.searchForNodesInNodeTree({state:W.state,dispatch:W.dispatch},ie,null),G.current=!0}),[he,ie]);return ae.useDebounce((function(){V.current&&!G.current?de.searchForNodesInNodeTree({state:W.state,dispatch:W.dispatch},ie,pe||null):(V.current=!0,G.current=!1)}),300,[pe,ie]),ue.createElement(le.SearchInput,{value:pe,onChange:he,onClear:ve})}},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.SearchInput=void 0;var ie=G(231);Object.defineProperty(V,"SearchInput",{enumerable:!0,get:function get(){return ie.SearchInput}})},function(W,V,G){"use strict";var __makeTemplateObject=function(W,V){return Object.defineProperty?Object.defineProperty(W,"raw",{value:V}):W.raw=V,W},ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V},__importDefault=function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(V,"__esModule",{value:!0}),V.SearchInput=void 0;var ue,ae,se,de,le=__importStar(G(0)),pe=__importDefault(G(17)),he=G(16),ve=G(12),ge=pe.default(he.Icon)(ue||(ue=__makeTemplateObject(["\n position: absolute;\n top: 50%;\n left: 21px;\n transform: translate(-50%, -50%);\n"],["\n position: absolute;\n top: 50%;\n left: 21px;\n transform: translate(-50%, -50%);\n"]))),Se=pe.default(he.IconButton)(ae||(ae=__makeTemplateObject(["\n position: absolute;\n top: 0;\n right: 0;\n color: #000;\n"],["\n position: absolute;\n top: 0;\n right: 0;\n color: #000;\n"]))),we=pe.default(he.TextInput)(se||(se=__makeTemplateObject(["\n padding-left: 42px;\n\n &:focus {\n background: #3f3f3f;\n color: #fff;\n }\n"],["\n padding-left: 42px;\n\n &:focus {\n background: #3f3f3f;\n color: #fff;\n }\n"]))),Ce=pe.default.div(de||(de=__makeTemplateObject(["\n position: relative;\n"],["\n position: relative;\n"])));V.SearchInput=function SearchInput(W){var V=ve.useI18n(),G=le.useRef(W.value);return le.useEffect((function(){G.current===W.value||W.value||W.onClear(),G.current=W.value}),[W.value]),le.createElement(Ce,null,le.createElement(ge,{icon:"search"}),le.createElement(we,{type:"search",value:W.value,placeholder:V("Neos.Neos:Main:search"),onChange:W.onChange}),W.value&&le.createElement(Se,{icon:"times",onClick:W.onClear}))}},function(W,V,G){"use strict";var ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V},__read=function(W,V){var G="function"==typeof Symbol&&W[Symbol.iterator];if(!G)return W;var ie,oe,ue=G.call(W),ae=[];try{for(;(void 0===V||V-- >0)&&!(ie=ue.next()).done;)ae.push(ie.value)}catch(W){oe={error:W}}finally{try{ie&&!ie.done&&(G=ue.return)&&G.call(ue)}finally{if(oe)throw oe.error}}return ae};Object.defineProperty(V,"__esModule",{value:!0}),V.NodeTypeFilter=void 0;var ue=__importStar(G(0)),ae=G(12),se=G(16),de=G(79),le=function searchOptions(W,V){return V.filter((function(V){return V.label&&-1!==V.label.toLowerCase().indexOf(W.toLowerCase())}))};V.NodeTypeFilter=function NodeTypeFilter(W){var V,G=ae.useI18n(),ie=null!==(V=ae.useConfiguration((function(W){var V;return null===(V=W.nodeTree)||void 0===V?void 0:V.presets})))&&void 0!==V?V:{},oe=ae.useNodeTypesRegistry(),pe=__read(ue.useState(""),2),he=pe[0],ve=pe[1],ge=__read(ue.useState(W.initialValue),2),Se=ge[0],we=ge[1],Ce=ue.useMemo((function(){var W=Object.keys(ie).filter((function(W){return"default"!==W})).map((function(W){var V,oe;return{value:ie[W].baseNodeType,label:(null===(V=ie[W].ui)||void 0===V?void 0:V.label)?G(ie[W].ui.label):"["+W+"]",icon:null===(oe=ie[W].ui)||void 0===oe?void 0:oe.icon}}));0===W.length&&oe&&(W=oe.getSubTypesOf(oe.getRole("document")).map((function(W){return oe.get(W)})).filter(Boolean).map((function(W){var V;return{value:W.name,label:G(W.label),icon:null===(V=W.ui)||void 0===V?void 0:V.icon}})));return W}),[ie,oe]);return ue.useEffect((function(){de.filterNodesByNodeTypeInNodeTree({state:W.state,dispatch:W.dispatch},oe,Se?ae.NodeTypeName(Se):null)}),[Se,oe]),ue.createElement(se.SelectBox,{placeholder:G("Neos.Neos:Main:filter"),placeholderIcon:"filter",onValueChange:we,allowEmpty:!0,value:Se,options:le(he,Ce),displaySearchBox:!0,searchTerm:he,onSearchTermChange:ve,threshold:0,noMatchesFoundLabel:G("Neos.Neos:Main:noMatchesFound"),searchBoxLeftToTypeLabel:G("Neos.Neos:Main:searchBoxLeftToType")})}},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.Asset=void 0;var ie=G(234);Object.defineProperty(V,"Asset",{enumerable:!0,get:function get(){return ie.Asset}})},function(W,V,G){"use strict";var ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V};Object.defineProperty(V,"__esModule",{value:!0}),V.Asset=void 0;var ue=__importStar(G(0)),ae=G(12),se=G(43),de=G(30),le=G(38),pe=G(235);V.Asset=de.makeLinkType("Sitegeist.Archaeopteryx:Asset",(function(W){var V=W.createError;return{supportedLinkOptions:["title","targetBlank","relNofollow"],isSuitableFor:function isSuitableFor(W){return W.href.startsWith("asset://")},useResolvedModel:function useResolvedModel(W){var G=/asset:\/\/(.*)/.exec(W.href);return G?se.Process.success({identifier:G[1]}):se.Process.error(V('Cannot handle href "'+W.href+'".'))},convertModelToLink:function convertModelToLink(W){return{href:"asset://"+W.identifier}},TabHeader:function TabHeader(){var W=ae.useI18n();return ue.createElement(le.IconLabel,{icon:"camera"},W("Sitegeist.Archaeopteryx:LinkTypes.Asset:title"))},Preview:function Preview(W){var V,G,ie=W.model,oe=ae.useAssetSummary(ie.identifier);return oe.value?ue.createElement(le.ImageCard,{label:null===(V=oe.value)||void 0===V?void 0:V.label,src:null===(G=oe.value)||void 0===G?void 0:G.preview}):null},Editor:function Editor(W){var V=W.model,G=ae.useI18n();return ue.createElement(se.Field,{name:"identifier",initialValue:null==V?void 0:V.identifier,validate:function validate(W){if(!W)return G("Sitegeist.Archaeopteryx:LinkTypes.Asset:identifier.validation.required")}},(function(W){var V=W.input;return ue.createElement(pe.MediaBrowser,{assetIdentifier:V.value,onSelectAsset:V.onChange})}))}}}))},function(W,V,G){"use strict";var ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V};Object.defineProperty(V,"__esModule",{value:!0}),V.MediaBrowser=void 0;var ue=__importStar(G(0)),ae=G(12);V.MediaBrowser=function MediaBrowser(W){var V=ae.useRoutes((function(W){var V,G;return null===(G=null===(V=W.core)||void 0===V?void 0:V.modules)||void 0===G?void 0:G.mediaBrowser}));if(ue.useEffect((function(){window.NeosMediaBrowserCallbacks={assetChosen:function assetChosen(V){W.onSelectAsset(V)}}}),[W.onSelectAsset]),!V)throw new Error("[Sitegeist.Archaeopteryx]: Could not resolve mediaBrowserUri.");return W.assetIdentifier?ue.createElement("iframe",{name:"neos-media-selection-screen",src:V+"/images/edit.html?asset[__identity]="+W.assetIdentifier,style:{width:"calc(100vw - 160px)",maxWidth:"1260px",height:"calc(100vh - 480px)"},frameBorder:"0",onLoad:function onLoad(W){var V,G,ie=W.target.contentDocument;ie&&(ie.body.style.overflowX="hidden",ie.body.style.padding="0",null===(V=ie.querySelector("form > .neos-footer"))||void 0===V||V.remove(),null===(G=ie.querySelectorAll("input, select, textarea"))||void 0===G||G.forEach((function(W){W.readOnly=!0})))}}):ue.createElement("iframe",{name:"neos-media-selection-screen",src:V+"/assets/index.html",style:{width:"calc(100vw - 160px)",maxWidth:"1260px",height:"calc(100vh - 480px)"},frameBorder:"0",onLoad:function onLoad(W){var V=W.target.contentDocument;V&&(V.body.style.overflowX="hidden",V.body.style.padding="0")}})}},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.MailTo=void 0;var ie=G(237);Object.defineProperty(V,"MailTo",{enumerable:!0,get:function get(){return ie.MailTo}})},function(W,V,G){"use strict";var ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V};Object.defineProperty(V,"__esModule",{value:!0}),V.MailTo=void 0;var ue=__importStar(G(0)),ae=G(12),se=G(43),de=G(30),le=G(38),pe=/^[^\s@]+@[^\s@]+$/;V.MailTo=de.makeLinkType("Sitegeist.Archaeopteryx:MailTo",(function(W){var V=W.createError;return{isSuitableFor:function isSuitableFor(W){return W.href.startsWith("mailto:")},useResolvedModel:function useResolvedModel(W){var G,ie,oe,ue;if(!W.href.startsWith("mailto:"))return se.Process.error(V('Cannot handle href "'+W.href+'".'));var ae=new URL(W.href);return se.Process.success({recipient:ae.pathname,subject:null!==(G=ae.searchParams.get("subject"))&&void 0!==G?G:void 0,cc:null!==(ie=ae.searchParams.get("cc"))&&void 0!==ie?ie:void 0,bcc:null!==(oe=ae.searchParams.get("bcc"))&&void 0!==oe?oe:void 0,body:null!==(ue=ae.searchParams.get("body"))&&void 0!==ue?ue:void 0})},convertModelToLink:function convertModelToLink(W){var V="mailto:"+W.recipient+"?";return W.subject&&(V+="subject="+W.subject),W.cc&&!W.subject?V+="cc="+W.cc:W.cc&&(V+="&cc="+W.cc),!W.bcc||W.subject||W.cc?W.bcc&&(V+="&bcc="+W.bcc):V+="bcc="+W.bcc,!W.body||W.subject||W.cc||W.bcc?W.body&&(V+="&body="+W.body):V+="body="+W.body,{href:V}},TabHeader:function TabHeader(){var W=ae.useI18n();return ue.createElement(le.IconLabel,{icon:"envelope"},W("Sitegeist.Archaeopteryx:LinkTypes.MailTo:title"))},Preview:function Preview(W){var V,G,ie=W.model;return ue.createElement(le.IconCard,{icon:"envelope",title:ie.recipient,subTitle:ie.subject||ie.body?((null!==(V=ie.subject)&&void 0!==V?V:"")+" "+(null!==(G=ie.body)&&void 0!==G?G:"")).trim():void 0})},Editor:function Editor(W){var V,G,ie,oe,de=W.model,he=W.options,ve=ae.useI18n();return ue.createElement(le.Layout.Columns,null,ue.createElement(se.Field,{name:"recipient",initialValue:null==de?void 0:de.recipient,validate:function validate(W){return W?pe.test(W)?void 0:ve("Sitegeist.Archaeopteryx:LinkTypes.MailTo:recipient.validation.email"):ve("Sitegeist.Archaeopteryx:LinkTypes.MailTo:recipient.validation.required")}},(function(W){var V=W.input,G=W.meta;return ue.createElement("div",{style:{gridColumn:"1 / -1"}},ue.createElement(se.EditorEnvelope,{label:ve("Sitegeist.Archaeopteryx:LinkTypes.MailTo:recipient.label"),editor:"Neos.Neos/Inspector/Editors/TextFieldEditor",input:V,meta:G}))})),!1!==(null===(V=he.enabledFields)||void 0===V?void 0:V.subject)?ue.createElement(se.Field,{name:"subject",initialValue:null==de?void 0:de.subject},(function(W){var V=W.input,G=W.meta;return ue.createElement("div",{style:{gridColumn:"1 / -1"}},ue.createElement(se.EditorEnvelope,{label:ve("Sitegeist.Archaeopteryx:LinkTypes.MailTo:subject.label"),editor:"Neos.Neos/Inspector/Editors/TextFieldEditor",input:V,meta:G}))})):null,!1!==(null===(G=he.enabledFields)||void 0===G?void 0:G.cc)?ue.createElement(se.Field,{name:"cc",initialValue:null==de?void 0:de.cc,validate:function validate(W){if(null!=W&&!W.split(",").every((function(W){return pe.test(W.trim())})))return ve("Sitegeist.Archaeopteryx:LinkTypes.MailTo:cc.validation.emaillist")}},(function(W){var V=W.input,G=W.meta;return ue.createElement("div",{style:{gridColumn:"1 / -1"}},ue.createElement(se.EditorEnvelope,{label:ve("Sitegeist.Archaeopteryx:LinkTypes.MailTo:cc.label"),editor:"Neos.Neos/Inspector/Editors/TextFieldEditor",editorOptions:{placeholder:ve("Sitegeist.Archaeopteryx:LinkTypes.MailTo:cc.placeholder")},input:V,meta:G}))})):null,!1!==(null===(ie=he.enabledFields)||void 0===ie?void 0:ie.bcc)?ue.createElement(se.Field,{name:"bcc",initialValue:null==de?void 0:de.bcc,validate:function validate(W){if(null!=W&&!W.split(",").every((function(W){return pe.test(W.trim())})))return ve("Sitegeist.Archaeopteryx:LinkTypes.MailTo:bcc.validation.emaillist")}},(function(W){var V=W.input,G=W.meta;return ue.createElement("div",{style:{gridColumn:"1 / -1"}},ue.createElement(se.EditorEnvelope,{label:ve("Sitegeist.Archaeopteryx:LinkTypes.MailTo:bcc.label"),editor:"Neos.Neos/Inspector/Editors/TextFieldEditor",editorOptions:{placeholder:ve("Sitegeist.Archaeopteryx:LinkTypes.MailTo:bcc.placeholder")},input:V,meta:G}))})):null,!1!==(null===(oe=he.enabledFields)||void 0===oe?void 0:oe.body)?ue.createElement(se.Field,{name:"body",initialValue:null==de?void 0:de.body},(function(W){var V=W.input,G=W.meta;return ue.createElement("div",{style:{gridColumn:"1 / -1"}},ue.createElement(se.EditorEnvelope,{label:ve("Sitegeist.Archaeopteryx:LinkTypes.MailTo:body.label"),editor:"Neos.Neos/Inspector/Editors/TextAreaEditor",input:V,meta:G}))})):null)}}}))},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.PhoneNumber=void 0;var ie=G(239);Object.defineProperty(V,"PhoneNumber",{enumerable:!0,get:function get(){return ie.PhoneNumber}})},function(W,V,G){"use strict";var ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V},__read=function(W,V){var G="function"==typeof Symbol&&W[Symbol.iterator];if(!G)return W;var ie,oe,ue=G.call(W),ae=[];try{for(;(void 0===V||V-- >0)&&!(ie=ue.next()).done;)ae.push(ie.value)}catch(W){oe={error:W}}finally{try{ie&&!ie.done&&(G=ue.return)&&G.call(ue)}finally{if(oe)throw oe.error}}return ae};Object.defineProperty(V,"__esModule",{value:!0}),V.PhoneNumber=void 0;var ue=__importStar(G(0)),ae=G(0),se=G(69),de=G(16),le=G(12),pe=G(251),he=G(30),ve=G(43),ge=G(38);V.PhoneNumber=he.makeLinkType("Sitegeist.Archaeopteryx:PhoneNumber",(function(W){var V=W.createError;return{isSuitableFor:function isSuitableFor(W){return W.href.startsWith("tel:")},useResolvedModel:function useResolvedModel(W){var G=pe.parsePhoneNumber(W.href.replace("tel:",""));return G?ve.Process.success({phoneNumber:G.number.replace("+"+G.countryCallingCode,""),countryCallingCode:"+"+G.countryCallingCode.toString()}):ve.Process.error(V('Cannot handle href "'+W.href+'".'))},convertModelToLink:function convertModelToLink(W){return{href:"tel:"+W.countryCallingCode+W.phoneNumber}},TabHeader:function TabHeader(){var W=le.useI18n();return ue.createElement(ge.IconLabel,{icon:"phone-alt"},W("Sitegeist.Archaeopteryx:LinkTypes.PhoneNumber:title"))},Preview:function Preview(W){var V=W.model;return ue.createElement(ge.IconCard,{icon:"phone-alt",title:(new pe.AsYouType).input(""+V.countryCallingCode+V.phoneNumber)})},Editor:function Editor(W){var V,G=W.model,ie=W.options,oe=(null==G?void 0:G.countryCallingCode)||((null==ie?void 0:ie.defaultCountry)?"+"+pe.getCountryCallingCode(null==ie?void 0:ie.defaultCountry).toString():"+"+pe.getCountryCallingCode(pe.getCountries()[0]).toString()),he=__read(ae.useState(oe),2),ge=he[0],Se=he[1],we=le.useI18n(),Ce={};null===(V=ie.favoredCountries)||void 0===V||V.map((function(W){Ce["+"+pe.getCountryCallingCode(W)]?Ce["+"+pe.getCountryCallingCode(W)]={value:"+"+pe.getCountryCallingCode(W),label:Ce["+"+pe.getCountryCallingCode(W)].label.split(/\s\+/)[0]+", "+W+" +"+pe.getCountryCallingCode(W)}:Ce["+"+pe.getCountryCallingCode(W)]={value:"+"+pe.getCountryCallingCode(W),label:W+" +"+pe.getCountryCallingCode(W)}})),pe.getCountries().map((function(W){var V;(null===(V=ie.favoredCountries)||void 0===V?void 0:V.includes(W))||(Ce["+"+pe.getCountryCallingCode(W)]?Ce["+"+pe.getCountryCallingCode(W)]={value:"+"+pe.getCountryCallingCode(W),label:Ce["+"+pe.getCountryCallingCode(W)].label.split(/\s\+/)[0]+", "+W+" +"+pe.getCountryCallingCode(W)}:Ce["+"+pe.getCountryCallingCode(W)]={value:"+"+pe.getCountryCallingCode(W),label:W+" +"+pe.getCountryCallingCode(W)})}));var Pe=/^[1-9][0-9]*$/;return ue.createElement("div",null,ue.createElement("label",{htmlFor:"linkTypeProps.Sitegeist_Archaeopteryx:PhoneNumber.phoneNumber"},we("Sitegeist.Archaeopteryx:LinkTypes.PhoneNumber:phoneNumber.label")),ue.createElement("div",{style:{display:"grid",gridTemplateColumns:"160px 1fr",minWidth:"600px"}},ue.createElement(ve.Field,{name:"countryCallingCode",format:function format(W){return void 0===W&&""===W||Se(W),""!==W&&void 0!==W||se.useForm().change("linkTypeProps.Sitegeist_Archaeopteryx:PhoneNumber.countryCallingCode",ge),W},initialValue:ge||oe,validate:function validate(W){if(!W)return we("Sitegeist.Archaeopteryx:LinkTypes.PhoneNumber:countryCallingCode.validation.required")}},(function(W){var V=W.input;return ue.createElement("div",{style:{margin:"0.25rem 0 0 0"}},ue.createElement(de.SelectBox,{allowEmpty:!1,options:Object.values(Ce),onValueChange:function onValueChange(W){Se(W),V.onChange(W)},value:V.value}))})),ue.createElement(ve.Field,{name:"phoneNumber",initialValue:null==G?void 0:G.phoneNumber,validate:function validate(W){return W?Pe.test(W)?void 0:we("Sitegeist.Archaeopteryx:LinkTypes.PhoneNumber:phoneNumber.validation.numbersOnly"):we("Sitegeist.Archaeopteryx:LinkTypes.PhoneNumber:phoneNumber.validation.required")}},(function(W){var V=W.input,G=W.meta;return ue.createElement(ve.EditorEnvelope,{label:"",editor:"Neos.Neos/Inspector/Editors/TextFieldEditor",editorOptions:{placeholder:we("Sitegeist.Archaeopteryx:LinkTypes.PhoneNumber:phoneNumber.placeholder")},input:V,meta:G})}))))}}}))},function(W,V,G){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.CustomLink=void 0;var ie=G(241);Object.defineProperty(V,"CustomLink",{enumerable:!0,get:function get(){return ie.CustomLink}})},function(W,V,G){"use strict";var __assign=function(){return(__assign=Object.assign||function(W){for(var V,G=1,ie=arguments.length;G...'})},Editor:function Editor(W){var V=W.model,G=ae.useI18n();return ue.createElement("div",null,ue.createElement("label",null,G("Sitegeist.Archaeopteryx:LinkTypes.CustomLink:customLink.label")),ue.createElement("div",{style:{display:"grid",gridTemplateColumns:"400px 1fr",minWidth:"600px"}},ue.createElement(le.Field,{name:"customLink",initialValue:null==V?void 0:V.customLink,validate:function validate(W){if(!W)return G("Sitegeist.Archaeopteryx:LinkTypes.CustomLink:validation.required")}},(function(W){var V=W.input;return ue.createElement(se.TextInput,__assign({id:V.name,type:"text",placeHolder:G("Sitegeist.Archaeopteryx:LinkTypes.CustomLink:customLink.placeholder")},V))}))))}}}))},function(W,V,G){"use strict";var ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V};Object.defineProperty(V,"__esModule",{value:!0}),V.registerDialog=void 0;var ue=__importStar(G(0)),ae=G(12),se=G(30),de=G(243);V.registerDialog=function registerDialog(W,V){var G=W.globalRegistry.get("containers");null==G||G.set("Modals/Sitegeist.Archaeopteryx",(function(G){return ue.createElement(ae.NeosContext.Provider,{value:W},ue.createElement(se.EditorContext.Provider,{value:V},ue.createElement(de.Dialog,G)))}))}},function(W,V,G){"use strict";var __assign=function(){return(__assign=Object.assign||function(W){for(var V,G=1,ie=arguments.length;G0)&&!(ie=ue.next()).done;)ae.push(ie.value)}catch(W){oe={error:W}}finally{try{ie&&!ie.done&&(G=ue.return)&&G.call(ue)}finally{if(oe)throw oe.error}}return ae};Object.defineProperty(V,"__esModule",{value:!0}),V.Dialog=void 0;var ue=__importStar(G(0)),ae=G(69),se=G(55),de=G(16),le=G(12),pe=G(78),he=G(43),ve=G(30),ge=G(38),Se=G(244),we=G(245);V.Dialog=function Dialog(){var W=le.useI18n(),V=ve.useLinkTypes(),G=le.useSelector((function(W){var V;return!(null===(V=W.system)||void 0===V?void 0:V.authenticationTimeout)})),ie=ve.useEditorTransactions(),oe=ie.dismiss,he=ie.apply,Se=ie.unset,we=ve.useEditorState(),Ie=we.isOpen,Fe=we.initialValue,Re=__read(ue.useState(!1),2),Le=Re[0],De=Re[1],Ue=ue.useCallback((function(W){var G,ie=V.find((function(V){return V.id===W.linkTypeId}));if(ie){var oe=null===(G=W.linkTypeProps)||void 0===G?void 0:G[ie.id.split(".").join("_")];if(oe){var ue=__assign(__assign({},ie.convertModelToLink(oe)),{options:W.options?Object.keys(W.options).filter((function(W){return ie.supportedLinkOptions.includes(W)})).reduce((function(V,G){return V[G]=W.options[G],V}),{}):{}});he(ue),De(!1)}}else Le&&(Se(),De(!1))}),[V,Le]);return se.useKey("Escape",oe),Ie&&G?ue.createElement(ge.Modal,{renderTitle:function renderTitle(){return ue.createElement("div",null,W("Sitegeist.Archaeopteryx:Main:dialog.title"))},renderBody:function renderBody(){return ue.createElement(ae.Form,{onSubmit:Ue},(function(V){var G=V.handleSubmit,ie=V.valid,ae=V.dirty;V.values;return ue.createElement(pe.ErrorBoundary,null,ue.createElement(ge.Form,{renderBody:function renderBody(){return null===Fe||Le?ue.createElement(Ce,{valid:ie,onDelete:function onDelete(){return De(!0)}}):ue.createElement(Pe,{value:Fe,onDelete:function onDelete(){return De(!0)}})},renderActions:function renderActions(){return ue.createElement(ue.Fragment,null,ue.createElement(de.Button,{onClick:oe},W("Sitegeist.Archaeopteryx:Main:dialog.action.cancel")),ie&&ae||!Le?ue.createElement(de.Button,{style:"success",type:"submit",disabled:!ie||!ae},W("Sitegeist.Archaeopteryx:Main:dialog.action.apply")):ue.createElement(de.Button,{style:"success",type:"button",onClick:Se},W("Sitegeist.Archaeopteryx:Main:dialog.action.apply")))},onSubmit:G}))}))}}):(Le&&De(!1),null)};var Ce=function DialogWithEmptyValue(W){var V,G=ae.useForm(),ie=ve.useEditorState(),oe=ie.enabledLinkOptions,se=ie.editorOptions,de=ve.useSortedAndFilteredLinkTypes();return ue.createElement(he.Field,{name:"linkTypeId",initialValue:null===(V=de[0])||void 0===V?void 0:V.id},(function(V){var ie=V.input;return ue.createElement(ge.Tabs,{lazy:!0,from:de,activeItemKey:ie.value,getKey:function getKey(W){return W.id},renderHeader:function renderHeader(W){var V,G,ie=W.id,oe=W.TabHeader;return ue.createElement(oe,{options:null!==(G=null===(V=se.linkTypes)||void 0===V?void 0:V[ie])&&void 0!==G?G:{}})},renderPanel:function renderPanel(V){var ie,ae,de,le,he=V.Preview,ve=null===(ie=G.getState().values.linkTypeProps)||void 0===ie?void 0:ie[V.id.split(".").join("_")];return ue.createElement(ge.Layout.Stack,null,W.valid&&ve?ue.createElement(ge.Deletable,{onDelete:function onDelete(){W.onDelete(),G.change("linkTypeProps",null)}},ue.createElement(pe.ErrorBoundary,null,ue.createElement(he,{model:null===(ae=G.getState().values.linkTypeProps)||void 0===ae?void 0:ae[V.id.split(".").join("_")],options:null!==(le=null===(de=se.linkTypes)||void 0===de?void 0:de[V.id])&&void 0!==le?le:{},link:{href:""}}))):null,ue.createElement("div",{style:{overflow:"auto"}},ue.createElement(Se.LinkEditor,{key:V.id,link:null,linkType:V}),oe.length&&V.supportedLinkOptions.length?ue.createElement(we.Settings,{enabledLinkOptions:oe.filter((function(W){return V.supportedLinkOptions.includes(W)}))}):null))},onSwitchTab:ie.onChange})}))},Pe=function DialogWithValue(W){var V,G,ie,oe=ae.useForm(),se=ve.useEditorState(),de=se.enabledLinkOptions,le=se.editorOptions,Ce=ve.useLinkTypeForHref(W.value.href),Pe=Ce.useResolvedModel(W.value).result,Ie=Ce.Preview,Fe=oe.getState(),Re=null!==(G=Fe.valid?null===(V=Fe.values.linkTypeProps)||void 0===V?void 0:V[Ce.id.split(".").join("_")]:Pe)&&void 0!==G?G:Pe,Le=ve.useSortedAndFilteredLinkTypes();return ue.createElement(he.Field,{name:"linkTypeId",initialValue:null===(ie=Le[0])||void 0===ie?void 0:ie.id},(function(V){var G=V.input;return ue.createElement(ge.Tabs,{lazy:!0,from:Le,activeItemKey:G.value||Ce.id,getKey:function getKey(W){return W.id},renderHeader:function renderHeader(W){var V,G,ie=W.id,oe=W.TabHeader;return ue.createElement(oe,{options:null!==(G=null===(V=le.linkTypes)||void 0===V?void 0:V[ie])&&void 0!==G?G:{}})},renderPanel:function renderPanel(V){var G,ie,ae,se=null===(G=oe.getState().values.linkTypeProps)||void 0===G?void 0:G[V.id.split(".").join("_")],he=V.Preview,ve=se;return(!se||"Sitegeist.Archaeopteryx:Web"===V.id&&!(null==se?void 0:se.urlWithoutProtocol)||"Sitegeist.Archaeopteryx:PhoneNumber"===V.id&&!(null==se?void 0:se.phoneNumber)||"Sitegeist.Archaeopteryx:CustomLink"===V.id&&!(null==se?void 0:se.CustomLink))&&(he=Ie,ve=Re),ue.createElement(ge.Layout.Stack,null,ve?ue.createElement(ge.Deletable,{onDelete:function onDelete(){W.onDelete(),oe.change("linkTypeProps",null)}},ue.createElement(pe.ErrorBoundary,null,ue.createElement(he,{model:ve,options:null!==(ae=null===(ie=le.linkTypes)||void 0===ie?void 0:ie[V.id])&&void 0!==ae?ae:{},link:W.value}))):null,ue.createElement(Se.LinkEditor,{key:V.id,link:V.isSuitableFor(W.value)?W.value:null,linkType:V}),de.length&&V.supportedLinkOptions.length?ue.createElement(we.Settings,{initialValue:W.value.options,enabledLinkOptions:de.filter((function(W){return V.supportedLinkOptions.includes(W)}))}):null)},onSwitchTab:G.onChange})}))}},function(W,V,G){"use strict";var ie=Object.create?function(W,V,G,ie){void 0===ie&&(ie=G),Object.defineProperty(W,ie,{enumerable:!0,get:function get(){return V[G]}})}:function(W,V,G,ie){void 0===ie&&(ie=G),W[ie]=V[G]},oe=Object.create?function(W,V){Object.defineProperty(W,"default",{enumerable:!0,value:V})}:function(W,V){W.default=V},__importStar=function(W){if(W&&W.__esModule)return W;var V={};if(null!=W)for(var G in W)"default"!==G&&Object.prototype.hasOwnProperty.call(W,G)&&ie(V,W,G);return oe(V,W),V};Object.defineProperty(V,"__esModule",{value:!0}),V.LinkEditor=void 0;var ue=__importStar(G(0)),ae=G(78),se=G(43),de=G(30);V.LinkEditor=function LinkEditor(W){return ue.createElement(ae.ErrorBoundary,null,null===W.link?ue.createElement(le,{linkType:W.linkType}):ue.createElement(pe,{link:W.link,linkType:W.linkType}))};var le=function LinkEditorWithoutValue(W){var V,G,ie=de.useEditorState().editorOptions,oe=W.linkType.Editor,ae="linkTypeProps."+W.linkType.id.split(".").join("_");return ue.createElement(se.FieldGroup,{prefix:ae},ue.createElement(oe,{model:null,options:null!==(G=null===(V=ie.linkTypes)||void 0===V?void 0:V[W.linkType.id])&&void 0!==G?G:{},link:null}))},pe=function LinkEditorWithValue(W){var V,G,ie,oe,ae,le=de.useEditorState().editorOptions,pe=W.linkType.useResolvedModel(W.link),he=pe.busy,ve=pe.error,ge=function useLastNonNull(W){var V=ue.useRef(W);return null!==W&&(V.current=W),V.current}(pe.result),Se=W.linkType,we=Se.Editor,Ce=Se.LoadingEditor;if(ve)throw ve;return he&&!ge?ue.createElement(Ce,{link:null!==(V=W.link)&&void 0!==V?V:void 0,options:null!==(ie=null===(G=le.linkTypes)||void 0===G?void 0:G[W.linkType.id])&&void 0!==ie?ie:{}}):ue.createElement(se.FieldGroup,{prefix:"linkTypeProps."+W.linkType.id.split(".").join("_")},ue.createElement(we,{model:ge,options:null!==(ae=null===(oe=le.linkTypes)||void 0===oe?void 0:oe[W.linkType.id])&&void 0!==ae?ae:{},link:W.link}))}},function(W,V,G){"use strict";var __assign=function(){return(__assign=Object.assign||function(W){for(var V,G=1,ie=arguments.length;G0&&oe[oe.length-1])||6!==ue[0]&&2!==ue[0])){ae=0;continue}if(3===ue[0]&&(!oe||ue[1]>oe[0]&&ue[1]0&&oe[oe.length-1])||6!==ue[0]&&2!==ue[0])){ae=0;continue}if(3===ue[0]&&(!oe||ue[1]>oe[0]&&ue[1]0)&&!(ie=ue.next()).done;)ae.push(ie.value)}catch(W){oe={error:W}}finally{try{ie&&!ie.done&&(G=ue.return)&&G.call(ue)}finally{if(oe)throw oe.error}}return ae};Object.defineProperty(V,"__esModule",{value:!0}),V.LinkButton=void 0;var ue=__importStar(G(0)),ae=G(16),se=G(67),de=G(12);V.LinkButton=function LinkButton(W){var V,G,ie,oe,le,pe,he,ve,ge=de.useI18n(),Se=se.useEditorTransactions(),we=__assign(__assign({},null===(G=null===(V=W.inlineEditorOptions)||void 0===V?void 0:V.linking)||void 0===G?void 0:G["Sitegeist.Archaeopteryx"]),{linkTypes:__assign({},null===(le=null===(oe=null===(ie=W.inlineEditorOptions)||void 0===ie?void 0:ie.linking)||void 0===oe?void 0:oe["Sitegeist.Archaeopteryx"])||void 0===le?void 0:le.linkTypes)});(null===(he=null===(pe=W.inlineEditorOptions)||void 0===pe?void 0:pe.linking)||void 0===he?void 0:he.startingPoint)&&(we.linkTypes["Sitegeist.Archaeopteryx:Node"]=__assign(__assign({},we.linkTypes["Sitegeist.Archaeopteryx:Node"]),{startingPoint:null!==(ve=we.linkTypes["Sitegeist.Archaeopteryx:Node"].startingPoint)&&void 0!==ve?ve:W.inlineEditorOptions.linking.startingPoint}));var Ce=ue.useCallback((function(){return __awaiter(void 0,void 0,void 0,(function(){var V,G,ie,oe,ue,ae,se,de,le,pe;return __generator(this,(function(he){switch(he.label){case 0:return V=function(){if(W.formattingUnderCursor.link){var V=__read(W.formattingUnderCursor.link.split("#"),2);return{href:V[0],options:{anchor:V[1],title:W.formattingUnderCursor.linkTitle,targetBlank:W.formattingUnderCursor.linkTargetBlank,relNofollow:W.formattingUnderCursor.linkRelNofollow}}}return null}(),G=function(){var V,G,ie,oe,ue,ae,se,de,le=[];return(null===(G=null===(V=W.inlineEditorOptions)||void 0===V?void 0:V.linking)||void 0===G?void 0:G.anchor)&&le.push("anchor"),(null===(oe=null===(ie=W.inlineEditorOptions)||void 0===ie?void 0:ie.linking)||void 0===oe?void 0:oe.title)&&le.push("title"),(null===(ae=null===(ue=W.inlineEditorOptions)||void 0===ue?void 0:ue.linking)||void 0===ae?void 0:ae.relNofollow)&&le.push("relNofollow"),(null===(de=null===(se=W.inlineEditorOptions)||void 0===se?void 0:se.linking)||void 0===de?void 0:de.targetBlank)&&le.push("targetBlank"),le}(),[4,Se.editLink(V,G,we)];case 1:return(ie=he.sent()).change?null===ie.value?(W.executeCommand("linkTitle",!1,!1),W.executeCommand("linkRelNofollow",!1,!1),W.executeCommand("linkTargetBlank",!1,!1),W.executeCommand("unlink",void 0,!0)):(W.executeCommand("linkTitle",(null===(oe=ie.value.options)||void 0===oe?void 0:oe.title)||!1,!1),W.executeCommand("linkTargetBlank",null!==(ae=null===(ue=ie.value.options)||void 0===ue?void 0:ue.targetBlank)&&void 0!==ae&&ae,!1),W.executeCommand("linkRelNofollow",null!==(de=null===(se=ie.value.options)||void 0===se?void 0:se.relNofollow)&&void 0!==de&&de,!1),(null===(le=ie.value.options)||void 0===le?void 0:le.anchor)?W.executeCommand("link",ie.value.href+"#"+(null===(pe=ie.value.options)||void 0===pe?void 0:pe.anchor),!0):W.executeCommand("link",ie.value.href,!0)):(W.executeCommand("undo",void 0,!0),W.executeCommand("redo",void 0,!0)),[2]}}))}))}),[W.executeCommand,W.formattingUnderCursor.link,Se,we]);return ue.createElement(ae.IconButton,{title:ge("Sitegeist.Archaeopteryx:Main:linkButton.title"),isActive:Boolean(W.formattingUnderCursor.link),icon:Boolean(W.formattingUnderCursor.link)?"unlink":"link",onClick:Ce})}},function(W,V,G){"use strict";G.r(V),G.d(V,"audit",(function(){return audit})),G.d(V,"auditTime",(function(){return auditTime})),G.d(V,"buffer",(function(){return buffer_buffer})),G.d(V,"bufferCount",(function(){return bufferCount})),G.d(V,"bufferTime",(function(){return bufferTime})),G.d(V,"bufferToggle",(function(){return bufferToggle})),G.d(V,"bufferWhen",(function(){return bufferWhen})),G.d(V,"catchError",(function(){return catchError})),G.d(V,"combineAll",(function(){return combineAll})),G.d(V,"combineLatest",(function(){return combineLatest_combineLatest})),G.d(V,"concat",(function(){return concat_concat})),G.d(V,"concatAll",(function(){return nt.a})),G.d(V,"concatMap",(function(){return concatMap})),G.d(V,"concatMapTo",(function(){return concatMapTo})),G.d(V,"count",(function(){return count_count})),G.d(V,"debounce",(function(){return debounce})),G.d(V,"debounceTime",(function(){return debounceTime})),G.d(V,"defaultIfEmpty",(function(){return defaultIfEmpty})),G.d(V,"delay",(function(){return delay_delay})),G.d(V,"delayWhen",(function(){return delayWhen})),G.d(V,"dematerialize",(function(){return dematerialize})),G.d(V,"distinct",(function(){return distinct})),G.d(V,"distinctUntilChanged",(function(){return distinctUntilChanged})),G.d(V,"distinctUntilKeyChanged",(function(){return distinctUntilKeyChanged})),G.d(V,"elementAt",(function(){return elementAt})),G.d(V,"endWith",(function(){return endWith})),G.d(V,"every",(function(){return every})),G.d(V,"exhaust",(function(){return exhaust})),G.d(V,"exhaustMap",(function(){return exhaustMap})),G.d(V,"expand",(function(){return expand})),G.d(V,"filter",(function(){return Nt.a})),G.d(V,"finalize",(function(){return finalize})),G.d(V,"find",(function(){return find})),G.d(V,"findIndex",(function(){return findIndex})),G.d(V,"first",(function(){return first})),G.d(V,"groupBy",(function(){return Zt.b})),G.d(V,"ignoreElements",(function(){return ignoreElements})),G.d(V,"isEmpty",(function(){return isEmpty})),G.d(V,"last",(function(){return last})),G.d(V,"map",(function(){return Wt.a})),G.d(V,"mapTo",(function(){return mapTo})),G.d(V,"materialize",(function(){return materialize})),G.d(V,"max",(function(){return max_max})),G.d(V,"merge",(function(){return merge_merge})),G.d(V,"mergeAll",(function(){return fr.a})),G.d(V,"mergeMap",(function(){return it.b})),G.d(V,"flatMap",(function(){return it.a})),G.d(V,"mergeMapTo",(function(){return mergeMapTo})),G.d(V,"mergeScan",(function(){return mergeScan})),G.d(V,"min",(function(){return min_min})),G.d(V,"multicast",(function(){return multicast})),G.d(V,"observeOn",(function(){return vr.b})),G.d(V,"onErrorResumeNext",(function(){return onErrorResumeNext})),G.d(V,"pairwise",(function(){return pairwise})),G.d(V,"partition",(function(){return partition})),G.d(V,"pluck",(function(){return pluck})),G.d(V,"publish",(function(){return publish})),G.d(V,"publishBehavior",(function(){return publishBehavior})),G.d(V,"publishLast",(function(){return publishLast})),G.d(V,"publishReplay",(function(){return publishReplay})),G.d(V,"race",(function(){return race_race})),G.d(V,"reduce",(function(){return reduce})),G.d(V,"repeat",(function(){return repeat})),G.d(V,"repeatWhen",(function(){return repeatWhen})),G.d(V,"retry",(function(){return retry})),G.d(V,"retryWhen",(function(){return retryWhen})),G.d(V,"refCount",(function(){return Fr.a})),G.d(V,"sample",(function(){return sample})),G.d(V,"sampleTime",(function(){return sampleTime})),G.d(V,"scan",(function(){return scan})),G.d(V,"sequenceEqual",(function(){return sequenceEqual})),G.d(V,"share",(function(){return share})),G.d(V,"shareReplay",(function(){return shareReplay})),G.d(V,"single",(function(){return single})),G.d(V,"skip",(function(){return skip})),G.d(V,"skipLast",(function(){return skipLast})),G.d(V,"skipUntil",(function(){return skipUntil})),G.d(V,"skipWhile",(function(){return skipWhile})),G.d(V,"startWith",(function(){return startWith})),G.d(V,"subscribeOn",(function(){return subscribeOn})),G.d(V,"switchAll",(function(){return switchAll})),G.d(V,"switchMap",(function(){return switchMap})),G.d(V,"switchMapTo",(function(){return switchMapTo})),G.d(V,"take",(function(){return take})),G.d(V,"takeLast",(function(){return takeLast})),G.d(V,"takeUntil",(function(){return takeUntil})),G.d(V,"takeWhile",(function(){return takeWhile})),G.d(V,"tap",(function(){return tap})),G.d(V,"throttle",(function(){return throttle})),G.d(V,"throttleTime",(function(){return throttleTime})),G.d(V,"throwIfEmpty",(function(){return throwIfEmpty})),G.d(V,"timeInterval",(function(){return timeInterval})),G.d(V,"timeout",(function(){return timeout})),G.d(V,"timeoutWith",(function(){return timeoutWith})),G.d(V,"timestamp",(function(){return timestamp})),G.d(V,"toArray",(function(){return toArray})),G.d(V,"window",(function(){return window_window})),G.d(V,"windowCount",(function(){return windowCount})),G.d(V,"windowTime",(function(){return windowTime_windowTime})),G.d(V,"windowToggle",(function(){return windowToggle})),G.d(V,"windowWhen",(function(){return windowWhen})),G.d(V,"withLatestFrom",(function(){return withLatestFrom})),G.d(V,"zip",(function(){return zip_zip})),G.d(V,"zipAll",(function(){return zipAll}));var ie=G(1),oe=G(3);function audit(W){return function auditOperatorFunction(V){return V.lift(new ue(W))}}var ue=function(){function AuditOperator(W){this.durationSelector=W}return AuditOperator.prototype.call=function(W,V){return V.subscribe(new ae(W,this.durationSelector))},AuditOperator}(),ae=function(W){function AuditSubscriber(V,G){var ie=W.call(this,V)||this;return ie.durationSelector=G,ie.hasValue=!1,ie}return ie.__extends(AuditSubscriber,W),AuditSubscriber.prototype._next=function(W){if(this.value=W,this.hasValue=!0,!this.throttled){var V=void 0;try{V=(0,this.durationSelector)(W)}catch(W){return this.destination.error(W)}var G=Object(oe.c)(V,new oe.a(this));!G||G.closed?this.clearThrottle():this.add(this.throttled=G)}},AuditSubscriber.prototype.clearThrottle=function(){var W=this.value,V=this.hasValue,G=this.throttled;G&&(this.remove(G),this.throttled=void 0,G.unsubscribe()),V&&(this.value=void 0,this.hasValue=!1,this.destination.next(W))},AuditSubscriber.prototype.notifyNext=function(){this.clearThrottle()},AuditSubscriber.prototype.notifyComplete=function(){this.clearThrottle()},AuditSubscriber}(oe.b),se=G(8),de=G(87);function auditTime(W,V){return void 0===V&&(V=se.a),audit((function(){return Object(de.a)(W,V)}))}function buffer_buffer(W){return function bufferOperatorFunction(V){return V.lift(new le(W))}}var le=function(){function BufferOperator(W){this.closingNotifier=W}return BufferOperator.prototype.call=function(W,V){return V.subscribe(new pe(W,this.closingNotifier))},BufferOperator}(),pe=function(W){function BufferSubscriber(V,G){var ie=W.call(this,V)||this;return ie.buffer=[],ie.add(Object(oe.c)(G,new oe.a(ie))),ie}return ie.__extends(BufferSubscriber,W),BufferSubscriber.prototype._next=function(W){this.buffer.push(W)},BufferSubscriber.prototype.notifyNext=function(){var W=this.buffer;this.buffer=[],this.destination.next(W)},BufferSubscriber}(oe.b),he=G(2);function bufferCount(W,V){return void 0===V&&(V=null),function bufferCountOperatorFunction(G){return G.lift(new ve(W,V))}}var ve=function(){function BufferCountOperator(W,V){this.bufferSize=W,this.startBufferEvery=V,this.subscriberClass=V&&W!==V?Se:ge}return BufferCountOperator.prototype.call=function(W,V){return V.subscribe(new this.subscriberClass(W,this.bufferSize,this.startBufferEvery))},BufferCountOperator}(),ge=function(W){function BufferCountSubscriber(V,G){var ie=W.call(this,V)||this;return ie.bufferSize=G,ie.buffer=[],ie}return ie.__extends(BufferCountSubscriber,W),BufferCountSubscriber.prototype._next=function(W){var V=this.buffer;V.push(W),V.length==this.bufferSize&&(this.destination.next(V),this.buffer=[])},BufferCountSubscriber.prototype._complete=function(){var V=this.buffer;V.length>0&&this.destination.next(V),W.prototype._complete.call(this)},BufferCountSubscriber}(he.a),Se=function(W){function BufferSkipCountSubscriber(V,G,ie){var oe=W.call(this,V)||this;return oe.bufferSize=G,oe.startBufferEvery=ie,oe.buffers=[],oe.count=0,oe}return ie.__extends(BufferSkipCountSubscriber,W),BufferSkipCountSubscriber.prototype._next=function(W){var V=this.bufferSize,G=this.startBufferEvery,ie=this.buffers,oe=this.count;this.count++,oe%G==0&&ie.push([]);for(var ue=ie.length;ue--;){var ae=ie[ue];ae.push(W),ae.length===V&&(ie.splice(ue,1),this.destination.next(ae))}},BufferSkipCountSubscriber.prototype._complete=function(){for(var V=this.buffers,G=this.destination;V.length>0;){var ie=V.shift();ie.length>0&&G.next(ie)}W.prototype._complete.call(this)},BufferSkipCountSubscriber}(he.a),we=G(11);function bufferTime(W){var V=arguments.length,G=se.a;Object(we.a)(arguments[arguments.length-1])&&(G=arguments[arguments.length-1],V--);var ie=null;V>=2&&(ie=arguments[1]);var oe=Number.POSITIVE_INFINITY;return V>=3&&(oe=arguments[2]),function bufferTimeOperatorFunction(V){return V.lift(new Ce(W,ie,oe,G))}}var Ce=function(){function BufferTimeOperator(W,V,G,ie){this.bufferTimeSpan=W,this.bufferCreationInterval=V,this.maxBufferSize=G,this.scheduler=ie}return BufferTimeOperator.prototype.call=function(W,V){return V.subscribe(new Ie(W,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},BufferTimeOperator}(),Pe=function(){return function Context(){this.buffer=[]}}(),Ie=function(W){function BufferTimeSubscriber(V,G,ie,oe,ue){var ae=W.call(this,V)||this;ae.bufferTimeSpan=G,ae.bufferCreationInterval=ie,ae.maxBufferSize=oe,ae.scheduler=ue,ae.contexts=[];var se=ae.openContext();if(ae.timespanOnly=null==ie||ie<0,ae.timespanOnly){var de={subscriber:ae,context:se,bufferTimeSpan:G};ae.add(se.closeAction=ue.schedule(dispatchBufferTimeSpanOnly,G,de))}else{var le={subscriber:ae,context:se},pe={bufferTimeSpan:G,bufferCreationInterval:ie,subscriber:ae,scheduler:ue};ae.add(se.closeAction=ue.schedule(dispatchBufferClose,G,le)),ae.add(ue.schedule(dispatchBufferCreation,ie,pe))}return ae}return ie.__extends(BufferTimeSubscriber,W),BufferTimeSubscriber.prototype._next=function(W){for(var V,G=this.contexts,ie=G.length,oe=0;oe0;){var ie=V.shift();G.next(ie.buffer)}W.prototype._complete.call(this)},BufferTimeSubscriber.prototype._unsubscribe=function(){this.contexts=null},BufferTimeSubscriber.prototype.onBufferFull=function(W){this.closeContext(W);var V=W.closeAction;if(V.unsubscribe(),this.remove(V),!this.closed&&this.timespanOnly){W=this.openContext();var G=this.bufferTimeSpan,ie={subscriber:this,context:W,bufferTimeSpan:G};this.add(W.closeAction=this.scheduler.schedule(dispatchBufferTimeSpanOnly,G,ie))}},BufferTimeSubscriber.prototype.openContext=function(){var W=new Pe;return this.contexts.push(W),W},BufferTimeSubscriber.prototype.closeContext=function(W){this.destination.next(W.buffer);var V=this.contexts;(V?V.indexOf(W):-1)>=0&&V.splice(V.indexOf(W),1)},BufferTimeSubscriber}(he.a);function dispatchBufferTimeSpanOnly(W){var V=W.subscriber,G=W.context;G&&V.closeContext(G),V.closed||(W.context=V.openContext(),W.context.closeAction=this.schedule(W,W.bufferTimeSpan))}function dispatchBufferCreation(W){var V=W.bufferCreationInterval,G=W.bufferTimeSpan,ie=W.subscriber,oe=W.scheduler,ue=ie.openContext();ie.closed||(ie.add(ue.closeAction=oe.schedule(dispatchBufferClose,G,{subscriber:ie,context:ue})),this.schedule(W,V))}function dispatchBufferClose(W){var V=W.subscriber,G=W.context;V.closeContext(G)}var Fe=G(6),Re=G(18),Le=G(21);function bufferToggle(W,V){return function bufferToggleOperatorFunction(G){return G.lift(new De(W,V))}}var De=function(){function BufferToggleOperator(W,V){this.openings=W,this.closingSelector=V}return BufferToggleOperator.prototype.call=function(W,V){return V.subscribe(new Ue(W,this.openings,this.closingSelector))},BufferToggleOperator}(),Ue=function(W){function BufferToggleSubscriber(V,G,ie){var oe=W.call(this,V)||this;return oe.closingSelector=ie,oe.contexts=[],oe.add(Object(Re.a)(oe,G)),oe}return ie.__extends(BufferToggleSubscriber,W),BufferToggleSubscriber.prototype._next=function(W){for(var V=this.contexts,G=V.length,ie=0;ie0;){var ie=G.shift();ie.subscription.unsubscribe(),ie.buffer=null,ie.subscription=null}this.contexts=null,W.prototype._error.call(this,V)},BufferToggleSubscriber.prototype._complete=function(){for(var V=this.contexts;V.length>0;){var G=V.shift();this.destination.next(G.buffer),G.subscription.unsubscribe(),G.buffer=null,G.subscription=null}this.contexts=null,W.prototype._complete.call(this)},BufferToggleSubscriber.prototype.notifyNext=function(W,V){W?this.closeBuffer(W):this.openBuffer(V)},BufferToggleSubscriber.prototype.notifyComplete=function(W){this.closeBuffer(W.context)},BufferToggleSubscriber.prototype.openBuffer=function(W){try{var V=this.closingSelector.call(this,W);V&&this.trySubscribe(V)}catch(W){this._error(W)}},BufferToggleSubscriber.prototype.closeBuffer=function(W){var V=this.contexts;if(V&&W){var G=W.buffer,ie=W.subscription;this.destination.next(G),V.splice(V.indexOf(W),1),this.remove(ie),ie.unsubscribe()}},BufferToggleSubscriber.prototype.trySubscribe=function(W){var V=this.contexts,G=new Fe.a,ie={buffer:[],subscription:G};V.push(ie);var oe=Object(Re.a)(this,W,ie);!oe||oe.closed?this.closeBuffer(ie):(oe.context=ie,this.add(oe),G.add(oe))},BufferToggleSubscriber}(Le.a);function bufferWhen(W){return function(V){return V.lift(new ze(W))}}var ze=function(){function BufferWhenOperator(W){this.closingSelector=W}return BufferWhenOperator.prototype.call=function(W,V){return V.subscribe(new He(W,this.closingSelector))},BufferWhenOperator}(),He=function(W){function BufferWhenSubscriber(V,G){var ie=W.call(this,V)||this;return ie.closingSelector=G,ie.subscribing=!1,ie.openBuffer(),ie}return ie.__extends(BufferWhenSubscriber,W),BufferWhenSubscriber.prototype._next=function(W){this.buffer.push(W)},BufferWhenSubscriber.prototype._complete=function(){var V=this.buffer;V&&this.destination.next(V),W.prototype._complete.call(this)},BufferWhenSubscriber.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},BufferWhenSubscriber.prototype.notifyNext=function(){this.openBuffer()},BufferWhenSubscriber.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},BufferWhenSubscriber.prototype.openBuffer=function(){var W=this.closingSubscription;W&&(this.remove(W),W.unsubscribe());var V,G=this.buffer;this.buffer&&this.destination.next(G),this.buffer=[];try{V=(0,this.closingSelector)()}catch(W){return this.error(W)}W=new Fe.a,this.closingSubscription=W,this.add(W),this.subscribing=!0,W.add(Object(oe.c)(V,new oe.a(this))),this.subscribing=!1},BufferWhenSubscriber}(oe.b);function catchError(W){return function catchErrorOperatorFunction(V){var G=new Ke(W),ie=V.lift(G);return G.caught=ie}}var Ke=function(){function CatchOperator(W){this.selector=W}return CatchOperator.prototype.call=function(W,V){return V.subscribe(new Ze(W,this.selector,this.caught))},CatchOperator}(),Ze=function(W){function CatchSubscriber(V,G,ie){var oe=W.call(this,V)||this;return oe.selector=G,oe.caught=ie,oe}return ie.__extends(CatchSubscriber,W),CatchSubscriber.prototype.error=function(V){if(!this.isStopped){var G=void 0;try{G=this.selector(V,this.caught)}catch(V){return void W.prototype.error.call(this,V)}this._unsubscribeAndRecycle();var ie=new oe.a(this);this.add(ie);var ue=Object(oe.c)(G,ie);ue!==ie&&this.add(ue)}},CatchSubscriber}(oe.b),Qe=G(59);function combineAll(W){return function(V){return V.lift(new Qe.a(W))}}var et=G(9),tt=G(14);function combineLatest_combineLatest(){for(var W=[],V=0;V0&&G[0].time-ie.now()<=0;)G.shift().notification.observe(oe);if(G.length>0){var ue=Math.max(0,G[0].time-ie.now());this.schedule(W,ue)}else this.unsubscribe(),V.active=!1},DelaySubscriber.prototype._schedule=function(W){this.active=!0,this.destination.add(W.schedule(DelaySubscriber.dispatch,this.delay,{source:this,destination:this.destination,scheduler:W}))},DelaySubscriber.prototype.scheduleNotification=function(W){if(!0!==this.errored){var V=this.scheduler,G=new yt(V.now()+this.delay,W);this.queue.push(G),!1===this.active&&this._schedule(V)}},DelaySubscriber.prototype._next=function(W){this.scheduleNotification(pt.a.createNext(W))},DelaySubscriber.prototype._error=function(W){this.errored=!0,this.queue=[],this.destination.error(W),this.unsubscribe()},DelaySubscriber.prototype._complete=function(){this.scheduleNotification(pt.a.createComplete()),this.unsubscribe()},DelaySubscriber}(he.a),yt=function(){return function DelayMessage(W,V){this.time=W,this.notification=V}}(),vt=G(4);function delayWhen(W,V){return V?function(G){return new St(G,V).lift(new mt(W))}:function(V){return V.lift(new mt(W))}}var mt=function(){function DelayWhenOperator(W){this.delayDurationSelector=W}return DelayWhenOperator.prototype.call=function(W,V){return V.subscribe(new gt(W,this.delayDurationSelector))},DelayWhenOperator}(),gt=function(W){function DelayWhenSubscriber(V,G){var ie=W.call(this,V)||this;return ie.delayDurationSelector=G,ie.completed=!1,ie.delayNotifierSubscriptions=[],ie.index=0,ie}return ie.__extends(DelayWhenSubscriber,W),DelayWhenSubscriber.prototype.notifyNext=function(W,V,G,ie,oe){this.destination.next(W),this.removeSubscription(oe),this.tryComplete()},DelayWhenSubscriber.prototype.notifyError=function(W,V){this._error(W)},DelayWhenSubscriber.prototype.notifyComplete=function(W){var V=this.removeSubscription(W);V&&this.destination.next(V),this.tryComplete()},DelayWhenSubscriber.prototype._next=function(W){var V=this.index++;try{var G=this.delayDurationSelector(W,V);G&&this.tryDelay(G,W)}catch(W){this.destination.error(W)}},DelayWhenSubscriber.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},DelayWhenSubscriber.prototype.removeSubscription=function(W){W.unsubscribe();var V=this.delayNotifierSubscriptions.indexOf(W);return-1!==V&&this.delayNotifierSubscriptions.splice(V,1),W.outerValue},DelayWhenSubscriber.prototype.tryDelay=function(W,V){var G=Object(Re.a)(this,W,V);G&&!G.closed&&(this.destination.add(G),this.delayNotifierSubscriptions.push(G))},DelayWhenSubscriber.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},DelayWhenSubscriber}(Le.a),St=function(W){function SubscriptionDelayObservable(V,G){var ie=W.call(this)||this;return ie.source=V,ie.subscriptionDelay=G,ie}return ie.__extends(SubscriptionDelayObservable,W),SubscriptionDelayObservable.prototype._subscribe=function(W){this.subscriptionDelay.subscribe(new wt(W,this.source))},SubscriptionDelayObservable}(vt.a),wt=function(W){function SubscriptionDelaySubscriber(V,G){var ie=W.call(this)||this;return ie.parent=V,ie.source=G,ie.sourceSubscribed=!1,ie}return ie.__extends(SubscriptionDelaySubscriber,W),SubscriptionDelaySubscriber.prototype._next=function(W){this.subscribeToSource()},SubscriptionDelaySubscriber.prototype._error=function(W){this.unsubscribe(),this.parent.error(W)},SubscriptionDelaySubscriber.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},SubscriptionDelaySubscriber.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},SubscriptionDelaySubscriber}(he.a);function dematerialize(){return function dematerializeOperatorFunction(W){return W.lift(new _t)}}var _t=function(){function DeMaterializeOperator(){}return DeMaterializeOperator.prototype.call=function(W,V){return V.subscribe(new $t(W))},DeMaterializeOperator}(),$t=function(W){function DeMaterializeSubscriber(V){return W.call(this,V)||this}return ie.__extends(DeMaterializeSubscriber,W),DeMaterializeSubscriber.prototype._next=function(W){W.observe(this.destination)},DeMaterializeSubscriber}(he.a);function distinct(W,V){return function(G){return G.lift(new Ot(W,V))}}var Ot=function(){function DistinctOperator(W,V){this.keySelector=W,this.flushes=V}return DistinctOperator.prototype.call=function(W,V){return V.subscribe(new xt(W,this.keySelector,this.flushes))},DistinctOperator}(),xt=function(W){function DistinctSubscriber(V,G,ie){var ue=W.call(this,V)||this;return ue.keySelector=G,ue.values=new Set,ie&&ue.add(Object(oe.c)(ie,new oe.a(ue))),ue}return ie.__extends(DistinctSubscriber,W),DistinctSubscriber.prototype.notifyNext=function(){this.values.clear()},DistinctSubscriber.prototype.notifyError=function(W){this._error(W)},DistinctSubscriber.prototype._next=function(W){this.keySelector?this._useKeySelector(W):this._finalizeNext(W,W)},DistinctSubscriber.prototype._useKeySelector=function(W){var V,G=this.destination;try{V=this.keySelector(W)}catch(W){return void G.error(W)}this._finalizeNext(V,W)},DistinctSubscriber.prototype._finalizeNext=function(W,V){var G=this.values;G.has(W)||(G.add(W),this.destination.next(V))},DistinctSubscriber}(oe.b);function distinctUntilChanged(W,V){return function(G){return G.lift(new Et(W,V))}}var Et=function(){function DistinctUntilChangedOperator(W,V){this.compare=W,this.keySelector=V}return DistinctUntilChangedOperator.prototype.call=function(W,V){return V.subscribe(new Ct(W,this.compare,this.keySelector))},DistinctUntilChangedOperator}(),Ct=function(W){function DistinctUntilChangedSubscriber(V,G,ie){var oe=W.call(this,V)||this;return oe.keySelector=ie,oe.hasKey=!1,"function"==typeof G&&(oe.compare=G),oe}return ie.__extends(DistinctUntilChangedSubscriber,W),DistinctUntilChangedSubscriber.prototype.compare=function(W,V){return W===V},DistinctUntilChangedSubscriber.prototype._next=function(W){var V;try{var G=this.keySelector;V=G?G(W):W}catch(W){return this.destination.error(W)}var ie=!1;if(this.hasKey)try{ie=(0,this.compare)(this.key,V)}catch(W){return this.destination.error(W)}else this.hasKey=!0;ie||(this.key=V,this.destination.next(W))},DistinctUntilChangedSubscriber}(he.a);function distinctUntilKeyChanged(W,V){return distinctUntilChanged((function(G,ie){return V?V(G[W],ie[W]):G[W]===ie[W]}))}var Pt=G(28),Nt=G(22),Tt=G(31);function throwIfEmpty(W){return void 0===W&&(W=defaultErrorFactory),function(V){return V.lift(new jt(W))}}var jt=function(){function ThrowIfEmptyOperator(W){this.errorFactory=W}return ThrowIfEmptyOperator.prototype.call=function(W,V){return V.subscribe(new kt(W,this.errorFactory))},ThrowIfEmptyOperator}(),kt=function(W){function ThrowIfEmptySubscriber(V,G){var ie=W.call(this,V)||this;return ie.errorFactory=G,ie.hasValue=!1,ie}return ie.__extends(ThrowIfEmptySubscriber,W),ThrowIfEmptySubscriber.prototype._next=function(W){this.hasValue=!0,this.destination.next(W)},ThrowIfEmptySubscriber.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var W=void 0;try{W=this.errorFactory()}catch(V){W=V}this.destination.error(W)},ThrowIfEmptySubscriber}(he.a);function defaultErrorFactory(){return new Tt.a}var At=G(13);function take(W){return function(V){return 0===W?Object(At.b)():V.lift(new It(W))}}var It=function(){function TakeOperator(W){if(this.total=W,this.total<0)throw new Pt.a}return TakeOperator.prototype.call=function(W,V){return V.subscribe(new Mt(W,this.total))},TakeOperator}(),Mt=function(W){function TakeSubscriber(V,G){var ie=W.call(this,V)||this;return ie.total=G,ie.count=0,ie}return ie.__extends(TakeSubscriber,W),TakeSubscriber.prototype._next=function(W){var V=this.total,G=++this.count;G<=V&&(this.destination.next(W),G===V&&(this.destination.complete(),this.unsubscribe()))},TakeSubscriber}(he.a);function elementAt(W,V){if(W<0)throw new Pt.a;var G=arguments.length>=2;return function(ie){return ie.pipe(Object(Nt.a)((function(V,G){return G===W})),take(1),G?defaultIfEmpty(V):throwIfEmpty((function(){return new Pt.a})))}}var Ft=G(45);function endWith(){for(var W=[],V=0;V0&&this._next(W.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},ExpandSubscriber}(oe.b);function finalize(W){return function(V){return V.lift(new Yt(W))}}var Yt=function(){function FinallyOperator(W){this.callback=W}return FinallyOperator.prototype.call=function(W,V){return V.subscribe(new Gt(W,this.callback))},FinallyOperator}(),Gt=function(W){function FinallySubscriber(V,G){var ie=W.call(this,V)||this;return ie.add(new Fe.a(G)),ie}return ie.__extends(FinallySubscriber,W),FinallySubscriber}(he.a);function find(W,V){if("function"!=typeof W)throw new TypeError("predicate is not a function");return function(G){return G.lift(new Ht(W,G,!1,V))}}var Ht=function(){function FindValueOperator(W,V,G,ie){this.predicate=W,this.source=V,this.yieldIndex=G,this.thisArg=ie}return FindValueOperator.prototype.call=function(W,V){return V.subscribe(new Kt(W,this.predicate,this.source,this.yieldIndex,this.thisArg))},FindValueOperator}(),Kt=function(W){function FindValueSubscriber(V,G,ie,oe,ue){var ae=W.call(this,V)||this;return ae.predicate=G,ae.source=ie,ae.yieldIndex=oe,ae.thisArg=ue,ae.index=0,ae}return ie.__extends(FindValueSubscriber,W),FindValueSubscriber.prototype.notifyComplete=function(W){var V=this.destination;V.next(W),V.complete(),this.unsubscribe()},FindValueSubscriber.prototype._next=function(W){var V=this.predicate,G=this.thisArg,ie=this.index++;try{V.call(G||this,W,ie,this.source)&&this.notifyComplete(this.yieldIndex?ie:W)}catch(W){this.destination.error(W)}},FindValueSubscriber.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},FindValueSubscriber}(he.a);function findIndex(W,V){return function(G){return G.lift(new Ht(W,G,!0,V))}}var Xt=G(20);function first(W,V){var G=arguments.length>=2;return function(ie){return ie.pipe(W?Object(Nt.a)((function(V,G){return W(V,G,ie)})):Xt.a,take(1),G?defaultIfEmpty(V):throwIfEmpty((function(){return new Tt.a})))}}var Zt=G(77);function ignoreElements(){return function ignoreElementsOperatorFunction(W){return W.lift(new Jt)}}var Jt=function(){function IgnoreElementsOperator(){}return IgnoreElementsOperator.prototype.call=function(W,V){return V.subscribe(new Qt(W))},IgnoreElementsOperator}(),Qt=function(W){function IgnoreElementsSubscriber(){return null!==W&&W.apply(this,arguments)||this}return ie.__extends(IgnoreElementsSubscriber,W),IgnoreElementsSubscriber.prototype._next=function(W){},IgnoreElementsSubscriber}(he.a);function isEmpty(){return function(W){return W.lift(new er)}}var er=function(){function IsEmptyOperator(){}return IsEmptyOperator.prototype.call=function(W,V){return V.subscribe(new tr(W))},IsEmptyOperator}(),tr=function(W){function IsEmptySubscriber(V){return W.call(this,V)||this}return ie.__extends(IsEmptySubscriber,W),IsEmptySubscriber.prototype.notifyComplete=function(W){var V=this.destination;V.next(W),V.complete()},IsEmptySubscriber.prototype._next=function(W){this.notifyComplete(!1)},IsEmptySubscriber.prototype._complete=function(){this.notifyComplete(!0)},IsEmptySubscriber}(he.a);function takeLast(W){return function takeLastOperatorFunction(V){return 0===W?Object(At.b)():V.lift(new rr(W))}}var rr=function(){function TakeLastOperator(W){if(this.total=W,this.total<0)throw new Pt.a}return TakeLastOperator.prototype.call=function(W,V){return V.subscribe(new nr(W,this.total))},TakeLastOperator}(),nr=function(W){function TakeLastSubscriber(V,G){var ie=W.call(this,V)||this;return ie.total=G,ie.ring=new Array,ie.count=0,ie}return ie.__extends(TakeLastSubscriber,W),TakeLastSubscriber.prototype._next=function(W){var V=this.ring,G=this.total,ie=this.count++;V.length0)for(var G=this.count>=this.total?this.total:this.count,ie=this.ring,oe=0;oe=2;return function(ie){return ie.pipe(W?Object(Nt.a)((function(V,G){return W(V,G,ie)})):Xt.a,takeLast(1),G?defaultIfEmpty(V):throwIfEmpty((function(){return new Tt.a})))}}function mapTo(W){return function(V){return V.lift(new ir(W))}}var ir=function(){function MapToOperator(W){this.value=W}return MapToOperator.prototype.call=function(W,V){return V.subscribe(new or(W,this.value))},MapToOperator}(),or=function(W){function MapToSubscriber(V,G){var ie=W.call(this,V)||this;return ie.value=G,ie}return ie.__extends(MapToSubscriber,W),MapToSubscriber.prototype._next=function(W){this.destination.next(this.value)},MapToSubscriber}(he.a);function materialize(){return function materializeOperatorFunction(W){return W.lift(new ur)}}var ur=function(){function MaterializeOperator(){}return MaterializeOperator.prototype.call=function(W,V){return V.subscribe(new ar(W))},MaterializeOperator}(),ar=function(W){function MaterializeSubscriber(V){return W.call(this,V)||this}return ie.__extends(MaterializeSubscriber,W),MaterializeSubscriber.prototype._next=function(W){this.destination.next(pt.a.createNext(W))},MaterializeSubscriber.prototype._error=function(W){var V=this.destination;V.next(pt.a.createError(W)),V.complete()},MaterializeSubscriber.prototype._complete=function(){var W=this.destination;W.next(pt.a.createComplete()),W.complete()},MaterializeSubscriber}(he.a);function scan(W,V){var G=!1;return arguments.length>=2&&(G=!0),function scanOperatorFunction(ie){return ie.lift(new sr(W,V,G))}}var sr=function(){function ScanOperator(W,V,G){void 0===G&&(G=!1),this.accumulator=W,this.seed=V,this.hasSeed=G}return ScanOperator.prototype.call=function(W,V){return V.subscribe(new cr(W,this.accumulator,this.seed,this.hasSeed))},ScanOperator}(),cr=function(W){function ScanSubscriber(V,G,ie,oe){var ue=W.call(this,V)||this;return ue.accumulator=G,ue._seed=ie,ue.hasSeed=oe,ue.index=0,ue}return ie.__extends(ScanSubscriber,W),Object.defineProperty(ScanSubscriber.prototype,"seed",{get:function(){return this._seed},set:function(W){this.hasSeed=!0,this._seed=W},enumerable:!0,configurable:!0}),ScanSubscriber.prototype._next=function(W){if(this.hasSeed)return this._tryNext(W);this.seed=W,this.destination.next(W)},ScanSubscriber.prototype._tryNext=function(W){var V,G=this.index++;try{V=this.accumulator(this.seed,W,G)}catch(W){this.destination.error(W)}this.seed=V,this.destination.next(V)},ScanSubscriber}(he.a),dr=G(49);function reduce(W,V){return arguments.length>=2?function reduceOperatorFunctionWithSeed(G){return Object(dr.a)(scan(W,V),takeLast(1),defaultIfEmpty(V))(G)}:function reduceOperatorFunction(V){return Object(dr.a)(scan((function(V,G,ie){return W(V,G,ie+1)})),takeLast(1))(V)}}function max_max(W){return reduce("function"==typeof W?function(V,G){return W(V,G)>0?V:G}:function(W,V){return W>V?W:V})}var lr=G(85);function merge_merge(){for(var W=[],V=0;V0?this._next(W.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},MergeScanSubscriber}(oe.b);function min_min(W){return reduce("function"==typeof W?function(V,G){return W(V,G)<0?V:G}:function(W,V){return W-1&&(this.count=G-1),V.subscribe(this._unsubscribeAndRecycle())}},RepeatSubscriber}(he.a);function repeatWhen(W){return function(V){return V.lift(new Tr(W))}}var Tr=function(){function RepeatWhenOperator(W){this.notifier=W}return RepeatWhenOperator.prototype.call=function(W,V){return V.subscribe(new jr(W,this.notifier,V))},RepeatWhenOperator}(),jr=function(W){function RepeatWhenSubscriber(V,G,ie){var oe=W.call(this,V)||this;return oe.notifier=G,oe.source=ie,oe.sourceIsBeingSubscribedTo=!0,oe}return ie.__extends(RepeatWhenSubscriber,W),RepeatWhenSubscriber.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},RepeatWhenSubscriber.prototype.notifyComplete=function(){if(!1===this.sourceIsBeingSubscribedTo)return W.prototype.complete.call(this)},RepeatWhenSubscriber.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return W.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},RepeatWhenSubscriber.prototype._unsubscribe=function(){var W=this.notifications,V=this.retriesSubscription;W&&(W.unsubscribe(),this.notifications=void 0),V&&(V.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},RepeatWhenSubscriber.prototype._unsubscribeAndRecycle=function(){var V=this._unsubscribe;return this._unsubscribe=null,W.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=V,this},RepeatWhenSubscriber.prototype.subscribeToRetries=function(){var V;this.notifications=new $r.a;try{V=(0,this.notifier)(this.notifications)}catch(V){return W.prototype.complete.call(this)}this.retries=V,this.retriesSubscription=Object(oe.c)(V,new oe.a(this))},RepeatWhenSubscriber}(oe.b);function retry(W){return void 0===W&&(W=-1),function(V){return V.lift(new kr(W,V))}}var kr=function(){function RetryOperator(W,V){this.count=W,this.source=V}return RetryOperator.prototype.call=function(W,V){return V.subscribe(new Ar(W,this.count,this.source))},RetryOperator}(),Ar=function(W){function RetrySubscriber(V,G,ie){var oe=W.call(this,V)||this;return oe.count=G,oe.source=ie,oe}return ie.__extends(RetrySubscriber,W),RetrySubscriber.prototype.error=function(V){if(!this.isStopped){var G=this.source,ie=this.count;if(0===ie)return W.prototype.error.call(this,V);ie>-1&&(this.count=ie-1),G.subscribe(this._unsubscribeAndRecycle())}},RetrySubscriber}(he.a);function retryWhen(W){return function(V){return V.lift(new Ir(W,V))}}var Ir=function(){function RetryWhenOperator(W,V){this.notifier=W,this.source=V}return RetryWhenOperator.prototype.call=function(W,V){return V.subscribe(new Mr(W,this.notifier,this.source))},RetryWhenOperator}(),Mr=function(W){function RetryWhenSubscriber(V,G,ie){var oe=W.call(this,V)||this;return oe.notifier=G,oe.source=ie,oe}return ie.__extends(RetryWhenSubscriber,W),RetryWhenSubscriber.prototype.error=function(V){if(!this.isStopped){var G=this.errors,ie=this.retries,ue=this.retriesSubscription;if(ie)this.errors=void 0,this.retriesSubscription=void 0;else{G=new $r.a;try{ie=(0,this.notifier)(G)}catch(V){return W.prototype.error.call(this,V)}ue=Object(oe.c)(ie,new oe.a(this))}this._unsubscribeAndRecycle(),this.errors=G,this.retries=ie,this.retriesSubscription=ue,G.next(V)}},RetryWhenSubscriber.prototype._unsubscribe=function(){var W=this.errors,V=this.retriesSubscription;W&&(W.unsubscribe(),this.errors=void 0),V&&(V.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},RetryWhenSubscriber.prototype.notifyNext=function(){var W=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=W,this.source.subscribe(this)},RetryWhenSubscriber}(oe.b),Fr=G(56);function sample(W){return function(V){return V.lift(new Rr(W))}}var Rr=function(){function SampleOperator(W){this.notifier=W}return SampleOperator.prototype.call=function(W,V){var G=new Lr(W),ie=V.subscribe(G);return ie.add(Object(oe.c)(this.notifier,new oe.a(G))),ie},SampleOperator}(),Lr=function(W){function SampleSubscriber(){var V=null!==W&&W.apply(this,arguments)||this;return V.hasValue=!1,V}return ie.__extends(SampleSubscriber,W),SampleSubscriber.prototype._next=function(W){this.value=W,this.hasValue=!0},SampleSubscriber.prototype.notifyNext=function(){this.emitValue()},SampleSubscriber.prototype.notifyComplete=function(){this.emitValue()},SampleSubscriber.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},SampleSubscriber}(oe.b);function sampleTime(W,V){return void 0===V&&(V=se.a),function(G){return G.lift(new Br(W,V))}}var Br=function(){function SampleTimeOperator(W,V){this.period=W,this.scheduler=V}return SampleTimeOperator.prototype.call=function(W,V){return V.subscribe(new Dr(W,this.period,this.scheduler))},SampleTimeOperator}(),Dr=function(W){function SampleTimeSubscriber(V,G,ie){var oe=W.call(this,V)||this;return oe.period=G,oe.scheduler=ie,oe.hasValue=!1,oe.add(ie.schedule(dispatchNotification,G,{subscriber:oe,period:G})),oe}return ie.__extends(SampleTimeSubscriber,W),SampleTimeSubscriber.prototype._next=function(W){this.lastValue=W,this.hasValue=!0},SampleTimeSubscriber.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},SampleTimeSubscriber}(he.a);function dispatchNotification(W){var V=W.subscriber,G=W.period;V.notifyNext(),this.schedule(W,G)}function sequenceEqual(W,V){return function(G){return G.lift(new Wr(W,V))}}var Wr=function(){function SequenceEqualOperator(W,V){this.compareTo=W,this.comparator=V}return SequenceEqualOperator.prototype.call=function(W,V){return V.subscribe(new Vr(W,this.compareTo,this.comparator))},SequenceEqualOperator}(),Vr=function(W){function SequenceEqualSubscriber(V,G,ie){var oe=W.call(this,V)||this;return oe.compareTo=G,oe.comparator=ie,oe._a=[],oe._b=[],oe._oneComplete=!1,oe.destination.add(G.subscribe(new Ur(V,oe))),oe}return ie.__extends(SequenceEqualSubscriber,W),SequenceEqualSubscriber.prototype._next=function(W){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(W),this.checkValues())},SequenceEqualSubscriber.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},SequenceEqualSubscriber.prototype.checkValues=function(){for(var W=this._a,V=this._b,G=this.comparator;W.length>0&&V.length>0;){var ie=W.shift(),oe=V.shift(),ue=!1;try{ue=G?G(ie,oe):ie===oe}catch(W){this.destination.error(W)}ue||this.emit(!1)}},SequenceEqualSubscriber.prototype.emit=function(W){var V=this.destination;V.next(W),V.complete()},SequenceEqualSubscriber.prototype.nextB=function(W){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(W),this.checkValues())},SequenceEqualSubscriber.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},SequenceEqualSubscriber}(he.a),Ur=function(W){function SequenceEqualCompareToSubscriber(V,G){var ie=W.call(this,V)||this;return ie.parent=G,ie}return ie.__extends(SequenceEqualCompareToSubscriber,W),SequenceEqualCompareToSubscriber.prototype._next=function(W){this.parent.nextB(W)},SequenceEqualCompareToSubscriber.prototype._error=function(W){this.parent.error(W),this.unsubscribe()},SequenceEqualCompareToSubscriber.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},SequenceEqualCompareToSubscriber}(he.a);function shareSubjectFactory(){return new $r.a}function share(){return function(W){return Object(Fr.a)()(multicast(shareSubjectFactory)(W))}}function shareReplay(W,V,G){var ie;return ie=W&&"object"==typeof W?W:{bufferSize:W,windowTime:V,refCount:!1,scheduler:G},function(W){return W.lift(function shareReplayOperator(W){var V,G,ie=W.bufferSize,oe=void 0===ie?Number.POSITIVE_INFINITY:ie,ue=W.windowTime,ae=void 0===ue?Number.POSITIVE_INFINITY:ue,se=W.refCount,de=W.scheduler,le=0,pe=!1,he=!1;return function shareReplayOperation(W){var ie;le++,!V||pe?(pe=!1,V=new Er.a(oe,ae,de),ie=V.subscribe(this),G=W.subscribe({next:function(W){V.next(W)},error:function(W){pe=!0,V.error(W)},complete:function(){he=!0,G=void 0,V.complete()}}),he&&(G=void 0)):ie=V.subscribe(this),this.add((function(){le--,ie.unsubscribe(),ie=void 0,G&&!he&&se&&0===le&&(G.unsubscribe(),G=void 0,V=void 0)}))}}(ie))}}function single(W){return function(V){return V.lift(new qr(W,V))}}var qr=function(){function SingleOperator(W,V){this.predicate=W,this.source=V}return SingleOperator.prototype.call=function(W,V){return V.subscribe(new zr(W,this.predicate,this.source))},SingleOperator}(),zr=function(W){function SingleSubscriber(V,G,ie){var oe=W.call(this,V)||this;return oe.predicate=G,oe.source=ie,oe.seenValue=!1,oe.index=0,oe}return ie.__extends(SingleSubscriber,W),SingleSubscriber.prototype.applySingleValue=function(W){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=W)},SingleSubscriber.prototype._next=function(W){var V=this.index++;this.predicate?this.tryNext(W,V):this.applySingleValue(W)},SingleSubscriber.prototype.tryNext=function(W,V){try{this.predicate(W,V,this.source)&&this.applySingleValue(W)}catch(W){this.destination.error(W)}},SingleSubscriber.prototype._complete=function(){var W=this.destination;this.index>0?(W.next(this.seenValue?this.singleValue:void 0),W.complete()):W.error(new Tt.a)},SingleSubscriber}(he.a);function skip(W){return function(V){return V.lift(new Yr(W))}}var Yr=function(){function SkipOperator(W){this.total=W}return SkipOperator.prototype.call=function(W,V){return V.subscribe(new Gr(W,this.total))},SkipOperator}(),Gr=function(W){function SkipSubscriber(V,G){var ie=W.call(this,V)||this;return ie.total=G,ie.count=0,ie}return ie.__extends(SkipSubscriber,W),SkipSubscriber.prototype._next=function(W){++this.count>this.total&&this.destination.next(W)},SkipSubscriber}(he.a);function skipLast(W){return function(V){return V.lift(new Hr(W))}}var Hr=function(){function SkipLastOperator(W){if(this._skipCount=W,this._skipCount<0)throw new Pt.a}return SkipLastOperator.prototype.call=function(W,V){return 0===this._skipCount?V.subscribe(new he.a(W)):V.subscribe(new Kr(W,this._skipCount))},SkipLastOperator}(),Kr=function(W){function SkipLastSubscriber(V,G){var ie=W.call(this,V)||this;return ie._skipCount=G,ie._count=0,ie._ring=new Array(G),ie}return ie.__extends(SkipLastSubscriber,W),SkipLastSubscriber.prototype._next=function(W){var V=this._skipCount,G=this._count++;if(G0?this.startWindowEvery:this.windowSize,G=this.destination,ie=this.windowSize,oe=this.windows,ue=oe.length,ae=0;ae=0&&se%V==0&&!this.closed&&oe.shift().complete(),++this.count%V==0&&!this.closed){var de=new $r.a;oe.push(de),G.next(de)}},WindowCountSubscriber.prototype._error=function(W){var V=this.windows;if(V)for(;V.length>0&&!this.closed;)V.shift().error(W);this.destination.error(W)},WindowCountSubscriber.prototype._complete=function(){var W=this.windows;if(W)for(;W.length>0&&!this.closed;)W.shift().complete();this.destination.complete()},WindowCountSubscriber.prototype._unsubscribe=function(){this.count=0,this.windows=null},WindowCountSubscriber}(he.a);function windowTime_windowTime(W){var V=se.a,G=null,ie=Number.POSITIVE_INFINITY;return Object(we.a)(arguments[3])&&(V=arguments[3]),Object(we.a)(arguments[2])?V=arguments[2]:Object(tn.a)(arguments[2])&&(ie=Number(arguments[2])),Object(we.a)(arguments[1])?V=arguments[1]:Object(tn.a)(arguments[1])&&(G=Number(arguments[1])),function windowTimeOperatorFunction(oe){return oe.lift(new kn(W,G,ie,V))}}var kn=function(){function WindowTimeOperator(W,V,G,ie){this.windowTimeSpan=W,this.windowCreationInterval=V,this.maxWindowSize=G,this.scheduler=ie}return WindowTimeOperator.prototype.call=function(W,V){return V.subscribe(new In(W,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},WindowTimeOperator}(),An=function(W){function CountedSubject(){var V=null!==W&&W.apply(this,arguments)||this;return V._numberOfNextedValues=0,V}return ie.__extends(CountedSubject,W),CountedSubject.prototype.next=function(V){this._numberOfNextedValues++,W.prototype.next.call(this,V)},Object.defineProperty(CountedSubject.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),CountedSubject}($r.a),In=function(W){function WindowTimeSubscriber(V,G,ie,oe,ue){var ae=W.call(this,V)||this;ae.destination=V,ae.windowTimeSpan=G,ae.windowCreationInterval=ie,ae.maxWindowSize=oe,ae.scheduler=ue,ae.windows=[];var se=ae.openWindow();if(null!==ie&&ie>=0){var de={subscriber:ae,window:se,context:null},le={windowTimeSpan:G,windowCreationInterval:ie,subscriber:ae,scheduler:ue};ae.add(ue.schedule(dispatchWindowClose,G,de)),ae.add(ue.schedule(dispatchWindowCreation,ie,le))}else{var pe={subscriber:ae,window:se,windowTimeSpan:G};ae.add(ue.schedule(dispatchWindowTimeSpanOnly,G,pe))}return ae}return ie.__extends(WindowTimeSubscriber,W),WindowTimeSubscriber.prototype._next=function(W){for(var V=this.windows,G=V.length,ie=0;ie=this.maxWindowSize&&this.closeWindow(oe))}},WindowTimeSubscriber.prototype._error=function(W){for(var V=this.windows;V.length>0;)V.shift().error(W);this.destination.error(W)},WindowTimeSubscriber.prototype._complete=function(){for(var W=this.windows;W.length>0;){var V=W.shift();V.closed||V.complete()}this.destination.complete()},WindowTimeSubscriber.prototype.openWindow=function(){var W=new An;return this.windows.push(W),this.destination.next(W),W},WindowTimeSubscriber.prototype.closeWindow=function(W){W.complete();var V=this.windows;V.splice(V.indexOf(W),1)},WindowTimeSubscriber}(he.a);function dispatchWindowTimeSpanOnly(W){var V=W.subscriber,G=W.windowTimeSpan,ie=W.window;ie&&V.closeWindow(ie),W.window=V.openWindow(),this.schedule(W,G)}function dispatchWindowCreation(W){var V=W.windowTimeSpan,G=W.subscriber,ie=W.scheduler,oe=W.windowCreationInterval,ue=G.openWindow(),ae={action:this,subscription:null},se={subscriber:G,window:ue,context:ae};ae.subscription=ie.schedule(dispatchWindowClose,V,se),this.add(ae.subscription),this.schedule(W,oe)}function dispatchWindowClose(W){var V=W.subscriber,G=W.window,ie=W.context;ie&&ie.action&&ie.subscription&&ie.action.remove(ie.subscription),V.closeWindow(G)}function windowToggle(W,V){return function(G){return G.lift(new Mn(W,V))}}var Mn=function(){function WindowToggleOperator(W,V){this.openings=W,this.closingSelector=V}return WindowToggleOperator.prototype.call=function(W,V){return V.subscribe(new Fn(W,this.openings,this.closingSelector))},WindowToggleOperator}(),Fn=function(W){function WindowToggleSubscriber(V,G,ie){var oe=W.call(this,V)||this;return oe.openings=G,oe.closingSelector=ie,oe.contexts=[],oe.add(oe.openSubscription=Object(Re.a)(oe,G,G)),oe}return ie.__extends(WindowToggleSubscriber,W),WindowToggleSubscriber.prototype._next=function(W){var V=this.contexts;if(V)for(var G=V.length,ie=0;ie0){var oe=ie.indexOf(G);-1!==oe&&ie.splice(oe,1)}},WithLatestFromSubscriber.prototype.notifyComplete=function(){},WithLatestFromSubscriber.prototype._next=function(W){if(0===this.toRespond.length){var V=[W].concat(this.values);this.project?this._tryProject(V):this.destination.next(V)}},WithLatestFromSubscriber.prototype._tryProject=function(W){var V;try{V=this.project.apply(this,W)}catch(W){return void this.destination.error(W)}this.destination.next(V)},WithLatestFromSubscriber}(Le.a),Wn=G(62);function zip_zip(){for(var W=[],V=0;Vae)return 1;if(ae>ue)return-1;if(!isNaN(ue)&&isNaN(ae))return 1;if(isNaN(ue)&&!isNaN(ae))return-1}return W[1]&&V[1]?W[1]>V[1]?1:W[1]=2&&Fe.test(W)}var Re=new RegExp("(?:"+createExtensionPattern()+")$","i");var Le={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function parseDigit(W){return Le[W]}function parseDigits(W){var V="",G=W.split(""),ie=Array.isArray(G),oe=0;for(G=ie?G:G[Symbol.iterator]();;){var ue;if(ie){if(oe>=G.length)break;ue=G[oe++]}else{if((oe=G.next()).done)break;ue=oe.value}var ae=parseDigit(ue);ae&&(V+=ae)}return V}function parseIncompletePhoneNumber(W){var V="",G=W.split(""),ie=Array.isArray(G),oe=0;for(G=ie?G:G[Symbol.iterator]();;){var ue;if(ie){if(oe>=G.length)break;ue=G[oe++]}else{if((oe=G.next()).done)break;ue=oe.value}V+=parsePhoneNumberCharacter(ue,V)||""}return V}function parsePhoneNumberCharacter(W,V){if("+"===W){if(V)return;return"+"}return parseDigit(W)}function checkNumberLength(W,V){return function checkNumberLengthForType(W,V,G){var ie=G.type(V),oe=ie&&ie.possibleLengths()||G.possibleLengths();if(!oe)return"IS_POSSIBLE";if("FIXED_LINE_OR_MOBILE"===V){if(!G.type("FIXED_LINE"))return checkNumberLengthForType(W,"MOBILE",G);var ue=G.type("MOBILE");ue&&(oe=function mergeArrays(W,V){var G=W.slice(),ie=V,oe=Array.isArray(ie),ue=0;for(ie=oe?ie:ie[Symbol.iterator]();;){var ae;if(oe){if(ue>=ie.length)break;ae=ie[ue++]}else{if((ue=ie.next()).done)break;ae=ue.value}var se=ae;W.indexOf(se)<0&&G.push(se)}return G.sort((function(W,V){return W-V}))}(oe,ue.possibleLengths()))}else if(V&&!ie)return"INVALID_LENGTH";var ae=W.length,se=oe[0];if(se===ae)return"IS_POSSIBLE";if(se>ae)return"TOO_SHORT";if(oe[oe.length-1]=0?"IS_POSSIBLE":"INVALID_LENGTH"}(W,void 0,V)}function isPossibleNumber(W,V){switch(checkNumberLength(W,V)){case"IS_POSSIBLE":return!0;default:return!1}}function _slicedToArray(W,V){return function _arrayWithHoles(W){if(Array.isArray(W))return W}(W)||function _iterableToArrayLimit(W,V){var G=[],ie=!0,oe=!1,ue=void 0;try{for(var ae,se=W[Symbol.iterator]();!(ie=(ae=se.next()).done)&&(G.push(ae.value),!V||G.length!==V);ie=!0);}catch(W){oe=!0,ue=W}finally{try{ie||null==se.return||se.return()}finally{if(oe)throw ue}}return G}(W,V)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function parseRFC3966(W){var V,G,ie=(W=W.replace(/^tel:/,"tel=")).split(";"),oe=Array.isArray(ie),ue=0;for(ie=oe?ie:ie[Symbol.iterator]();;){var ae;if(oe){if(ue>=ie.length)break;ae=ie[ue++]}else{if((ue=ie.next()).done)break;ae=ue.value}var se=_slicedToArray(ae.split("="),2),de=se[0],le=se[1];switch(de){case"tel":V=le;break;case"ext":G=le;break;case"phone-context":"+"===le[0]&&(V=le+V)}}if(!isViablePhoneNumber(V))return{};var pe={number:V};return G&&(pe.ext=G),pe}function formatRFC3966(W){var V=W.number,G=W.ext;if(!V)return"";if("+"!==V[0])throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(V).concat(G?";ext="+G:"")}function matchesEntirely(W,V){return W=W||"",new RegExp("^(?:"+V+")$").test(W)}var De=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function getNumberType(W,V,G){if(V=V||{},W.country){(G=new de(G)).selectNumberingPlan(W.country,W.countryCallingCode);var ie=V.v2?W.nationalNumber:W.phone;if(matchesEntirely(ie,G.nationalNumberPattern())){if(isNumberTypeEqualTo(ie,"FIXED_LINE",G))return G.type("MOBILE")&&""===G.type("MOBILE").pattern()?"FIXED_LINE_OR_MOBILE":G.type("MOBILE")?isNumberTypeEqualTo(ie,"MOBILE",G)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE":"FIXED_LINE_OR_MOBILE";for(var oe=0,ue=De;oe=G.length)break;ue=G[oe++]}else{if((oe=G.next()).done)break;ue=oe.value}var ae=ue;if(ae.leadingDigitsPatterns().length>0){var se=ae.leadingDigitsPatterns()[ae.leadingDigitsPatterns().length-1];if(0!==V.search(se))continue}if(matchesEntirely(V,ae.pattern()))return ae}}(ie.formats(),W);return ue?formatNationalNumberUsingFormat(W,ue,{useInternationalFormat:"INTERNATIONAL"===G,withNationalPrefix:!ue.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!oe||!1!==oe.nationalPrefix,carrierCode:V,metadata:ie}):W}function addExtension(W,V,G,ie){return V?ie(W,V,G):W}function PhoneNumber_defineProperty(W,V,G){return V in W?Object.defineProperty(W,V,{value:G,enumerable:!0,configurable:!0,writable:!0}):W[V]=G,W}function PhoneNumber_defineProperties(W,V){for(var G=0;G0&&"0"===ae[1]))return W}}}function extractNationalNumberFromPossiblyIncompleteNumber(W,V){if(W&&V.numberingPlan.nationalPrefixForParsing()){var G=new RegExp("^(?:"+V.numberingPlan.nationalPrefixForParsing()+")"),ie=G.exec(W);if(ie){var oe,ue,ae,se=ie.length-1,de=se>0&&ie[se];if(V.nationalPrefixTransformRule()&&de)oe=W.replace(G,V.nationalPrefixTransformRule()),se>1&&(ue=ie[1]);else{var le=ie[0];oe=W.slice(le.length),de&&(ue=ie[1])}if(de){var pe=W.indexOf(ie[1]);W.slice(0,pe)===V.numberingPlan.nationalPrefix()&&(ae=V.numberingPlan.nationalPrefix())}else ae=ie[0];return{nationalNumber:oe,nationalPrefix:ae,carrierCode:ue}}}return{nationalNumber:W}}function extractNationalNumber(W,V){var G=extractNationalNumberFromPossiblyIncompleteNumber(W,V),ie=G.nationalNumber,oe=G.carrierCode;if(!function shouldExtractNationalPrefix(W,V,G){if(matchesEntirely(W,G.nationalNumberPattern())&&!matchesEntirely(V,G.nationalNumberPattern()))return!1;return!0}(W,ie,V))return{nationalNumber:W};if(W.length!==ie.length+(oe?oe.length:0)&&V.possibleLengths())switch(checkNumberLength(ie,V)){case"TOO_SHORT":case"INVALID_LENGTH":return{nationalNumber:W}}return{nationalNumber:ie,carrierCode:oe}}function extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(W,V,G,ie){var oe=V?getCountryCallingCode(V,ie):G;if(0===W.indexOf(oe)){(ie=new de(ie)).selectNumberingPlan(V,G);var ue=W.slice(oe.length),ae=extractNationalNumber(ue,ie).nationalNumber,se=extractNationalNumber(W,ie).nationalNumber;if(!matchesEntirely(se,ie.nationalNumberPattern())&&matchesEntirely(ae,ie.nationalNumberPattern())||"TOO_LONG"===checkNumberLength(se,ie))return{countryCallingCode:oe,number:ue}}return{number:W}}function extractCountryCallingCode_extractCountryCallingCode(W,V,G,ie){if(!W)return{};if("+"!==W[0]){var oe=stripIddPrefix(W,V,G,ie);if(!oe||oe===W){if(V||G){var ue=extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(W,V,G,ie),ae=ue.countryCallingCode,se=ue.number;if(ae)return{countryCallingCode:ae,number:se}}return{number:W}}W="+"+oe}if("0"===W[1])return{};ie=new de(ie);for(var le=2;le-1<=3&&le<=W.length;){var pe=W.slice(1,le);if(ie.hasCallingCode(pe))return ie.selectNumberingPlan(pe),{countryCallingCode:pe,number:W.slice(le)};le++}return{}}function getCountryByCallingCode(W,V,G){var ie=G.getCountryCodesForCallingCode(W);if(ie)return 1===ie.length?ie[0]:function selectCountryFromList(W,V,G){G=new de(G);var ie=W,oe=Array.isArray(ie),ue=0;for(ie=oe?ie:ie[Symbol.iterator]();;){var ae;if(oe){if(ue>=ie.length)break;ae=ie[ue++]}else{if((ue=ie.next()).done)break;ae=ue.value}var se=ae;if(G.country(se),G.leadingDigits()){if(V&&0===V.search(G.leadingDigits()))return se}else if(getNumberType({phone:V,country:se},void 0,G.metadata))return se}}(ie,V,G.metadata)}var et=new RegExp("[++0-90-9٠-٩۰-۹]"),tt=new RegExp("[^0-90-9٠-٩۰-۹#]+$");function parse(W,V,G){if(V=V||{},G=new de(G),V.defaultCountry&&!G.hasCountry(V.defaultCountry)){if(V.v2)throw new ae("INVALID_COUNTRY");throw new Error("Unknown country: ".concat(V.defaultCountry))}var ie=function parseInput(W,V,G){if(W&&0===W.indexOf("tel:"))return parseRFC3966(W);var ie=function extractFormattedPhoneNumber(W,V,G){if(!W)return;if(W.length>250){if(G)throw new ae("TOO_LONG");return}if(!1===V)return W;var ie=W.search(et);if(ie<0)return;return W.slice(ie).replace(tt,"")}(W,G,V);if(!ie)return{};if(!isViablePhoneNumber(ie))return function isViablePhoneNumberStart(W){return Pe.test(W)}(ie)?{error:"TOO_SHORT"}:{};var oe=function extractExtension(W){var V=W.search(Re);if(V<0)return{};for(var G=W.slice(0,V),ie=W.match(Re),oe=1;oe17){if(V.v2)throw new ae("TOO_LONG");return{}}if(V.v2){var Se=new Ke(ve,he,G.metadata);return pe&&(Se.country=pe),ge&&(Se.carrierCode=ge),ue&&(Se.ext=ue),Se}var we=!!(V.extended?G.hasSelectedNumberingPlan():pe)&&matchesEntirely(he,G.nationalNumberPattern());return V.extended?{country:pe,countryCallingCode:ve,carrierCode:ge,valid:we,possible:!!we||!(!0!==V.extended||!G.possibleLengths()||!isPossibleNumber(he,G)),phone:he,ext:ue}:we?function parse_result(W,V,G){var ie={country:W,phone:V};G&&(ie.ext=G);return ie}(pe,he,ue):{}}function parsePhoneNumber_defineProperty(W,V,G){return V in W?Object.defineProperty(W,V,{value:G,enumerable:!0,configurable:!0,writable:!0}):W[V]=G,W}function parsePhoneNumber_parsePhoneNumber(W,V,G){return parse(W,function parsePhoneNumber_objectSpread(W){for(var V=1;V2&&void 0!==arguments[2]?arguments[2]:null,ie=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;LRUCache_classCallCheck(this,Node),this.key=W,this.value=V,this.next=G,this.prev=ie},it=function(){function LRUCache(){var W=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;LRUCache_classCallCheck(this,LRUCache),this.size=0,this.limit=W,this.head=null,this.tail=null,this.cache={}}return function LRUCache_createClass(W,V,G){return V&&LRUCache_defineProperties(W.prototype,V),G&&LRUCache_defineProperties(W,G),W}(LRUCache,[{key:"put",value:function put(W,V){if(this.ensureLimit(),this.head){var G=new nt(W,V,this.head);this.head.prev=G,this.head=G}else this.head=this.tail=new nt(W,V);this.cache[W]=this.head,this.size++}},{key:"get",value:function get(W){if(this.cache[W]){var V=this.cache[W].value;return this.remove(W),this.put(W,V),V}console.log("Item not available in cache for key ".concat(W))}},{key:"ensureLimit",value:function ensureLimit(){this.size===this.limit&&this.remove(this.tail.key)}},{key:"remove",value:function remove(W){var V=this.cache[W];null!==V.prev?V.prev.next=V.next:this.head=V.next,null!==V.next?V.next.prev=V.prev:this.tail=V.prev,delete this.cache[W],this.size--}},{key:"clear",value:function clear(){this.head=null,this.tail=null,this.size=0,this.cache={}}}]),LRUCache}();function RegExpCache_defineProperties(W,V){for(var G=0;G=0?V.slice(0,G):V}var ut="   ᠎ - \u2028\u2029   ",at="[".concat(ut,"]"),st="[^".concat(ut,"]"),ct="[".concat("0-9٠-٩۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꩐-꩙꯰-꯹0-9","]"),dt="A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",lt="[".concat(dt,"]"),ft=new RegExp(lt),pt="[".concat("$¢-¥֏؋৲৳৻૱௹฿៛₠-₹꠸﷼﹩$¢£¥₩","]"),ht=new RegExp(pt),bt="[".concat("̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-ٰٟۖ-ۜ۟-۪ۤۧۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣤ-ࣾऀ-ंऺ़ु-ै्॑-ॗॢॣঁ়ু-ৄ্ৢৣਁਂ਼ੁੂੇੈੋ-੍ੑੰੱੵઁં઼ુ-ૅેૈ્ૢૣଁ଼ିୁ-ୄ୍ୖୢୣஂீ்ా-ీె-ైొ-్ౕౖౢౣ಼ಿೆೌ್ೢೣു-ൄ്ൢൣ්ි-ුූัิ-ฺ็-๎ັິ-ູົຼ່-ໍཱ༹༘༙༵༷-ཾྀ-྄྆྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္်ွှၘၙၞ-ၠၱ-ၴႂႅႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧᤨᤲ᤹-᤻ᨘᨗᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀᮁᮢ-ᮥᮨᮩ᯦᮫ᯨᯩᯭᯯ-ᯱᰬ-ᰳᰶ᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᷀-ᷦ᷼-᷿⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〭꙯ꙴ-꙽ꚟ꛰꛱ꠂ꠆ꠋꠥꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꨩ-ꨮꨱꨲꨵꨶꩃꩌꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫬꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-︦","]"),yt=new RegExp(bt),vt=new RegExp("[\0-€-ÿĀ-ſḀ-ỿƀ-ɏ̀-ͯ]");function isLatinLetter(W){return!(!ft.test(W)&&!yt.test(W))&&vt.test(W)}function isInvalidPunctuationSymbol(W){return"%"===W||ht.test(W)}var mt={POSSIBLE:function POSSIBLE(W,V,G){return!0},VALID:function VALID(W,V,G){return!(!isValidNumber(W,void 0,G)||!containsOnlyValidXChars(W,V.toString(),G))},STRICT_GROUPING:function STRICT_GROUPING(W,V,G,ie){var oe=V.toString();return!(!isValidNumber(W,void 0,G)||!containsOnlyValidXChars(W,oe,G)||containsMoreThanOneSlashInNationalNumber(W,oe)||!isNationalPrefixPresentIfRequired(W,G))&&checkNumberGroupingIsValid(W,V,G,allNumberGroupsRemainGrouped,ie)},EXACT_GROUPING:function EXACT_GROUPING(W,V,G,ie){var oe=V.toString();return!(!isValidNumber(W,void 0,G)||!containsOnlyValidXChars(W,oe,G)||containsMoreThanOneSlashInNationalNumber(W,oe)||!isNationalPrefixPresentIfRequired(W,G))&&checkNumberGroupingIsValid(W,V,G,allNumberGroupsAreExactlyPresent,ie)}};function containsOnlyValidXChars(W,V,G){for(var ie=0;ie0){if(ue.getNationalPrefixOptionalWhenFormatting())return!0;if(PhoneNumberUtil.formattingRuleHasFirstGroupOnly(ue.getNationalPrefixFormattingRule()))return!0;var ae=PhoneNumberUtil.normalizeDigitsOnly(W.getRawInput());return util.maybeStripNationalPrefixAndCarrierCode(ae,ie,null)}return!0}function containsMoreThanOneSlashInNationalNumber(W,V){var G=V.indexOf("/");if(G<0)return!1;var ie=V.indexOf("/",G+1);return!(ie<0)&&(!(W.getCountryCodeSource()===CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN||W.getCountryCodeSource()===CountryCodeSource.FROM_NUMBER_WITHOUT_PLUS_SIGN)||PhoneNumberUtil.normalizeDigitsOnly(V.substring(0,G))!==String(W.getCountryCode())||V.slice(ie+1).indexOf("/")>=0)}function checkNumberGroupingIsValid(W,V,G,ie,oe){var ue=normalizeDigits(V,!0),ae=getNationalNumberGroups(G,W,null);if(ie(G,W,ue,ae))return!0;var se=MetadataManager.getAlternateFormatsForCountry(W.getCountryCode()),de=util.getNationalSignificantNumber(W);if(se){var le=se.numberFormats(),pe=Array.isArray(le),he=0;for(le=pe?le:le[Symbol.iterator]();;){var ve;if(pe){if(he>=le.length)break;ve=le[he++]}else{if((he=le.next()).done)break;ve=he.value}var ge=ve;if(ge.leadingDigitsPatterns().length>0)if(!oe.getPatternForRegExp("^"+ge.leadingDigitsPatterns()[0]).test(de))continue;if(ie(G,W,ue,ae=getNationalNumberGroups(G,W,ge)))return!0}}return!1}function getNationalNumberGroups(W,V,G){if(G){var ie=util.getNationalSignificantNumber(V);return util.formatNsnUsingPattern(ie,G,"RFC3966",W).split("-")}var oe=formatNumber(V,"RFC3966",W),ue=oe.indexOf(";");ue<0&&(ue=oe.length);var ae=oe.indexOf("-")+1;return oe.slice(ae,ue).split("-")}function allNumberGroupsAreExactlyPresent(W,V,G,ie){var oe=G.split(NON_DIGITS_PATTERN),ue=V.hasExtension()?oe.length-2:oe.length-1;if(1==oe.length||oe[ue].contains(util.getNationalSignificantNumber(V)))return!0;for(var ae=ie.length-1;ae>0&&ue>=0;){if(oe[ue]!==ie[ae])return!1;ae--,ue--}return ue>=0&&function endsWith(W,V){return W.indexOf(V,W.length-V.length)===W.length-V.length}(oe[ue],ie[0])}function allNumberGroupsRemainGrouped(W,V,G,ie){var oe,ue,ae=0;if(V.getCountryCodeSource()!==CountryCodeSource.FROM_DEFAULT_COUNTRY){var se=String(V.getCountryCode());ae=G.indexOf(se)+se.length()}for(var de=0;de0&&void 0!==arguments[0]?arguments[0]:"",V=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},G=arguments.length>2?arguments[2]:void 0;if(PhoneNumberMatcher_classCallCheck(this,PhoneNumberMatcher),PhoneNumberMatcher_defineProperty(this,"state","NOT_READY"),PhoneNumberMatcher_defineProperty(this,"searchIndex",0),PhoneNumberMatcher_defineProperty(this,"regExpCache",new ot(32)),!(V=PhoneNumberMatcher_objectSpread({},V,{defaultCallingCode:V.defaultCallingCode,defaultCountry:V.defaultCountry&&isSupportedCountry(V.defaultCountry,G)?V.defaultCountry:void 0,leniency:V.leniency||V.extended?"POSSIBLE":"VALID",maxTries:V.maxTries||Lt})).leniency)throw new TypeError("`Leniency` not supplied");if(V.maxTries<0)throw new TypeError("`maxTries` not supplied");if(this.text=W,this.options=V,this.metadata=G,this.leniency=mt[V.leniency],!this.leniency)throw new TypeError("Unknown leniency: ".concat(V.leniency,"."));this.maxTries=V.maxTries,this.PATTERN=new RegExp(Ft,"ig")}return function PhoneNumberMatcher_createClass(W,V,G){return V&&PhoneNumberMatcher_defineProperties(W.prototype,V),G&&PhoneNumberMatcher_defineProperties(W,G),W}(PhoneNumberMatcher,[{key:"find",value:function find(){for(var W;this.maxTries>0&&null!==(W=this.PATTERN.exec(this.text));){var V=W[0],G=W.index;if(isValidPreCandidate(V=parsePreCandidate(V),G,this.text)){var ie=this.parseAndVerify(V,G,this.text)||this.extractInnerMatch(V,G,this.text);if(ie){if(this.options.v2){var oe=new Ke(ie.country||ie.countryCallingCode,ie.phone,this.metadata);return ie.ext&&(oe.ext=ie.ext),{startsAt:ie.startsAt,endsAt:ie.endsAt,number:oe}}return ie}}this.maxTries--}}},{key:"extractInnerMatch",value:function extractInnerMatch(W,V,G){for(var ie=0,oe=Tt;ie0&&null!==(ae=se.exec(W));){if(ue){var de=trimAfterFirstMatch(Rt,W.slice(0,ae.index)),le=this.parseAndVerify(de,V,G);if(le)return le;this.maxTries--,ue=!1}var pe=trimAfterFirstMatch(Rt,ae[1]),he=W.indexOf(pe,ae.index),ve=this.parseAndVerify(pe,V+he,G);if(ve)return ve;this.maxTries--}}},{key:"parseAndVerify",value:function parseAndVerify(W,V,G){if(function isValidCandidate(W,V,G,ie){if(Ct.test(W)&&!Pt.test(W)){if("POSSIBLE"!==ie){if(V>0&&!xt.test(W)){var oe=G[V-1];if(isInvalidPunctuationSymbol(oe)||isLatinLetter(oe))return!1}var ue=V+W.length;if(ue1;)1&V&&(G+=W),V>>=1,W+=W;return G+W}function cutAndStripNonPairedParens(W,V){return")"===W[V]&&V++,function stripNonPairedParens(W){var V=[],G=0;for(;G1&&void 0!==arguments[1]?arguments[1]:{},G=V.allowOverflow;if(!W)throw new Error("String is required");var ie=AsYouTypeFormatter_PatternMatcher_match(W.split(""),this.matchTree,!0);if(ie&&ie.match&&delete ie.matchedChars,!ie||!ie.overflow||G)return ie}}]),PatternMatcher}();function AsYouTypeFormatter_PatternMatcher_match(W,V,G){if("string"==typeof V){if(G&&W.length>V.length)return{overflow:!0};var ie=W.join("");return 0===V.indexOf(ie)?W.length===V.length?{match:!0,matchedChars:W}:{partialMatch:!0}:0===ie.indexOf(V)?{match:!0,matchedChars:W.slice(0,V.length)}:void 0}if(Array.isArray(V)){for(var oe=W.slice(),ue=0;ue=de.length)break;he=de[pe++]}else{if((pe=de.next()).done)break;he=pe.value}var ve=AsYouTypeFormatter_PatternMatcher_match(W,he,G);if(ve){if(ve.overflow)return ve;if(ve.match)return{match:!0,matchedChars:ve.matchedChars};if(!ve.partialMatch)throw new Error("Unsupported match result:\n".concat(JSON.stringify(ve,null,2)));se=!0}}return se?{partialMatch:!0}:void 0;case"[]":var ge=V.args,Se=Array.isArray(ge),we=0;for(ge=Se?ge:ge[Symbol.iterator]();;){var Ce;if(Se){if(we>=ge.length)break;Ce=ge[we++]}else{if((we=ge.next()).done)break;Ce=we.value}var Pe=Ce;if(W[0]===Pe)return 1===W.length?{match:!0,matchedChars:W}:G?{overflow:!0}:{match:!0,matchedChars:[Pe]}}return;default:throw new Error("Unsupported instruction tree: ".concat(V))}}var zt=new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])"),Yt=/[\(\)\[\]\?\:\|]/,Gt=function(){function PatternParser(){AsYouTypeFormatter_PatternMatcher_classCallCheck(this,PatternParser)}return AsYouTypeFormatter_PatternMatcher_createClass(PatternParser,[{key:"parse",value:function parse(W){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(W),1!==this.context.length)throw new Error("Non-finalized contexts left when pattern parse ended");var V=this.context[0],G=V.branches,ie=V.instructions;if(G)return[{op:"|",args:G.concat([ie])}];if(0===ie.length)throw new Error("Pattern is required");return ie}},{key:"startContext",value:function startContext(W){this.context.push(W)}},{key:"endContext",value:function endContext(){this.context.pop()}},{key:"getContext",value:function getContext(){return this.context[this.context.length-1]}},{key:"parsePattern",value:function parsePattern(W){if(!W)throw new Error("Pattern is required");var V=W.match(zt);if(V){var G=V[1],ie=W.slice(0,V.index),oe=W.slice(V.index+G.length);switch(G){case"(?:":ie&&this.parsePattern(ie),this.startContext({or:!0,instructions:[],branches:[]});break;case")":if(!this.getContext().or)throw new Error('")" operator must be preceded by "(?:" operator');if(ie&&this.parsePattern(ie),0===this.getContext().instructions.length)throw new Error('No instructions found after "|" operator in an "or" group');var ue=this.getContext().branches;ue.push(this.getContext().instructions),this.endContext(),this.getContext().instructions.push({op:"|",args:ue});break;case"|":if(!this.getContext().or)throw new Error('"|" operator can only be used inside "or" groups');if(ie&&this.parsePattern(ie),!this.getContext().branches){if(1!==this.context.length)throw new Error('"branches" not found in an "or" group context');this.getContext().branches=[]}this.getContext().branches.push(this.getContext().instructions),this.getContext().instructions=[];break;case"[":ie&&this.parsePattern(ie),this.startContext({oneOfSet:!0});break;case"]":if(!this.getContext().oneOfSet)throw new Error('"]" operator must be preceded by "[" operator');this.endContext(),this.getContext().instructions.push({op:"[]",args:parseOneOfSet(ie)});break;default:throw new Error("Unknown operator: ".concat(G))}oe&&this.parsePattern(oe)}else{if(Yt.test(W))throw new Error("Illegal characters found in a pattern: ".concat(W));this.getContext().instructions=this.getContext().instructions.concat(W.split(""))}}}]),PatternParser}();function parseOneOfSet(W){for(var V=[],G=0;G=ie.length)break;ae=ie[ue++]}else{if((ue=ie.next()).done)break;ae=ue.value}var format=ae,se=formatCompleteNumber(V,format,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function shouldTryNationalPrefixFormattingRule(W){return G.shouldTryNationalPrefixFormattingRule(W,{international:V.international,nationalPrefix:V.nationalPrefix})},getSeparatorAfterNationalPrefix:this.getSeparatorAfterNationalPrefix});if(se)return this.resetFormat(),this.chosenFormat=format,this.setNationalNumberTemplate(se.replace(/\d/g,Vt),V),this.populatedNationalNumberTemplate=se,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(Vt),se}}return this.formatNationalNumberWithNextDigits(W,V)}},{key:"formatNationalNumberWithNextDigits",value:function formatNationalNumberWithNextDigits(W,V){var G=this.chosenFormat,ie=this.chooseFormat(V);if(ie)return ie===G?this.formatNextNationalNumberDigits(W):this.formatNextNationalNumberDigits(V.getNationalDigits())}},{key:"narrowDownMatchingFormats",value:function narrowDownMatchingFormats(W){var V=this,G=W.nationalSignificantNumber,ie=W.nationalPrefix,oe=W.international,ue=G,ae=ue.length-3;ae<0&&(ae=0),this.matchingFormats=this.matchingFormats.filter((function(W){return V.formatSuits(W,oe,ie)&&V.formatMatches(W,ue,ae)})),this.chosenFormat&&-1===this.matchingFormats.indexOf(this.chosenFormat)&&this.resetFormat()}},{key:"formatSuits",value:function formatSuits(W,V,G){return!(G&&!W.usesNationalPrefix()&&!W.nationalPrefixIsOptionalWhenFormattingInNationalFormat())&&!(!V&&!G&&W.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:"formatMatches",value:function formatMatches(W,V,G){var ie=W.leadingDigitsPatterns().length;if(0===ie)return!0;G=Math.min(G,ie-1);var oe=W.leadingDigitsPatterns()[G];if(V.length<3)try{return void 0!==new qt(oe).match(V,{allowOverflow:!0})}catch(W){return console.error(W),!0}return new RegExp("^(".concat(oe,")")).test(V)}},{key:"getFormatFormat",value:function getFormatFormat(W,V){return V?W.internationalFormat():W.format()}},{key:"chooseFormat",value:function chooseFormat(W){var V=this,G=function _loop2(){if(oe){if(ue>=ie.length)return"break";ae=ie[ue++]}else{if((ue=ie.next()).done)return"break";ae=ue.value}var G=ae;return V.chosenFormat===G?"break":Xt.test(V.getFormatFormat(G,W.international))?V.createTemplateForFormat(G,W)?(V.chosenFormat=G,"break"):(V.matchingFormats=V.matchingFormats.filter((function(W){return W!==G})),"continue"):"continue"};var ie=this.matchingFormats.slice(),oe=Array.isArray(ie),ue=0;e:for(ie=oe?ie:ie[Symbol.iterator]();;){var ae;switch(G()){case"break":break e;case"continue":continue}}return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"createTemplateForFormat",value:function createTemplateForFormat(W,V){if(!(W.pattern().indexOf("|")>=0)){var G=this.getTemplateForFormat(W,V);return G?(this.setNationalNumberTemplate(G,V),!0):void 0}}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function getInternationalPrefixBeforeCountryCallingCode(W,V){var G=W.IDDPrefix,ie=W.missingPlus;return G?V&&!1===V.spacing?G:G+" ":ie?"":"+"}},{key:"getTemplate",value:function getTemplate(W){if(this.template){for(var V=-1,G=0,ie=W.international?this.getInternationalPrefixBeforeCountryCallingCode(W,{spacing:!1}):"";Gse.length)){var de=new RegExp("^"+ae+"$"),le=G.replace(/\d/g,"9");de.test(le)&&(se=le);var pe,he=this.getFormatFormat(W,ie);if(this.shouldTryNationalPrefixFormattingRule(W,{international:ie,nationalPrefix:oe})){var ve=he.replace(Ue,W.nationalPrefixFormattingRule());if(parseDigits(W.nationalPrefixFormattingRule())===(oe||"")+parseDigits("$1")&&(he=ve,pe=!0,oe))for(var ge=oe.length;ge>0;)he=he.replace(/\d/,Vt),ge--}var Se=se.replace(new RegExp(ae),he).replace(new RegExp("9","g"),Vt);return pe||(ue?Se=repeat(Vt,ue.length)+" "+Se:oe&&(Se=repeat(Vt,oe.length)+this.getSeparatorAfterNationalPrefix(W)+Se)),ie&&(Se=applyInternationalSeparatorStyle(Se)),Se}}},{key:"formatNextNationalNumberDigits",value:function formatNextNationalNumberDigits(W){var V=function populateTemplateWithDigits(W,V,G){var ie=G.split(""),oe=Array.isArray(ie),ue=0;for(ie=oe?ie:ie[Symbol.iterator]();;){var ae;if(oe){if(ue>=ie.length)break;ae=ie[ue++]}else{if((ue=ie.next()).done)break;ae=ue.value}var se=ae;if(W.slice(V+1).search(Ut)<0)return;V=W.search(Ut),W=W.replace(Ut,se)}return[W,V]}(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,W);if(V)return this.populatedNationalNumberTemplate=V[0],this.populatedNationalNumberTemplatePosition=V[1],cutAndStripNonPairedParens(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1);this.resetFormat()}}]),AsYouTypeFormatter}();function AsYouTypeParser_slicedToArray(W,V){return function AsYouTypeParser_arrayWithHoles(W){if(Array.isArray(W))return W}(W)||function AsYouTypeParser_iterableToArrayLimit(W,V){var G=[],ie=!0,oe=!1,ue=void 0;try{for(var ae,se=W[Symbol.iterator]();!(ie=(ae=se.next()).done)&&(G.push(ae.value),!V||G.length!==V);ie=!0);}catch(W){oe=!0,ue=W}finally{try{ie||null==se.return||se.return()}finally{if(oe)throw ue}}return G}(W,V)||function AsYouTypeParser_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function AsYouTypeParser_defineProperties(W,V){for(var G=0;G=3;if(V.appendDigits(W),ie&&this.extractIddPrefix(V),this.isWaitingForCountryCallingCode(V)){if(!this.extractCountryCallingCode(V))return}else V.appendNationalSignificantNumberDigits(W);V.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(V.getNationalDigits(),V.update)}},{key:"isWaitingForCountryCallingCode",value:function isWaitingForCountryCallingCode(W){var V=W.international,G=W.callingCode;return V&&!G}},{key:"extractCountryCallingCode",value:function extractCountryCallingCode(W){var V=extractCountryCallingCode_extractCountryCallingCode("+"+W.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),G=V.countryCallingCode,ie=V.number;if(G)return W.setCallingCode(G),W.update({nationalSignificantNumber:ie}),!0}},{key:"reset",value:function reset(W){if(W){this.hasSelectedNumberingPlan=!0;var V=W._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=V&&tr.test(V)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function extractNationalSignificantNumber(W,V){if(this.hasSelectedNumberingPlan){var G=extractNationalNumberFromPossiblyIncompleteNumber(W,this.metadata),ie=G.nationalPrefix,oe=G.nationalNumber,ue=G.carrierCode;if(oe!==W)return this.onExtractedNationalNumber(ie,ue,oe,W,V),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function extractAnotherNationalSignificantNumber(W,V,G){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(W,G);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var ie=extractNationalNumberFromPossiblyIncompleteNumber(W,this.metadata),oe=ie.nationalPrefix,ue=ie.nationalNumber,ae=ie.carrierCode;if(ue!==V)return this.onExtractedNationalNumber(oe,ae,ue,W,G),!0}}},{key:"onExtractedNationalNumber",value:function onExtractedNationalNumber(W,V,G,ie,oe){var ue,ae,se=ie.lastIndexOf(G);if(se>=0&&se===ie.length-G.length){ae=!0;var de=ie.slice(0,se);de!==W&&(ue=de)}oe({nationalPrefix:W,carrierCode:V,nationalSignificantNumber:G,nationalSignificantNumberMatchesInput:ae,complexPrefixBeforeNationalSignificantNumber:ue}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function reExtractNationalSignificantNumber(W){return!!this.extractAnotherNationalSignificantNumber(W.getNationalDigits(),W.nationalSignificantNumber,W.update)||(this.extractIddPrefix(W)||this.fixMissingPlus(W)?(this.extractCallingCodeAndNationalSignificantNumber(W),!0):void 0)}},{key:"extractIddPrefix",value:function extractIddPrefix(W){var V=W.international,G=W.IDDPrefix,ie=W.digits;W.nationalSignificantNumber;if(!V&&!G){var oe=stripIddPrefix(ie,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);return void 0!==oe&&oe!==ie?(W.update({IDDPrefix:ie.slice(0,ie.length-oe.length)}),this.startInternationalNumber(W),!0):void 0}}},{key:"fixMissingPlus",value:function fixMissingPlus(W){if(!W.international){var V=extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(W.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),G=V.countryCallingCode;V.number;if(G)return W.update({missingPlus:!0}),this.startInternationalNumber(W),!0}}},{key:"startInternationalNumber",value:function startInternationalNumber(W){W.startInternationalNumber(),W.nationalSignificantNumber&&(W.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function extractCallingCodeAndNationalSignificantNumber(W){this.extractCountryCallingCode(W)&&this.extractNationalSignificantNumber(W.getNationalDigits(),W.update)}}]),AsYouTypeParser}();function AsYouType_typeof(W){return(AsYouType_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(W){return typeof W}:function _typeof(W){return W&&"function"==typeof Symbol&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W})(W)}function AsYouType_slicedToArray(W,V){return function AsYouType_arrayWithHoles(W){if(Array.isArray(W))return W}(W)||function AsYouType_iterableToArrayLimit(W,V){var G=[],ie=!0,oe=!1,ue=void 0;try{for(var ae,se=W[Symbol.iterator]();!(ie=(ae=se.next()).done)&&(G.push(ae.value),!V||G.length!==V);ie=!0);}catch(W){oe=!0,ue=W}finally{try{ie||null==se.return||se.return()}finally{if(oe)throw ue}}return G}(W,V)||function AsYouType_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function AsYouType_defineProperties(W,V){for(var G=0;G1}},{key:"determineTheCountry",value:function determineTheCountry(){this.state.setCountry(getCountryByCallingCode(this.isInternational()?this.state.callingCode:this.defaultCallingCode,this.state.nationalSignificantNumber,this.metadata))}},{key:"getNumberValue",value:function getNumberValue(){var W=this.state,V=W.digits,G=W.callingCode,ie=W.country,oe=W.nationalSignificantNumber;if(V)return this.isInternational()?G?"+"+G+oe:"+"+V:ie||G?"+"+(ie?this.metadata.countryCallingCode():G)+oe:void 0}},{key:"getNumber",value:function getNumber(){var W=this.state,V=W.nationalSignificantNumber,G=W.carrierCode,ie=W.callingCode,oe=this._getCountry();if(V&&(oe||ie)){var ue=new Ke(oe||ie,V,this.metadata.metadata);return G&&(ue.carrierCode=G),ue}}},{key:"isPossible",value:function isPossible(){var W=this.getNumber();return!!W&&W.isPossible()}},{key:"isValid",value:function isValid(){var W=this.getNumber();return!!W&&W.isValid()}},{key:"getNationalNumber",value:function getNationalNumber(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function getChars(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function getTemplate(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}]),AsYouType}();function exports_AsYouType_AsYouType(W){return nr.call(this,W,oe)}function isSupportedCountry_isSupportedCountry(){return withMetadata(isSupportedCountry,arguments)}function getCountries(W){return new de(W).getCountries()}function getCountries_getCountries(){return withMetadata(getCountries,arguments)}function getCountryCallingCode_getCountryCallingCode(){return withMetadata(getCountryCallingCode,arguments)}function getExtPrefix_getExtPrefix(){return withMetadata(getExtPrefix,arguments)}function Metadata_Metadata(){return de.call(this,oe)}function getExampleNumber(W,V,G){if(V[W])return new Ke(W,V[W],G)}function getExampleNumber_getExampleNumber(){return withMetadata(getExampleNumber,arguments)}function formatIncompletePhoneNumber(W,V,G){return G||(G=V,V=void 0),new nr(V,G).input(W)}function formatIncompletePhoneNumber_formatIncompletePhoneNumber(){return withMetadata(formatIncompletePhoneNumber,arguments)}exports_AsYouType_AsYouType.prototype=Object.create(nr.prototype,{}),exports_AsYouType_AsYouType.prototype.constructor=exports_AsYouType_AsYouType,Metadata_Metadata.prototype=Object.create(de.prototype,{}),Metadata_Metadata.prototype.constructor=Metadata_Metadata},function(W,V,G){"use strict";G.r(V),G.d(V,"Observable",(function(){return ie.a})),G.d(V,"ConnectableObservable",(function(){return oe.a})),G.d(V,"GroupedObservable",(function(){return ue.a})),G.d(V,"observable",(function(){return ae.a})),G.d(V,"Subject",(function(){return se.a})),G.d(V,"BehaviorSubject",(function(){return de.a})),G.d(V,"ReplaySubject",(function(){return le.a})),G.d(V,"AsyncSubject",(function(){return pe.a})),G.d(V,"asap",(function(){return he.a})),G.d(V,"asapScheduler",(function(){return he.b})),G.d(V,"async",(function(){return ve.a})),G.d(V,"asyncScheduler",(function(){return ve.b})),G.d(V,"queue",(function(){return ge.a})),G.d(V,"queueScheduler",(function(){return ge.b})),G.d(V,"animationFrame",(function(){return Fe})),G.d(V,"animationFrameScheduler",(function(){return Ie})),G.d(V,"VirtualTimeScheduler",(function(){return Re})),G.d(V,"VirtualAction",(function(){return Le})),G.d(V,"Scheduler",(function(){return De.a})),G.d(V,"Subscription",(function(){return Ue.a})),G.d(V,"Subscriber",(function(){return ze.a})),G.d(V,"Notification",(function(){return He.a})),G.d(V,"NotificationKind",(function(){return He.b})),G.d(V,"pipe",(function(){return Ke.a})),G.d(V,"noop",(function(){return Ze.a})),G.d(V,"identity",(function(){return Qe.a})),G.d(V,"isObservable",(function(){return isObservable})),G.d(V,"ArgumentOutOfRangeError",(function(){return et.a})),G.d(V,"EmptyError",(function(){return tt.a})),G.d(V,"ObjectUnsubscribedError",(function(){return rt.a})),G.d(V,"UnsubscriptionError",(function(){return nt.a})),G.d(V,"TimeoutError",(function(){return it.a})),G.d(V,"bindCallback",(function(){return bindCallback})),G.d(V,"bindNodeCallback",(function(){return bindNodeCallback})),G.d(V,"combineLatest",(function(){return ct.b})),G.d(V,"concat",(function(){return dt.a})),G.d(V,"defer",(function(){return lt.a})),G.d(V,"empty",(function(){return ft.b})),G.d(V,"forkJoin",(function(){return forkJoin})),G.d(V,"from",(function(){return ht.a})),G.d(V,"fromEvent",(function(){return fromEvent})),G.d(V,"fromEventPattern",(function(){return fromEventPattern})),G.d(V,"generate",(function(){return generate})),G.d(V,"iif",(function(){return iif})),G.d(V,"interval",(function(){return interval})),G.d(V,"merge",(function(){return vt.a})),G.d(V,"never",(function(){return never})),G.d(V,"of",(function(){return gt.a})),G.d(V,"onErrorResumeNext",(function(){return onErrorResumeNext})),G.d(V,"pairs",(function(){return pairs})),G.d(V,"partition",(function(){return partition})),G.d(V,"race",(function(){return $t.a})),G.d(V,"range",(function(){return range})),G.d(V,"throwError",(function(){return Ot.a})),G.d(V,"timer",(function(){return xt.a})),G.d(V,"using",(function(){return using})),G.d(V,"zip",(function(){return Et.b})),G.d(V,"scheduled",(function(){return Ct.a})),G.d(V,"EMPTY",(function(){return ft.a})),G.d(V,"NEVER",(function(){return mt})),G.d(V,"config",(function(){return Pt.a}));var ie=G(4),oe=G(80),ue=G(77),ae=G(26),se=G(7),de=G(81),le=G(57),pe=G(35),he=G(50),ve=G(8),ge=G(70),Se=G(1),we=G(36),Ce=function(W){function AnimationFrameAction(V,G){var ie=W.call(this,V,G)||this;return ie.scheduler=V,ie.work=G,ie}return Se.__extends(AnimationFrameAction,W),AnimationFrameAction.prototype.requestAsyncId=function(V,G,ie){return void 0===ie&&(ie=0),null!==ie&&ie>0?W.prototype.requestAsyncId.call(this,V,G,ie):(V.actions.push(this),V.scheduled||(V.scheduled=requestAnimationFrame((function(){return V.flush(null)}))))},AnimationFrameAction.prototype.recycleAsyncId=function(V,G,ie){if(void 0===ie&&(ie=0),null!==ie&&ie>0||null===ie&&this.delay>0)return W.prototype.recycleAsyncId.call(this,V,G,ie);0===V.actions.length&&(cancelAnimationFrame(G),V.scheduled=void 0)},AnimationFrameAction}(we.a),Pe=G(34),Ie=new(function(W){function AnimationFrameScheduler(){return null!==W&&W.apply(this,arguments)||this}return Se.__extends(AnimationFrameScheduler,W),AnimationFrameScheduler.prototype.flush=function(W){this.active=!0,this.scheduled=void 0;var V,G=this.actions,ie=-1,oe=G.length;W=W||G.shift();do{if(V=W.execute(W.state,W.delay))break}while(++ieV.index?1:-1:W.delay>V.delay?1:-1},VirtualAction}(we.a),De=G(71),Ue=G(6),ze=G(2),He=G(23),Ke=G(49),Ze=G(25),Qe=G(20);function isObservable(W){return!!W&&(W instanceof ie.a||"function"==typeof W.lift&&"function"==typeof W.subscribe)}var et=G(28),tt=G(31),rt=G(27),nt=G(52),it=G(83),ot=G(10),ut=G(64),at=G(9),st=G(11);function bindCallback(W,V,G){if(V){if(!Object(st.a)(V))return function(){for(var ie=[],oe=0;oe1?ie.next(Array.prototype.slice.call(arguments)):ie.next(W)}),ie,G)}))}function fromEventPattern(W,V,G){return G?fromEventPattern(W,V).pipe(Object(ot.a)((function(W){return Object(at.a)(W)?G.apply(void 0,W):G(W)}))):new ie.a((function(G){var ie,handler=function(){for(var W=[],V=0;V=V){ie.complete();break}if(ie.next(ue++),ie.closed)break}}))}function range_dispatch(W){var V=W.start,G=W.index,ie=W.count,oe=W.subscriber;G>=ie?oe.complete():(oe.next(V),oe.closed||(W.index=G+1,W.start=V+1,this.schedule(W)))}var Ot=G(58),xt=G(87);function using(W,V){return new ie.a((function(G){var ie,oe;try{ie=W()}catch(W){return void G.error(W)}try{oe=V(ie)}catch(W){return void G.error(W)}var ue=(oe?Object(ht.a)(oe):ft.a).subscribe(G);return function(){ue.unsubscribe(),ie&&ie.unsubscribe()}}))}var Et=G(62),Ct=G(88),Pt=G(19)}]); //# sourceMappingURL=Plugin.js.map \ No newline at end of file