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,gBAAkB,EAAS,mBAG/C,OAAO,KAAK,GAAQ,IAAS,EACrC,EAEA,WAAW,UAAU,YAAc,SAA6B,EAAO,GAAW,EAUlF,WAAW,UAAU,MAAQ,SAAuB,GAE5C,IAAI,EAIJ,MAA4B,mBAAjB,KAFX,EAAS,WAAW,gBAAgB,QAAS,IAI9B,KAAK,GAAQ,GAGrB,IACf,EAEA,WAAW,UAAU,WAAa,SAA4B,EAAO,GAAW,EAMhF,WAAW,UAAU,kBAAoB,WAGjC,IADA,IAAI,EAAO,KACJ,EAAK,QAEJ,EAAO,EAAK,OAGpB,OAAO,CACf,EAOA,WAAW,UAAU,qBAAuB,WAKpC,IAHA,IAAI,EAAS,GACT,EAAO,KAAK,MAET,GAEC,EAAO,KAAK,EAAK,cACjB,EAAO,EAAK,MAGpB,OAAO,CACf,EAOA,WAAW,UAAU,oBAAsB,WAKnC,IAHA,IAAI,EAAS,GACT,EAAO,KAAK,OAET,GAEC,EAAO,QAAQ,EAAK,cACpB,EAAO,EAAK,OAGpB,OAAO,CACf,EAQA,WAAW,UAAU,iBAAmB,SAAS,GAEzC,IAAI,EAAS,KAAK,sBAGlB,OAFA,EAAO,UAA0B,IAArB,EAAoC,KAAK,aAAe,GACpE,EAAS,EAAO,OAAO,KAAK,uBAEpC,EAGA,WAAW,WAAa,WACxB,WAAW,MAAQ,QAAQ","file":"/npm/stateful-controller@0.0.3/lib/Controller.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/stateful-controller@0.0.3/lib/Controller.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","'use strict';\n\nvar P = require('bluebird');\n\n\n/**\n * An object that describes a state. This object must be immutable (by contract).\n * @typedef {Object} ControllerStateObject\n * @property {string} stateName If a state is an object, this property is used to determine\n *           the name of the enter method (see Controller.stateMethodName)\n * @property {function} isStateEqual If a state is an object, this function must be present.\n *           It must return true if the first argument is the same state (even if it is not the same instance)\n */\n/**\n * You can use either a string or an immutable object to describe a state.\n * @typedef {(string|ControllerStateObject)} ControllerState\n */\n/**\n * @typedef {ControllerState[]} ControllerStateList\n */\n/**\n * @typedef {Object} ClientContext\n */\n\n/**\n * The base class for Controllers.\n * Implements the stateful controller pattern. Users can inherit from this class to\n * implement their own stateful controllers. This pattern is useful for implementing\n * single page web applications, as opposed to a more traditional web application following\n * the stateless REST architecture.\n * @param {ClientContext} context\n * @constructor\n */\nfunction Controller(context)\n{\n        /**\n         * @member {ClientContext} context\n         * @memberOf Controller\n         * @instance\n         */\n        this.context = context;\n\n        /**\n         * @member {ControllerState} currentState\n         * @memberOf Controller\n         * @instance\n         */\n        this.currentState = null;\n\n        /**\n         * @member {Controller} __child__\n         * @memberOf Controller\n         * @private\n         * @instance\n         */\n        this.__child__ = null;\n\n        /**\n         * @member {Controller} __parent__\n         * @memberOf Controller\n         * @private\n         * @instance\n         */\n        this.__parent__ = null;\n\n        /**\n         * @member {Object} _currentTransition\n         * @memberOf Controller\n         * @private\n         * @instance\n         */\n        this._currentTransition = null;\n}\n\nmodule.exports = Controller;\nObject.defineProperty(Controller.prototype, 'isStatefulController1', { value: true });\n\n/** The current child controller. Setting this attribute also updates the \"parent\" attribute of the child.\n * @member {Controller} child\n * @memberOf Controller\n * @instance\n */\nObject.defineProperty(Controller.prototype, 'child', {\n        get: function()\n        {\n                return this.__child__;\n        },\n        set: function(value)\n        {\n                // avoid instanceof\n                if (value &&\n                    value.isStatefulController1 !== true)\n                {\n                        throw Error('Invalid value, it must be a Controller or null');\n                }\n\n                if (this.__child__)\n                {\n                        this.__child__.__parent__ = null;\n                }\n\n                if (value)\n                {\n                        if (value.__parent__)\n                        {\n                                value.__parent__.child = null;\n                        }\n\n                        value.__parent__ = this;\n                }\n\n                this.__child__ = value;\n        }\n});\n\n/** The current parent controller. Setting this attribute also updates the \"child\" attribute of the parent.\n * @member {Controller} parent\n * @memberOf Controller\n * @instance\n */\nObject.defineProperty(Controller.prototype, 'parent', {\n        get: function()\n        {\n                return this.__parent__;\n        },\n        set: function(value)\n        {\n                if (value &&\n                    value.isStatefulController1 !== true)\n                {\n                        throw Error('Invalid value, it must be a Controller or null');\n                }\n\n                if (this.__parent__)\n                {\n                        this.__parent__.__child__ = null;\n                }\n\n                if (value)\n                {\n                        if (value.__child__)\n                        {\n                                value.__child__.__parent__ = null;\n                        }\n                        value.__child__ = this;\n                }\n\n                this.__parent__ = value;\n        }\n});\n\n/**\n * @example Controller.stateMethodName('enter', 'foo') // 'enterFoo'\n * @example Controller.stateMethodName('enter', {abc: 5, stateName: 'enterFoo', ...} // 'enterFoo'\n * @param {string} prefix\n * @param {ControllerState} state\n * @returns {string}\n */\nController.stateMethodName = function(prefix, state)\n{\n        if (typeof state === 'object' &&\n            'stateName' in state)\n        {\n                state = state.stateName;\n        }\n\n        state = state.toString();\n\n        var parts = state.split(/\\s+/);\n\n        for (var i = prefix ? 0 : 1;\n             i < parts.length;\n             ++i)\n        {\n                parts[i] = parts[i][0].toUpperCase() +\n                           parts[i].slice(1);\n        }\n\n        if (!prefix)\n        {\n                return state;\n        }\n\n        return prefix + parts.join('');\n};\n\n/**\n * Are two states equal?.\n * If both states are a string, case sensitive string matching is used.\n * If stateA is an object, return <code>stateA.isStateEqual(stateB)</code>\n * @param {ControllerState} stateA\n * @param {ControllerState} stateB\n * @returns {boolean}\n */\nController.statesEqual = function(stateA, stateB)\n{\n        if (stateA &&\n            stateB &&\n            typeof stateA === 'object')\n        {\n                if (!stateA.isStateEqual)\n                {\n                        throw Error('If a state is an object, it must implement a isStateEqual(other) method');\n                }\n\n                return stateA.isStateEqual(stateB);\n        }\n\n        return stateA === stateB;\n};\n\n/**\n * Are two states lists equal?.\n * Each state is matched using Controller.statesEqual\n * @param {ControllerStateList} statesA\n * @param {ControllerStateList} statesB\n * @returns {boolean}\n */\nController.stateListEqual = function(statesA, statesB)\n{\n        if (!Array.isArray(statesA) ||\n            !Array.isArray(statesB))\n        {\n                throw Error('Invalid arguments');\n        }\n\n        if (statesA === statesB)\n        {\n                return true;\n        }\n\n        if (statesA.length !== statesB.length)\n        {\n                return false;\n        }\n\n        for (var i = 0; i < statesA.length; ++i)\n        {\n                if (!Controller.statesEqual(statesA[i], statesB[i]))\n                {\n                        return false;\n                }\n        }\n\n        return true;\n};\n\nController.prototype._transitionChildLeave = P.method(function _transitionChildLeave()\n{\n        var t = this._currentTransition;\n\n        if (this.child)\n        {\n                return this.child.state(null, t.upgrade);\n        }\n\n        return null;\n});\n\nController.prototype._transitionMyLeave = P.method(function _transitionMyLeave()\n{\n        var t = this._currentTransition;\n\n        if (t.myPreviousState)\n        {\n                try\n                {\n                        var p = this.leave(t.myPreviousState);\n\n                        if (p)\n                        {\n                                return p.bind(this).finally(this._transitionMyLeaveFinally);\n                        }\n                }\n                finally\n                {\n                        this._transitionMyLeaveFinally();\n                }\n        }\n\n        return null;\n});\n\nController.prototype._transitionMyLeaveFinally = P.method(function _transitionMyLeaveFinally()\n{\n        this.currentState = null;\n        this.child = null;\n});\n\nController.prototype._transitionMyAfterLeave = P.method(function _transitionMyAfterLeave()\n{\n        var t = this._currentTransition;\n\n        if (t.myPreviousState)\n        {\n                return this.afterLeave(t.myPreviousState);\n        }\n\n        return null;\n});\n\nController.prototype._transitionMyBeforeEnter = P.method(function _transitionMyBeforeEnter()\n{\n        var t = this._currentTransition;\n\n        if (t.myState)\n        {\n                return this.beforeEnter(t.myState, t.upgrade);\n        }\n\n        return null;\n});\n\nController.prototype._transitionMyEnter = P.method(function _transitionMyEnter()\n{\n        var t = this._currentTransition;\n\n        if (t.myState)\n        {\n                this.currentState = t.myState;\n                return this.enter(t.myState, t.upgrade);\n        }\n\n        return null;\n});\n\nController.prototype._transitionChildState = P.method(function _transitionChildState()\n{\n        var t = this._currentTransition;\n\n        if (t.childState !== void 123)\n        {\n                if (!this.child)\n                {\n                        throw Error('Attempting to set child state \"'\n                                    + t.childState\n                                    + '\", but no child controller has been set by the state \"'\n                                    + t.myState\n                                    + '\".'\n                        );\n                }\n\n                return this.child.state(t.childStateChain, t.upgrade);\n        }\n        else\n        {\n                if (t.myState && this.child)\n                {\n                        throw Error('Attempting to set state \"'\n                                    + t.myState\n                                    + '\", but a child state is missing (a child controller has been set)'\n                        );\n                }\n        }\n\n        return null;\n});\n\nController.prototype._transitionCatch = P.method(function _transitionCatch(err)\n{\n        // something went wrong, assume we are still in the previous state\n        var t = this._currentTransition;\n        this.currentState = t.myPreviousState;\n        return P.reject(err);\n});\n\nController.prototype._transitionFinally = P.method(function _transitionFinally()\n{\n        this._currentTransition = null;\n});\n\n/**\n * Assign a chain of states to this controller and its children.\n * Each controller has 0 or 1 child controllers. When a controller enters a state, it might create a child controller\n * for that state (by setting the child attribute on its controller).\n * That child controller is also assigned a state by this method (the next one in the chain).\n *\n * @example\n * myController.state(['pages', 'contact', 'foo']); // myController is set to the state 'pages',\n *                                                  // its child controller is set to 'contact', and so on.\n * @param {?ControllerStateList} states The state chain, or null to leave the state without setting a new one.\n * @param {boolean} [upgrade=false]\n *        <p>If true, the \"results\" of the given \"state\" is already present in some form.\n *           These \"results\" were generated by a previous state transition in a different execution context. If this\n *           parameter is \"true\" you will have to parse the existing \"results\" and set up any variables, attributes, event\n *           listeners, etc, so that your controller matches the one in the different execution context.\n *        </p>\n *        <p>After this \"upgrade\", non-upgrade state transitions are able to occur. This means your\n *           \"leave\" methods must be able to modify these existing \"results\" so that the state transition is able to execute\n *           properly.\n *        </p>\n *\n *        <p>The most common use case for upgrades is in a client-server web application. An example:</p>\n *\n *        <ol>\n *                <li>The client performs a GET request to \"/foo\"</li>\n *                <li>The client & server translate \"/foo\" to the state ['contentPage', 'foo']</li>\n *                <li>The server creates a ClientContext including a new DOM Document</li>\n *                <li>The server creates a: new FrontController(clientContext)</li>\n *                <li>The server executes frontController.state(['contentPage', 'foo'], false)</li>\n *                <li>The server serializes the DOM Document as html and sends it to the client as a HTTP response</li>\n *                <li>The client creates a ClientContext including the DOM Document of the html it received</li>\n *                <li>The client creates a: new FrontController(clientContext)</li>\n *                <li>The client executes frontController.state(['contentPage', 'foo'], true)</li>\n *                <li>The client is now able to execute other state transitions.<br>\n *                    e.g. frontController.state(['contentPage', 'bar'], false)\n *                </li>\n *        </ol>\n * @return {!Promise}\n */\nController.prototype.state = P.method(function state(states, upgrade)\n{\n        if (states === null)\n        {\n                states = [null];\n        }\n\n        if (!Array.isArray(states))\n        {\n                throw Error('Invalid argument, \"states\" must be an array');\n        }\n\n        if (this._currentTransition)\n        {\n                throw Error('A previous state transition is still in progress');\n        }\n\n        this._currentTransition = {\n                myPreviousState: this.currentState,\n                myState: states[0],\n                childState: states[1],\n                childStateChain: states.slice(1),\n                upgrade: !!upgrade\n        };\n\n        if (Controller.statesEqual(this.currentState, this._currentTransition.myState))\n        {\n                return P.bind(this)\n                        .then(this._transitionChildState)\n                        .finally(this._transitionFinally)\n                        .bind()\n                        .return(null);\n        }\n        else\n        {\n                return P.bind(this)\n                        .then(this._transitionChildLeave)\n                        .then(this._transitionMyLeave)\n                        .then(this._transitionMyAfterLeave)\n                        .then(this._transitionMyBeforeEnter)\n                        .then(this._transitionMyEnter)\n                        .then(this._transitionChildState)\n                        .catch(this._transitionCatch)\n                        .finally(this._transitionFinally)\n                        .bind()\n                        .return(null);\n        }\n});\n\n/**\n * This method is invoked by .state(...) when the state for this controller should change (leave() is called first).\n * The default implementation translates the state to a method invocation.\n * e.g. \"foo\" -> this.enterFoo()\n * Override this method if you want to do something else (like pulling the states\n * out of a database);\n * @param {ControllerState} state string or an object that describes your state. toString() is called on the object to\n *        determine the method name to use. {abc: 5, toString: function(){ return 'foo';}, ...} -> this.enterFoo()\n * @param {boolean} [upgrade=false] Upgrading the results of a state transition in a different execution context? See the\n *        state() method for more documentation.\n * @throws {Error} If the state method does not exist.\n * @return {?Promise}\n * @protected\n */\nController.prototype.enter = function enter$default(state, upgrade)\n{\n        var method;\n        this.currentState = state;\n\n        method = Controller.stateMethodName('enter', state);\n        if (typeof this[method] !== 'function')\n        {\n                throw Error('State method ' + method + ' does not exist');\n        }\n\n        return this[method](state, !!upgrade);\n};\n\nController.prototype.beforeEnter = function beforeEnter$default(state, upgrade) { };\n\n/**\n * This method is invoked by .state(...) when the current state is being left.\n * The default implementation translates the state to a method invocation.\n * e.g. \"foo\" -> this.leaveFoo();\n * Unlike enter(), this method does not throw if this method does not exist.\n * @protected\n * @return {?Promise}\n */\nController.prototype.leave = function leave$default(state)\n{\n        var method;\n\n        method = Controller.stateMethodName('leave', state);\n\n        if (typeof this[method] === 'function')\n        {\n                return this[method](state);\n        }\n\n        return null;\n};\n\nController.prototype.afterLeave = function afterLeave$default(state, upgrade) { };\n\n/**\n * Find the top most Controller by iterating over .parent and return it\n * @returns {Controller}\n */\nController.prototype.getRootController = function()\n{\n        var cont = this;\n        while (cont.parent)\n        {\n                cont = cont.parent;\n        }\n\n        return cont;\n};\n\n/**\n * Return the states all our (grand)children.\n * Our own child be at index 0, the child of our child at index 1, etc\n * @returns {ControllerStateList}\n */\nController.prototype.getChildrenStateList = function()\n{\n        var states = [];\n        var cont = this.child;\n\n        while (cont)\n        {\n                states.push(cont.currentState);\n                cont = cont.child;\n        }\n\n        return states;\n};\n\n/**\n * Return the states of all the (grand)parents of this controller.\n * The top most parent will be at index 0, our own parent at the last index\n * @returns {ControllerStateList}\n */\nController.prototype.getParentsStateList = function()\n{\n        var states = [];\n        var cont = this.parent;\n\n        while (cont)\n        {\n                states.unshift(cont.currentState);\n                cont = cont.parent;\n        }\n\n        return states;\n};\n\n/**\n * Return the full state list this controller is part of.\n * This is identical to calling getRootController().getChildrenStateList()\n * @param {ControllerState} [replacementState=this.currentState] If set, replace our own state with this state in the returned list\n * @returns {ControllerStateList}\n */\nController.prototype.getFullStateList = function(replacementState)\n{\n        var states = this.getParentsStateList();\n        states.push(replacementState === void 3.14159 ? this.currentState : replacementState);\n        states = states.concat(this.getChildrenStateList());\n        return states;\n};\n\n// So that you can use: require('stateful-controller').Controller\nController.Controller = Controller;\nController.Dummy = require('./DummyController');"]}