UNPKG

baasic-sdk-javascript

Version:

JavaScript SDK provides core functionality for building web and mobile applications on [Baasic](http://www.baasic.com/).

2 lines 747 kB
// [Baasic JavaScript SDK (c) 2016 Mono Software Ltd.] Build version: 2.0.12 - Thursday, June 24th, 2021, 9:36:23 AM !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.baasicSdkJavaScript=e():t.baasicSdkJavaScript=e()}(window,function(){return function(t){function e(o){if(i[o])return i[o].exports;var n=i[o]={i:o,l:!1,exports:{}};return t[o].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,o){e.o(t,i)||Object.defineProperty(t,i,{enumerable:!0,get:o})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,i){if(1&i&&(t=e(t)),8&i)return t;if(4&i&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(e.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&i&&"string"!=typeof t)for(var n in t)e.d(o,n,function(e){return t[e]}.bind(null,n));return o},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=34)}([function(t,e,i){"use strict";function o(t,e){function i(){this.constructor=t}_(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}function n(t,e){var i={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(i[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(t);n<o.length;n++)e.indexOf(o[n])<0&&(i[o[n]]=t[o[n]])}return i}function r(t,e,i,o){var n,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var u=t.length-1;u>=0;u--)(n=t[u])&&(a=(r<3?n(a):r>3?n(e,i,a):n(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a}function a(t,e){return function(i,o){e(i,o,t)}}function u(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function s(t,e,i,o){return new(i||(i=Promise))(function(n,r){function a(t){try{s(o.next(t))}catch(t){r(t)}}function u(t){try{s(o.throw(t))}catch(t){r(t)}}function s(t){t.done?n(t.value):new i(function(e){e(t.value)}).then(a,u)}s((o=o.apply(t,e||[])).next())})}function p(t,e){function i(t){return function(e){return o([t,e])}}function o(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(a=r[2&i[0]?"return":i[0]?"throw":"next"])&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[0,a.value]),i[0]){case 0:case 1:a=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(a=(a=s.trys).length>0&&a[a.length-1])&&(6===i[0]||2===i[0])){s=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){s.label=i[1];break}if(6===i[0]&&s.label<a[1]){s.label=a[1],a=i;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(i);break}a[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}var n,r,a,u,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return u={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u}function c(t,e){for(var i in t)e.hasOwnProperty(i)||(e[i]=t[i])}function l(t){var e="function"==typeof Symbol&&t[Symbol.iterator],i=0;return e?e.call(t):{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}}}function d(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var o,n,r=i.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}return a}function f(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(d(arguments[e]));return t}function h(t,e,i){function o(t){return function(e){return new Promise(function(i,o){h.push([t,e,i,o]),n()})}}function n(){!l&&h.length&&r((l=h.shift())[0],l[1])}function r(t,e){try{a(f[t](e))}catch(t){c(l[3],t)}}function a(t){t.done?c(l[2],t):"yield"===t.value[0]?c(l[2],{value:t.value[1],done:!1}):Promise.resolve(t.value[1]).then("delegate"===t.value[0]?u:s,p)}function u(t){a(t.done?t:{value:["yield",t.value],done:!1})}function s(t){r("next",t)}function p(t){r("throw",t)}function c(t,e){l=void 0,t(e),n()}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var l,d,f=i.apply(t,e||[]),h=[];return(d={next:o("next"),throw:o("throw"),return:o("return")})[Symbol.asyncIterator]=function(){return this},d}function y(t){function e(e,i){return function(o){return{value:["delegate",(t[e]||i).call(t,o)],done:!1}}}var i={next:e("next"),throw:e("throw",function(t){throw t}),return:e("return",function(t){return{value:t,done:!0}})};return t=m(t),i[Symbol.iterator]=function(){return this},i}function m(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator];return e?e.call(t):l(t)}i.r(e),i.d(e,"__extends",function(){return o}),i.d(e,"__assign",function(){return b}),i.d(e,"__rest",function(){return n}),i.d(e,"__decorate",function(){return r}),i.d(e,"__param",function(){return a}),i.d(e,"__metadata",function(){return u}),i.d(e,"__awaiter",function(){return s}),i.d(e,"__generator",function(){return p}),i.d(e,"__exportStar",function(){return c}),i.d(e,"__values",function(){return l}),i.d(e,"__read",function(){return d}),i.d(e,"__spread",function(){return f}),i.d(e,"__asyncGenerator",function(){return h}),i.d(e,"__asyncDelegator",function(){return y}),i.d(e,"__asyncValues",function(){return m});var _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},b=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}},function(t,e,i){"use strict";var o=i(50);e.Container=o.Container;var n=i(66);e.ContainerModule=n.ContainerModule;var r=i(67);e.injectable=r.injectable;var a=i(68);e.tagged=a.tagged;var u=i(69);e.named=u.named;var s=i(70);e.inject=s.inject;var p=i(71);e.optional=p.optional;var c=i(72);e.unmanaged=c.unmanaged;var l=i(73);e.multiInject=l.multiInject;var d=i(74);e.targetName=d.targetName;var f=i(24);e.guid=f.guid;var h=i(22);e.decorate=h.decorate;var y=i(42);e.traverseAncerstors=y.traverseAncerstors,e.taggedConstraint=y.taggedConstraint,e.namedConstraint=y.namedConstraint,e.typeConstraint=y.typeConstraint;var m=i(28);e.getServiceIdentifierAsString=m.getServiceIdentifierAsString},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(0);o.__exportStar(i(113),e);var n=i(44);e.commonDIModule=n.diModule;var r=i(44);e.TYPES=r.TYPES,o.__exportStar(i(114),e),o.__exportStar(i(115),e),o.__exportStar(i(116),e),o.__exportStar(i(117),e),o.__exportStar(i(119),e),o.__exportStar(i(120),e),o.__exportStar(i(134),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(0);o.__exportStar(i(99),e),o.__exportStar(i(100),e),o.__exportStar(i(101),e),o.__exportStar(i(102),e),o.__exportStar(i(103),e),o.__exportStar(i(104),e),o.__exportStar(i(105),e),o.__exportStar(i(106),e),o.__exportStar(i(107),e),o.__exportStar(i(108),e),o.__exportStar(i(109),e),o.__exportStar(i(110),e),o.__exportStar(i(111),e),o.__exportStar(i(112),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(0),n=i(43);e.httpDIModule=n.diModule;var r=i(43);e.httpTYPES=r.TYPES,o.__exportStar(i(93),e),o.__exportStar(i(94),e),o.__exportStar(i(95),e),o.__exportStar(i(96),e),o.__exportStar(i(97),e),o.__exportStar(i(98),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(0);o.__exportStar(i(457),e),o.__exportStar(i(458),e),o.__exportStar(i(459),e),o.__exportStar(i(47),e),o.__exportStar(i(506),e),o.__exportStar(i(511),e),o.__exportStar(i(516),e),o.__exportStar(i(519),e),o.__exportStar(i(522),e),o.__exportStar(i(536),e),o.__exportStar(i(539),e),o.__exportStar(i(542),e),o.__exportStar(i(549),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(0);o.__exportStar(i(254),e),o.__exportStar(i(255),e),o.__exportStar(i(256),e),o.__exportStar(i(272),e),o.__exportStar(i(46),e),o.__exportStar(i(273),e),o.__exportStar(i(282),e),o.__exportStar(i(285),e),o.__exportStar(i(288),e),o.__exportStar(i(293),e),o.__exportStar(i(300),e),o.__exportStar(i(301),e),o.__exportStar(i(302),e),o.__exportStar(i(303),e),o.__exportStar(i(304),e),o.__exportStar(i(305),e),o.__exportStar(i(306),e),o.__exportStar(i(307),e),o.__exportStar(i(308),e),o.__exportStar(i(309),e),o.__exportStar(i(310),e),o.__exportStar(i(311),e),o.__exportStar(i(312),e),o.__exportStar(i(313),e),o.__exportStar(i(314),e),o.__exportStar(i(315),e),o.__exportStar(i(316),e),o.__exportStar(i(317),e),o.__exportStar(i(318),e),o.__exportStar(i(319),e),o.__exportStar(i(320),e),o.__exportStar(i(321),e),o.__exportStar(i(322),e),o.__exportStar(i(46),e),o.__exportStar(i(323),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(0);o.__exportStar(i(552),e),o.__exportStar(i(553),e),o.__exportStar(i(576),e),o.__exportStar(i(579),e),o.__exportStar(i(584),e),o.__exportStar(i(598),e),o.__exportStar(i(603),e),o.__exportStar(i(48),e),o.__exportStar(i(629),e),o.__exportStar(i(630),e),o.__exportStar(i(631),e),o.__exportStar(i(632),e),o.__exportStar(i(633),e)},function(t,e,i){"use strict";t.exports=i(75)()?Symbol:i(76)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(0);o.__exportStar(i(195),e),o.__exportStar(i(196),e),o.__exportStar(i(197),e),o.__exportStar(i(198),e),o.__exportStar(i(199),e),o.__exportStar(i(200),e),o.__exportStar(i(201),e),o.__exportStar(i(202),e),o.__exportStar(i(203),e),o.__exportStar(i(204),e),o.__exportStar(i(205),e),o.__exportStar(i(206),e),o.__exportStar(i(207),e),o.__exportStar(i(208),e),o.__exportStar(i(209),e),o.__exportStar(i(210),e),o.__exportStar(i(211),e),o.__exportStar(i(212),e),o.__exportStar(i(213),e),o.__exportStar(i(214),e),o.__exportStar(i(215),e),o.__exportStar(i(216),e),o.__exportStar(i(217),e),o.__exportStar(i(218),e),o.__exportStar(i(219),e),o.__exportStar(i(220),e),o.__exportStar(i(221),e),o.__exportStar(i(222),e),o.__exportStar(i(223),e),o.__exportStar(i(224),e),o.__exportStar(i(225),e),o.__exportStar(i(226),e),o.__exportStar(i(227),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(0);o.__exportStar(i(421),e),o.__exportStar(i(422),e),o.__exportStar(i(423),e),o.__exportStar(i(424),e),o.__exportStar(i(425),e),o.__exportStar(i(426),e),o.__exportStar(i(427),e),o.__exportStar(i(428),e),o.__exportStar(i(429),e),o.__exportStar(i(430),e),o.__exportStar(i(431),e),o.__exportStar(i(432),e),o.__exportStar(i(433),e),o.__exportStar(i(434),e),o.__exportStar(i(435),e),o.__exportStar(i(436),e),o.__exportStar(i(437),e),o.__exportStar(i(438),e),o.__exportStar(i(439),e),o.__exportStar(i(440),e),o.__exportStar(i(441),e),o.__exportStar(i(442),e),o.__exportStar(i(443),e),o.__exportStar(i(444),e),o.__exportStar(i(445),e),o.__exportStar(i(446),e),o.__exportStar(i(447),e),o.__exportStar(i(448),e),o.__exportStar(i(449),e),o.__exportStar(i(450),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(0);o.__exportStar(i(771),e),o.__exportStar(i(772),e),o.__exportStar(i(773),e),o.__exportStar(i(774),e),o.__exportStar(i(775),e),o.__exportStar(i(776),e),o.__exportStar(i(777),e),o.__exportStar(i(778),e),o.__exportStar(i(779),e),o.__exportStar(i(780),e),o.__exportStar(i(781),e),o.__exportStar(i(782),e),o.__exportStar(i(783),e),o.__exportStar(i(784),e),o.__exportStar(i(785),e),o.__exportStar(i(786),e),o.__exportStar(i(787),e),o.__exportStar(i(788),e),o.__exportStar(i(789),e),o.__exportStar(i(790),e),o.__exportStar(i(791),e),o.__exportStar(i(792),e),o.__exportStar(i(793),e),o.__exportStar(i(794),e),o.__exportStar(i(795),e),o.__exportStar(i(796),e),o.__exportStar(i(797),e),o.__exportStar(i(798),e),o.__exportStar(i(799),e),o.__exportStar(i(800),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(0);o.__exportStar(i(730),e),o.__exportStar(i(731),e),o.__exportStar(i(732),e),o.__exportStar(i(733),e),o.__exportStar(i(734),e),o.__exportStar(i(735),e),o.__exportStar(i(736),e),o.__exportStar(i(737),e),o.__exportStar(i(738),e),o.__exportStar(i(739),e),o.__exportStar(i(740),e),o.__exportStar(i(741),e),o.__exportStar(i(742),e),o.__exportStar(i(743),e),o.__exportStar(i(744),e),o.__exportStar(i(745),e),o.__exportStar(i(746),e),o.__exportStar(i(747),e),o.__exportStar(i(748),e),o.__exportStar(i(749),e),o.__exportStar(i(750),e),o.__exportStar(i(751),e),o.__exportStar(i(752),e),o.__exportStar(i(753),e),o.__exportStar(i(754),e),o.__exportStar(i(755),e),o.__exportStar(i(756),e),o.__exportStar(i(757),e),o.__exportStar(i(758),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(0);o.__exportStar(i(152),e),o.__exportStar(i(153),e),o.__exportStar(i(154),e),o.__exportStar(i(155),e),o.__exportStar(i(156),e),o.__exportStar(i(157),e),o.__exportStar(i(158),e),o.__exportStar(i(159),e),o.__exportStar(i(160),e),o.__exportStar(i(161),e),o.__exportStar(i(162),e),o.__exportStar(i(163),e),o.__exportStar(i(164),e),o.__exportStar(i(165),e),o.__exportStar(i(166),e),o.__exportStar(i(167),e),o.__exportStar(i(168),e),o.__exportStar(i(169),e),o.__exportStar(i(170),e),o.__exportStar(i(171),e),o.__exportStar(i(172),e),o.__exportStar(i(173),e),o.__exportStar(i(174),e)},function(t,e,i){"use strict";e.NAMED_TAG="named",e.NAME_TAG="name",e.UNMANAGED_TAG="unmanaged",e.OPTIONAL_TAG="optional",e.INJECT_TAG="inject",e.MULTI_INJECT_TAG="multi_inject",e.TAGGED="inversify:tagged",e.TAGGED_PROP="inversify:tagged_props",e.PARAM_TYPES="inversify:paramtypes",e.DESIGN_PARAM_TYPES="design:paramtypes"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(0);o.__exportStar(i(354),e),o.__exportStar(i(355),e),o.__exportStar(i(356),e),o.__exportStar(i(357),e),o.__exportStar(i(358),e),o.__exportStar(i(359),e),o.__exportStar(i(360),e),o.__exportStar(i(361),e),o.__exportStar(i(362),e),o.__exportStar(i(363),e),o.__exportStar(i(364),e),o.__exportStar(i(365),e),o.__exportStar(i(366),e),o.__exportStar(i(367),e),o.__exportStar(i(375),e),o.__exportStar(i(380),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(0);o.__exportStar(i(685),e),o.__exportStar(i(686),e),o.__exportStar(i(687),e),o.__exportStar(i(688),e),o.__exportStar(i(689),e),o.__exportStar(i(690),e),o.__exportStar(i(691),e),o.__exportStar(i(692),e),o.__exportStar(i(693),e),o.__exportStar(i(694),e),o.__exportStar(i(695),e),o.__exportStar(i(696),e),o.__exportStar(i(697),e),o.__exportStar(i(698),e),o.__exportStar(i(699),e),o.__exportStar(i(700),e),o.__exportStar(i(701),e),o.__exportStar(i(702),e),o.__exportStar(i(703),e),o.__exportStar(i(704),e),o.__exportStar(i(705),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(0);o.__exportStar(i(651),e),o.__exportStar(i(652),e),o.__exportStar(i(653),e),o.__exportStar(i(654),e),o.__exportStar(i(655),e),o.__exportStar(i(656),e),o.__exportStar(i(657),e),o.__exportStar(i(658),e),o.__exportStar(i(659),e),o.__exportStar(i(660),e),o.__exportStar(i(661),e),o.__exportStar(i(662),e),o.__exportStar(i(663),e),o.__exportStar(i(664),e),o.__exportStar(i(665),e),o.__exportStar(i(666),e),o.__exportStar(i(667),e),o.__exportStar(i(668),e),o.__exportStar(i(669),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(0);o.__exportStar(i(402),e),o.__exportStar(i(403),e),o.__exportStar(i(404),e),o.__exportStar(i(405),e),o.__exportStar(i(406),e),o.__exportStar(i(407),e),o.__exportStar(i(408),e),o.__exportStar(i(409),e),o.__exportStar(i(410),e),o.__exportStar(i(411),e),o.__exportStar(i(412),e),o.__exportStar(i(413),e),o.__exportStar(i(414),e),o.__exportStar(i(415),e),o.__exportStar(i(416),e),o.__exportStar(i(417),e)},function(t,e,i){"use strict";var o=i(14),n=function(){function t(t,e){this.key=t,this.value=e}return t.prototype.toString=function(){return this.key===o.NAMED_TAG?"named: "+this.value.toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+this.value+" }"},t}();e.Metadata=n},function(t,e,i){"use strict";e.DUPLICATED_INJECTABLE_DECORATOR="Cannot apply @injectable decorator multiple times.",e.DUPLICATED_METADATA="Metadata key was used more than once in a parameter:",e.NULL_ARGUMENT="NULL argument",e.KEY_NOT_FOUND="Key Not Found",e.AMBIGUOUS_MATCH="Ambiguous match found for serviceIdentifier:",e.CANNOT_UNBIND="Could not unbind serviceIdentifier:",e.NOT_REGISTERED="No matching bindings found for serviceIdentifier:",e.MISSING_INJECTABLE_ANNOTATION="Missing required @injectable annotation in:",e.MISSING_INJECT_ANNOTATION="Missing required @inject or @multiInject annotation in:",e.CIRCULAR_DEPENDENCY="Circular dependency found:",e.NOT_IMPLEMENTED="Sorry, this feature is not fully implemented yet.",e.INVALID_BINDING_TYPE="Invalid binding type:",e.NO_MORE_SNAPSHOTS_AVAILABLE="No snapshot available to restore.",e.INVALID_MIDDLEWARE_RETURN="Invalid return type in middleware. Middleware must return!",e.INVALID_FUNCTION_BINDING="Value provided to function binding must be a function!",e.INVALID_TO_SELF_VALUE="The toSelf function can only be applied when a constructor is used as service identifier",e.INVALID_DECORATOR_OPERATION="The @inject @multiInject @tagged and @named decorators must be applied to the parameters of a class constructor or a class property.",e.ARGUMENTS_LENGTH_MISMATCH_1="The number of constructor arguments in the derived class ",e.ARGUMENTS_LENGTH_MISMATCH_2=" must be >= than the number of constructor arguments of its base class.",e.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.",e.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE="Invalid Container option. Default scope must be a string ('singleton' or 'transient').",e.INVALID_BINDING_PROPERTY="TODO"},function(t,e,i){"use strict";e.BindingScopeEnum={Singleton:"Singleton",Transient:"Transient"};e.BindingTypeEnum={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"};e.TargetTypeEnum={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"}},function(t,e,i){"use strict";function o(t,e,i,o,n){var r={},u="number"==typeof n,s=void 0!==n&&u?n.toString():i;if(!0===u&&void 0!==i)throw new Error(a.INVALID_DECORATOR_OPERATION);!0===Reflect.hasOwnMetadata(t,e)&&(r=Reflect.getMetadata(t,e));var p=r[s];if(!0!==Array.isArray(p))p=[];else for(var c=0;c<p.length;c++){var l=p[c];if(l.key===o.key)throw new Error(a.DUPLICATED_METADATA+" "+l.key)}p.push(o),r[s]=p,Reflect.defineMetadata(t,r,e)}function n(t,e){Reflect.decorate(t,e)}var r=i(14),a=i(20);e.tagParameter=function(t,e,i,n){o(r.TAGGED,t,e,n,i)},e.tagProperty=function(t,e,i){o(r.TAGGED_PROP,t.constructor,e,i)},e.decorate=function(t,e,i){n("number"==typeof i?[function(t,e){return function(i,o){e(i,o,t)}}(i,t)]:[t],e)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(0);o.__exportStar(i(338),e),o.__exportStar(i(339),e),o.__exportStar(i(340),e),o.__exportStar(i(341),e),o.__exportStar(i(342),e),o.__exportStar(i(343),e),o.__exportStar(i(344),e),o.__exportStar(i(345),e),o.__exportStar(i(346),e),o.__exportStar(i(347),e),o.__exportStar(i(348),e),o.__exportStar(i(349),e)},function(t,e,i){"use strict";e.guid=function(){function t(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(0);o.__exportStar(i(324),e),o.__exportStar(i(325),e),o.__exportStar(i(326),e),o.__exportStar(i(327),e),o.__exportStar(i(328),e),o.__exportStar(i(329),e),o.__exportStar(i(330),e),o.__exportStar(i(331),e),o.__exportStar(i(332),e),o.__exportStar(i(333),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(0);o.__exportStar(i(381),e),o.__exportStar(i(382),e),o.__exportStar(i(383),e),o.__exportStar(i(384),e),o.__exportStar(i(385),e),o.__exportStar(i(386),e),o.__exportStar(i(387),e),o.__exportStar(i(388),e),o.__exportStar(i(389),e),o.__exportStar(i(390),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(0);o.__exportStar(i(634),e),o.__exportStar(i(635),e),o.__exportStar(i(636),e),o.__exportStar(i(637),e),o.__exportStar(i(638),e),o.__exportStar(i(639),e),o.__exportStar(i(640),e),o.__exportStar(i(641),e),o.__exportStar(i(650),e)},function(t,e,i){"use strict";function o(t){return"function"==typeof t?t.name:"symbol"==typeof t?t.toString():t}function n(t){if(t.name)return t.name;var e=t.toString(),i=e.match(/^function\s*([^\s(]+)/);return i?i[1]:"Anonymous function: "+e}var r=i(20);e.getServiceIdentifierAsString=o,e.listRegisteredBindingsForServiceIdentifier=function(t,e,i){var o="",r=i(t,e);return 0!==r.length&&(o="\nRegistered bindings:",r.forEach(function(t){var e="Object";null!==t.implementationType&&(e=n(t.implementationType)),o=o+"\n "+e,t.constraint.metaData&&(o=o+" - "+t.constraint.metaData)})),o},e.circularDependencyToException=function t(e,i){void 0===i&&(i=[]);var n=o(e.serviceIdentifier);i.push(n),e.childRequests.forEach(function(e){var n=o(e.serviceIdentifier);if(-1!==i.indexOf(n)){i.push(n);var a=i.reduce(function(t,e){return""!==t?t+" -> "+e:""+e},"");throw new Error(r.CIRCULAR_DEPENDENCY+" "+a)}e.childRequests.length>0?t(e,i):i.push(n)})},e.listMetadataForTarget=function(t,e){if(e.isTagged()||e.isNamed()){var i="",o=e.getNamedTag(),n=e.getCustomTags();return null!==o&&(i+=o.toString()+"\n"),null!==n&&n.forEach(function(t){i+=t.toString()+"\n"})," "+t+"\n "+t+" - "+i}return" "+t},e.getFunctionName=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(0);o.__exportStar(i(246),e),o.__exportStar(i(247),e),o.__exportStar(i(248),e),o.__exportStar(i(249),e),o.__exportStar(i(250),e),o.__exportStar(i(251),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(0);o.__exportStar(i(395),e),o.__exportStar(i(396),e),o.__exportStar(i(397),e),o.__exportStar(i(398),e),o.__exportStar(i(399),e),o.__exportStar(i(400),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(0);o.__exportStar(i(672),e),o.__exportStar(i(673),e),o.__exportStar(i(674),e),o.__exportStar(i(675),e),o.__exportStar(i(676),e),o.__exportStar(i(677),e),o.__exportStar(i(678),e),o.__exportStar(i(679),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(0);o.__exportStar(i(141),e),o.__exportStar(i(142),e);var n=i(143);e.coreDIModule=n.diModule},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(0);o.__exportStar(i(807),e),o.__exportStar(i(808),e),o.__exportStar(i(809),e),o.__exportStar(i(810),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(0);o.__exportStar(i(49),e),o.__exportStar(i(144),e),o.__exportStar(i(670),e);var n=i(4);e.IHttpClient=n.IHttpClient,e.IHttpHeaders=n.IHttpHeaders,e.IHttpRequest=n.IHttpRequest,e.IHttpResponse=n.IHttpResponse;var r=i(3);e.IStorageHandler=r.IStorageHandler,e.IEventHandler=r.IEventHandler,e.ITokenHandler=r.ITokenHandler,e.IBaasicAppOptions=r.IBaasicAppOptions,e.IBaasicOptions=r.IBaasicOptions,e.IToken=r.IToken,e.TokenTypes=r.TokenTypes,e.IUser=r.IUser,e.IUserHandler=r.IUserHandler,e.IDefaultStorageConfig=r.IDefaultStorageConfig,o.__exportStar(i(2),e),o.__exportStar(i(45),e)},function(t,e,i){"use strict";var o=i(36),n=i(42),r=function(){function t(t){this._binding=t}return t.prototype.when=function(t){return this._binding.constraint=t,new o.BindingOnSyntax(this._binding)},t.prototype.whenTargetNamed=function(t){return this._binding.constraint=n.namedConstraint(t),new o.BindingOnSyntax(this._binding)},t.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(t){return null!==t.target&&!1===t.target.isNamed()&&!1===t.target.isTagged()},new o.BindingOnSyntax(this._binding)},t.prototype.whenTargetTagged=function(t,e){return this._binding.constraint=n.taggedConstraint(t)(e),new o.BindingOnSyntax(this._binding)},t.prototype.whenInjectedInto=function(t){return this._binding.constraint=function(e){return n.typeConstraint(t)(e.parentRequest)},new o.BindingOnSyntax(this._binding)},t.prototype.whenParentNamed=function(t){return this._binding.constraint=function(e){return n.namedConstraint(t)(e.parentRequest)},new o.BindingOnSyntax(this._binding)},t.prototype.whenParentTagged=function(t,e){return this._binding.constraint=function(i){return n.taggedConstraint(t)(e)(i.parentRequest)},new o.BindingOnSyntax(this._binding)},t.prototype.whenAnyAncestorIs=function(t){return this._binding.constraint=function(e){return n.traverseAncerstors(e,n.typeConstraint(t))},new o.BindingOnSyntax(this._binding)},t.prototype.whenNoAncestorIs=function(t){return this._binding.constraint=function(e){return!n.traverseAncerstors(e,n.typeConstraint(t))},new o.BindingOnSyntax(this._binding)},t.prototype.whenAnyAncestorNamed=function(t){return this._binding.constraint=function(e){return n.traverseAncerstors(e,n.namedConstraint(t))},new o.BindingOnSyntax(this._binding)},t.prototype.whenNoAncestorNamed=function(t){return this._binding.constraint=function(e){return!n.traverseAncerstors(e,n.namedConstraint(t))},new o.BindingOnSyntax(this._binding)},t.prototype.whenAnyAncestorTagged=function(t,e){return this._binding.constraint=function(i){return n.traverseAncerstors(i,n.taggedConstraint(t)(e))},new o.BindingOnSyntax(this._binding)},t.prototype.whenNoAncestorTagged=function(t,e){return this._binding.constraint=function(i){return!n.traverseAncerstors(i,n.taggedConstraint(t)(e))},new o.BindingOnSyntax(this._binding)},t.prototype.whenAnyAncestorMatches=function(t){return this._binding.constraint=function(e){return n.traverseAncerstors(e,t)},new o.BindingOnSyntax(this._binding)},t.prototype.whenNoAncestorMatches=function(t){return this._binding.constraint=function(e){return!n.traverseAncerstors(e,t)},new o.BindingOnSyntax(this._binding)},t}();e.BindingWhenSyntax=r},function(t,e,i){"use strict";var o=i(35),n=function(){function t(t){this._binding=t}return t.prototype.onActivation=function(t){return this._binding.onActivation=t,new o.BindingWhenSyntax(this._binding)},t}();e.BindingOnSyntax=n},function(t,e,i){"use strict";var o=i(84)();t.exports=function(t){return t!==o&&null!==t}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(0);o.__exportStar(i(145),e),o.__exportStar(i(146),e),o.__exportStar(i(147),e),o.__exportStar(i(148),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(0);o.__exportStar(i(241),e),o.__exportStar(i(242),e),o.__exportStar(i(243),e),o.__exportStar(i(244),e)},function(t,e,i){"use strict";var o=i(19),n=i(57),r=i(24),a=i(14),u=function(){function t(t,e,i,u){this.guid=r.guid(),this.type=t,this.serviceIdentifier=i,this.name=new n.QueryableString(e||""),this.metadata=new Array;var s=null;"string"==typeof u?s=new o.Metadata(a.NAMED_TAG,u):u instanceof o.Metadata&&(s=u),null!==s&&this.metadata.push(s)}return t.prototype.hasTag=function(t){for(var e=0;e<this.metadata.length;e++)if(this.metadata[e].key===t)return!0;return!1},t.prototype.isArray=function(){return this.hasTag(a.MULTI_INJECT_TAG)},t.prototype.matchesArray=function(t){return this.matchesTag(a.MULTI_INJECT_TAG)(t)},t.prototype.isNamed=function(){return this.hasTag(a.NAMED_TAG)},t.prototype.isTagged=function(){return this.metadata.some(function(t){return t.key!==a.INJECT_TAG&&t.key!==a.MULTI_INJECT_TAG&&t.key!==a.NAME_TAG&&t.key!==a.UNMANAGED_TAG&&t.key!==a.NAMED_TAG})},t.prototype.isOptional=function(){return this.matchesTag(a.OPTIONAL_TAG)(!0)},t.prototype.getNamedTag=function(){return this.isNamed()?this.metadata.filter(function(t){return t.key===a.NAMED_TAG})[0]:null},t.prototype.getCustomTags=function(){return this.isTagged()?this.metadata.filter(function(t){return t.key!==a.INJECT_TAG&&t.key!==a.MULTI_INJECT_TAG&&t.key!==a.NAME_TAG&&t.key!==a.UNMANAGED_TAG&&t.key!==a.NAMED_TAG}):null},t.prototype.matchesNamedTag=function(t){return this.matchesTag(a.NAMED_TAG)(t)},t.prototype.matchesTag=function(t){var e=this;return function(i){for(var o=0;o<e.metadata.length;o++){var n=e.metadata[o];if(n.key===t&&n.value===i)return!0}return!1}},t}();e.Target=u},function(t,e,i){"use strict";var o=i(35),n=i(36),r=function(){function t(t){this._binding=t,this._bindingWhenSyntax=new o.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new n.BindingOnSyntax(this._binding)}return t.prototype.when=function(t){return this._bindingWhenSyntax.when(t)},t.prototype.whenTargetNamed=function(t){return this._bindingWhenSyntax.whenTargetNamed(t)},t.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},t.prototype.whenTargetTagged=function(t,e){return this._bindingWhenSyntax.whenTargetTagged(t,e)},t.prototype.whenInjectedInto=function(t){return this._bindingWhenSyntax.whenInjectedInto(t)},t.prototype.whenParentNamed=function(t){return this._bindingWhenSyntax.whenParentNamed(t)},t.prototype.whenParentTagged=function(t,e){return this._bindingWhenSyntax.whenParentTagged(t,e)},t.prototype.whenAnyAncestorIs=function(t){return this._bindingWhenSyntax.whenAnyAncestorIs(t)},t.prototype.whenNoAncestorIs=function(t){return this._bindingWhenSyntax.whenNoAncestorIs(t)},t.prototype.whenAnyAncestorNamed=function(t){return this._bindingWhenSyntax.whenAnyAncestorNamed(t)},t.prototype.whenAnyAncestorTagged=function(t,e){return this._bindingWhenSyntax.whenAnyAncestorTagged(t,e)},t.prototype.whenNoAncestorNamed=function(t){return this._bindingWhenSyntax.whenNoAncestorNamed(t)},t.prototype.whenNoAncestorTagged=function(t,e){return this._bindingWhenSyntax.whenNoAncestorTagged(t,e)},t.prototype.whenAnyAncestorMatches=function(t){return this._bindingWhenSyntax.whenAnyAncestorMatches(t)},t.prototype.whenNoAncestorMatches=function(t){return this._bindingWhenSyntax.whenNoAncestorMatches(t)},t.prototype.onActivation=function(t){return this._bindingOnSyntax.onActivation(t)},t}();e.BindingWhenOnSyntax=r},function(t,e,i){"use strict";var o=i(19),n=i(14),r=function(t,e){var i=t.parentRequest;return null!==i&&(!!e(i)||r(i,e))};e.traverseAncerstors=r;var a=function(t){return function(e){var i=function(i){return null!==i&&null!==i.target&&i.target.matchesTag(t)(e)};return i.metaData=new o.Metadata(t,e),i}};e.taggedConstraint=a;var u=a(n.NAMED_TAG);e.namedConstraint=u;e.typeConstraint=function(t){return function(e){var i=null;if(null!==e){if(i=e.bindings[0],"string"==typeof t)return i.serviceIdentifier===t;var o=e.bindings[0].implementationType;return t===o}return!1}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(1),n=i(8),r=i(4),a={ApiClient:n("ApiClient"),IHttpClient:n("IHttpClient"),IAbortSignal:n("IAbortSignal")};e.TYPES=a;var u=new o.ContainerModule(function(t){t(a.ApiClient).to(r.ApiClient)});e.diModule=u},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(1),n=i(8),r=i(2),a={Utility:n("Utility"),DateFormatter:n("DateFormatter"),ModelMapper:n("ModelMapper"),IHALParser:n("IHALParser"),IURLFactory:n("IURLFactory")};e.TYPES=a;var u=new o.ContainerModule(function(t){t(a.Utility).to(r.Utility),t(a.DateFormatter).to(r.DateFormatter),t(a.ModelMapper).to(r.ModelMapper),t(a.IHALParser).toConstantValue(r.HALParser)});e.diModule=u},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(38);e.ApplicationSettings=o;var n=i(13);e.Membership=n;var r=i(9);e.UserProfile=r;var a=i(39);e.KeyValue=a;var u=i(29);e.ValueSet=u;var s=i(6);e.Article=s;var p=i(25);e.DynamicResource=p;var c=i(23);e.MediaVault=c;var l=i(15);e.MediaGallery=l;var d=i(26);e.Files=d;var f=i(30);e.Templating=f;var h=i(18);e.Metering=h;var y=i(10);e.Notifications=y;var m=i(5);e.Commerce=m;var _=i(7);e.Calendar=_;var b=i(27);e.ShoppingCart=b;var C=i(17);e.Blog=C},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(0),n=i(1),r=i(2),a=i(4),u=i(6),s=function(){function t(t,e,i,o,n,a,s,p){this.articleInstanceCommentsClient=t,this.articleInstanceFilesClient=e,this.articleInstanceRatingsClient=i,this.articleInstanceTagsClient=o,this.articleInstanceSubscriptionsClient=n,this.articleRoute=a,this.articleACLClient=s,this.apiClient=p,this.utility=new r.Utility,this.articleUtility=new u.BaasicArticleUtility,this.statuses=u.ArticleStatus,this.commentStatuses=u.CommentStatus}var e,i,s,p,c,l,d,f;return Object.defineProperty(t.prototype,"routeDefinition",{get:function(){return this.articleRoute},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"comments",{get:function(){return this.articleInstanceCommentsClient},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"files",{get:function(){return this.articleInstanceFilesClient},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tags",{get:function(){return this.articleInstanceTagsClient},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ratings",{get:function(){return this.articleInstanceRatingsClient},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"subscriptions",{get:function(){return this.articleInstanceSubscriptionsClient},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"acl",{get:function(){return this.articleACLClient},enumerable:!0,configurable:!0}),t.prototype.find=function(t){return this.apiClient.get(this.routeDefinition.find(t))},t.prototype.get=function(t,e){return this.apiClient.get(this.articleRoute.get(t,e))},t.prototype.create=function(t){return this.apiClient.post(this.routeDefinition.create(),this.routeDefinition.createParams(t))},t.prototype.update=function(t){return this.apiClient.put(this.routeDefinition.update(t),this.routeDefinition.updateParams(t))},t.prototype.saveDraft=function(t){return this.utility.isUndefined(t.id)?this.create(t):this.update(t)},t.prototype.remove=function(t){return this.apiClient.delete(this.routeDefinition.delete(t))},t.prototype.archive=function(t,e){return this.apiClient.put(this.routeDefinition.archive(t),this.routeDefinition.updateParams(e))},t.prototype.restore=function(t){return this.apiClient.put(this.routeDefinition.restore(t),this.routeDefinition.updateParams(t))},t.prototype.unpublish=function(t){return this.apiClient.put(this.routeDefinition.unpublish(t),this.routeDefinition.updateParams(t))},t.prototype.publish=function(t,e){return this.apiClient.put(this.routeDefinition.publish(t),this.routeDefinition.updateParams(e))},t.prototype.purge=function(t){return this.apiClient.delete(this.routeDefinition.purge(t))},o.__decorate([n.injectable(),o.__param(0,n.inject(u.TYPES.ArticleInstanceCommentsClient)),o.__param(1,n.inject(u.TYPES.ArticleInstanceFilesClient)),o.__param(2,n.inject(u.TYPES.ArticleInstanceRatingsClient)),o.__param(3,n.inject(u.TYPES.ArticleInstanceTagsClient)),o.__param(4,n.inject(u.TYPES.ArticleInstanceSubscriptionsClient)),o.__param(5,n.inject(u.TYPES.ArticleRoute)),o.__param(6,n.inject(u.TYPES.ArticleACLClient)),o.__param(7,n.inject(a.httpTYPES.ApiClient)),o.__metadata("design:paramtypes",["function"==typeof(e=void 0!==u.ArticleInstanceCommentsClient&&u.ArticleInstanceCommentsClient)?e:Object,"function"==typeof(i=void 0!==u.ArticleInstanceFilesClient&&u.ArticleInstanceFilesClient)?i:Object,"function"==typeof(s=void 0!==u.ArticleInstanceRatingsClient&&u.ArticleInstanceRatingsClient)?s:Object,"function"==typeof(p=void 0!==u.ArticleInstanceTagsClient&&u.ArticleInstanceTagsClient)?p:Object,"function"==typeof(c=void 0!==u.ArticleInstanceSubscriptionsClient&&u.ArticleInstanceSubscriptionsClient)?c:Object,"function"==typeof(l=void 0!==u.ArticleRoute&&u.ArticleRoute)?l:Object,"function"==typeof(d=void 0!==u.ArticleACLClient&&u.ArticleACLClient)?d:Object,"function"==typeof(f=void 0!==a.ApiClient&&a.ApiClient)?f:Object])],t)}();e.ArticleClient=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(0);o.__exportStar(i(460),e),o.__exportStar(i(465),e),o.__exportStar(i(470),e),o.__exportStar(i(475),e),o.__exportStar(i(480),e),o.__exportStar(i(485),e),o.__exportStar(i(490),e),o.__exportStar(i(495),e),o.__exportStar(i(500),e),o.__exportStar(i(505),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(0);o.__exportStar(i(608),e),o.__exportStar(i(613),e),o.__exportStar(i(618),e),o.__exportStar(i(623),e),o.__exportStar(i(628),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(1),n=i(4),r=i(3),a=i(135),u=i(137),s=i(139),p=i(32),c=function(){function t(){this.diModules=[],this.kernel=new o.Container}return t.prototype.init=function(t,e){var i,c=this,l=new o.ContainerModule(function(e){var i=t.getApiKey(),o=[(t.settings.useSSL?"https":"http")+"://"+t.settings.apiRootUrl];if(t.settings.apiVersion&&o.push(t.settings.apiVersion),o.push(i),o.push(""),t.settings){var l={apiKey:i,apiUrl:o.join("/"),enableHALJSON:t.settings.enableHALJSON};t.settings.apiUrl=l.apiUrl,c.kernel.bind(r.TYPES.IAppOptions).toConstantValue(l),c.kernel.bind(r.TYPES.IBaasicAppOptions).toConstantValue(t.settings)}c.bindHandler(n.httpTYPES.IHttpClient,t.settings.httpClient,a.JQueryHttpClient),c.bindHandlerWithOptions(r.TYPES.IStorageHandler,r.TYPES.IDefaultStorageConfig,t.settings.storageHandler,u.LocalStorageHandler),t.settings.TokenHandler?c.kernel.bind(r.TYPES.ITokenHandler).to(t.settings.TokenHandler).inSingletonScope():c.kernel.bind(r.TYPES.ITokenHandler).to(p.TokenHandler).inSingletonScope(),c.bindHandler(r.TYPES.IEventHandler,t.settings.eventHandler,s.BrowserEventHandler),t.settings.abortSignal&&c.kernel.bind(n.httpTYPES.IAbortSignal).toConstantValue(t.settings.abortSignal()),c.kernel.bind(r.TYPES.IBaasicApp).toConstantValue(t)});this.diModules.push(l);for(var d=0,f=e;d<f.length;d++){var h=f[d];this.addModule(h)}(i=this.kernel).load.apply(i,this.diModules)},t.prototype.bindHandler=function(t,e,i){e?this.kernel.bind(t).toConstantValue(e()):this.kernel.bind(t).to(i)},t.prototype.bindHandlerWithOptions=function(t,e,i,o){if(i){if(i instanceof Function)return void this.kernel.bind(t).toConstantValue(i());this.kernel.bind(e).toConstantValue(i)}this.kernel.bind(t).to(o)},t.prototype.addModule=function(t){if(t instanceof o.ContainerModule)this.diModules.push(t);else if(t instanceof Object&&!(t instanceof Function))for(var e in t)this.addModule(t[e])},t}();e.DIModule=c},function(t,e,i){"use strict";var o=i(51),n=i(52),r=i(53),a=i(60),u=i(62),s=i(28),p=i(65),c=i(24),l=i(20),d=i(14),f=i(21),h=function(){function t(t){if(void 0!==t){if("object"!=typeof t)throw new Error(""+l.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT);if(void 0===t.defaultScope)throw new Error(""+l.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE);if(t.defaultScope!==f.BindingScopeEnum.Singleton&&t.defaultScope!==f.BindingScopeEnum.Transient)throw new Error(""+l.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE);this.options={defaultScope:t.defaultScope}}else this.options={defaultScope:f.BindingScopeEnum.Transient};this.guid=c.guid(),this._bindingDictionary=new n.Lookup,this._snapshots=[],this._middleware=null,this.parent=null}return t.merge=function(e,i){function o(t,e){t.traverse(function(t,i){i.forEach(function(t){e.add(t.serviceIdentifier,t.clone())})})}var n=new t,a=r.getBindingDictionary(n),u=r.getBindingDictionary(e),s=r.getBindingDictionary(i);return o(u,a),o(s,a),n},t.prototype.load=function(){for(var t=this,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var o=function(t,e){t._binding.moduleId=e},n=function(e){return function(i){var n=t.bind.bind(t)(i);return o(n,e),n}},r=function(e){return function(e){t.unbind.bind(t)(e)}},a=function(e){return function(e){return t.isBound.bind(t)(e)}},u=function(e){return function(i){var n=t.rebind.bind(t)(i);return o(n,e),n}};e.forEach(function(t){var e=n(t.guid),i=r(t.guid),o=a(t.guid),s=u(t.guid);t.registry(e,i,o,s)})},t.prototype.unload=function(){for(var t=this,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];e.forEach(function(e){var i=function(t){return function(e){return e.moduleId===t}}(e.guid);t._bindingDictionary.removeByCondition(i)})},t.prototype.bind=function(t){var e=f.BindingScopeEnum.Transient;e=this.options.defaultScope===e?e:f.BindingScopeEnum.Singleton;var i=new o.Binding(t,e);return this._bindingDictionary.add(t,i),new u.BindingToSyntax(i)},t.prototype.rebind=function(t){return this.unbind(t),this.bind(t)},t.prototype.unbind=function(t){try{this._bindingDictionary.remove(t)}catch(e){throw new Error(l.CANNOT_UNBIND+" "+s.getServiceIdentifierAsString(t))}},t.prototype.unbindAll=function(){this._bindingDictionary=new n.Lookup},t.prototype.isBound=function(t){return this._bindingDictionary.hasKey(t)},t.prototype.isBoundNamed=function(t,e){return this.isBoundTagged(t,d.NAMED_TAG,e)},t.prototype.isBoundTagged=function(t,e,i){var o=this._bindingDictionary.get(t),n=r.createMockRequest(this,t,e,i);return o.some(function(t){return t.constraint(n)})},t.prototype.snapshot=function(){this._snapshots.push(p.ContainerSnapshot.of(this._bindingDictionary.clone(),this._middleware))},t.prototype.restore=function(){var t=this._snapshots.pop();if(void 0===t)throw new Error(l.NO_MORE_SNAPSHOTS_AVAILABLE);this._bindingDictionary=t.bindings,this._middleware=t.middleware},t.prototype.createChild=function(){var e=new t;return e.parent=this,e},t.prototype.applyMiddleware=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i=this._middleware?this._middleware:this._planAndResolve();this._middleware=t.reduce(function(t,e){return e(t)},i)},t.prototype.get=function(t){return this._get(!1,!1,f.TargetTypeEnum.Variable,t)},t.prototype.getTagged=function(t,e,i){return this._get(!1,!1,f.TargetTypeEnum.Variable,t,e,i)},t.prototype.getNamed=function(t,e){return this.getTagged(t,d.NAMED_TAG,e)},t.prototype.getAll=function(t){return this._get(!0,!0,f.TargetTypeEnum.Variable,t)},t.prototype.getAllTagged=function(t,e,i){return this._get(!1,!0,f.TargetTypeEnum.Variable,t,e,i)},t.prototype.getAllNamed=function(t,e){return this.getAllTagged(t,d.NAMED_TAG,e)},t.prototype._get=function(t,e,i,o,n,r){var a=null,u={avoidConstraints:t,contextInterceptor:function(t){return t},isMultiInject:e,key:n,serviceIdentifier:o,targetType:i,value:r};if(this._middleware){if(void 0===(a=this._middleware(u))||null===a)throw new Error(l.INVALID_MIDDLEWARE_RETURN)}else a=this._planAndResolve()(u);return a},t.prototype._planAndResolve=function(){var t=this;return function(e){var i=r.plan(t,e.isMultiInject,e.targetType,e.serviceIdentifier,e.key,e.value,e.avoidConstraints);return i=e.contextInterceptor(i),a.resolve(i)}},t}();e.Container=h},function(t,e,i){"use strict";var o=i(24),n=i(21),r=function(){function t(t,e){this.guid=o.guid(),this.activated=!1,this.serviceIdentifier=t,this.scope=e,this.type=n.BindingTypeEnum.Invalid,this.constraint=function(t){return!0},this.implementationType=null,this.cache=null,this.factory=null,this.provider=null,this.onActivation=null,this.dynamicValue=null}return t.prototype.clone=function(){var e=new t(this.serviceIdentifier,this.scope);return e.activated=!1,e.implementationType=this.implementationType,e.dynamicValue=this.dynamicValue,e.scope=this.scope,e.type=this.type,e.factory=this.factory,e.provider=this.provider,e.constraint=this.constraint,e.onActivation=this.onActivation,e.cache=this.cache,e},t}();e.Binding=r},function(t,e,i){"use strict";var o=i(20),n=function(){function t(){this._map=new Map}return t.prototype.getMap=function(){return this._map},t.prototype.add=function(t,e){if(null===t||void 0===t)throw new Error(o.NULL_ARGUMENT);if(null===e||void 0===e)throw new Error(o.NULL_ARGUMENT);var i=this._map.get(t);void 0!==i?(i.push(e),this._map.set(t,i)):this._map.set(t,[e])},t.prototype.get=function(t){if(null===t||void 0===t)throw new Error(o.NULL_ARGUMENT);var e=this._map.get(t);if(void 0!==e)return e;throw new Error(o.KEY_NOT_FOUND)},t.prototype.remove=function(t){if(null===t||void 0===t)throw new Error(o.NULL_ARGUMENT);if(!this._map.delete(t))throw new Error(o.KEY_NOT_FOUND)},t.prototype.removeByCondition=function(t){var e=this;this._map.forEach(function(i,o){var n=i.filter(function(e){return!t(e)});n.length>0?e._map.set(o,n):e._map.delete(o)})},t.prototype.hasKey=function(t){if(null===t||void 0===t)throw new Error(o.NULL_ARGUMENT);return this._map.has(t)},t.prototype.clone=function(){var e=new t;return this._map.forEach(function(t,i){t.forEach(function(t){return e.add(i,t.clone())})}),e},t.prototype.traverse=function(t){this._map.forEach(function(e,i){t(i,e)})},t}();e.Lookup=n},function(t,e,i){"use strict";function o(t){return t._bindingDictionary}function n(t,e,i,o){var n,r=a(e.container,o.serviceIdentifier);return n=!1===t?r.filter(function(t){var n=new p.Request(t.serviceIdentifier,e,i,t,o);return t.constraint(n)}):r,function(t,e,i,o){switch(e.length){case l.BindingCount.NoBindingsAvailable:if(!0===i.isOptional())return e;var n=_.getServiceIdentifierAsString(t),r=h.NOT_REGISTERED;throw r+=_.listMetadataForTarget(n,i),r+=_.listRegisteredBindingsForServiceIdentifier(o,n,a),new Error(r);case l.BindingCount.OnlyOneBindingAvailable:if(!1===i.isArray())return e;case l.BindingCount.MultipleBindingsAvailable:default:if(!1===i.isArray()){var n=_.getServiceIdentifierAsString(t),r=h.AMBIGUOUS_MATCH+" "+n;throw r+=_.listRegisteredBindingsForServiceIdentifier(o,n,a),new Error(r)}}}(o.serviceIdentifier,n,o,e.container),n}function r(t,e,i,o,a){try{var s,c=void 0;if(null===o){c=n(t,i,null,a),s=new p.Request(e,i,null,c,a);var l=new u.Plan(i,s);i.addPlan(l)}else c=n(t,i,o,a),s=o.addChildRequest(a.serviceIdentifier,c,a);c.forEach(function(t){var e;e=a.isArray()?s.addChildRequest(t.serviceIdentifier,t,a):s,t.type===m.BindingTypeEnum.Instance&&null!==t.implementationType&&d.getDependencies(t.implementationType).forEach(function(t){r(!1,t.serviceIdentifier,i,e,t)})})}catch(t){if(!(t instanceof RangeError&&null!==o))throw new Error(t.message);_.circularDependencyToException(o.parentContext.plan.rootRequest)}}function a(t,e){var i=[],n=o(t);return n.hasKey(e)?i=n.get(e):null!==t.parent&&(i=a(t.parent,e)),i}var u=i(54),s=i(55),p=i(56),c=i(40),l=i(58),d=i(59),f=i(19),h=i(20),y=i(14),m=i(21),_=i(28);e.getBindingDictionary=o,e.plan=function(t,e,i,o,n,a,u){void 0===u&&(u=!1);var p=new s.Context(t);return r(u,o,p,null,function(t,e,i,o,n,r){var a=t?y.MULTI_INJECT_TAG:y.INJECT_TAG,u=new f.Metadata(a,i),s=new c.Target(e,o,i,u);if(void 0!==n){var p=new f.Metadata(n,r);s.metadata.push(p)}return s}(e,i,o,"",n,a)),p},e.createMockRequest=function(t,e,i,o){var n=new c.Target(m.TargetTypeEnum.Variable,"",e,new f.Metadata(i,o)),r=new s.Context(t);return new p.Request(e,r,null,[],n)}},function(t,e,i){"use strict";var o=function(){return function(t,e){this.parentContext=t,this.rootRequest=e}}();e.Plan=o},function(t,e,i){"use strict";var o=i(24),n=function(){function t(t){this.guid=o.guid(),this.container=t}return t.prototype.addPlan=function(t){this.plan=t},t}();e.Context=n},function(t,e,i){"use strict";var o=i(24),n=function(){function t(t,e,i,n,r){this.guid=o.guid(),this.serviceIdentifier=t,this.parentContext=e,this.parentRequest=i,this.target=r,this.childRequests=[],this.bindings=Array.isArray(n)?n:[n]}return t.prototype.addChildRequest=function(e,i,o){var n=new t(e,this.parentContext,this,i,o);return this.childRequests.push(n),n},t}();e.Request=n},function(t,e,i){"use strict";var o=function(){function t(t){this.str=t}return t.prototype.startsWith=function(t){return 0===this.str.indexOf(t)},t.prototype.endsWith=function(t){var e,i=t.split("").reverse().join("");return e=this.str.split("").reverse().join(""),this.startsWith.call({str:e},i)},t.prototype.contains=function(t){return-1!==this.str.indexOf(t)},t.prototype.equals=function(t){return this.str===t},t.prototype.value=function(){return this.str},t}();e.QueryableString=o},function(t,e,i){"use strict";e.BindingCount={MultipleBindingsAvailable:2,NoBindingsAvailable:0,OnlyOneBindingAvailable:1}},function(t,e,i){"use strict";function o(t,e){var i=r.getFunctionName(t),o=Reflect.getMetadata(s.PARAM_TYPES,t);if(void 0===o){var c=u.MISSING_INJECTABLE_ANNOTATION+" "+i+".";throw new Error(c)}return function(t,e,i,o,r){for(var s=[],c=0;c<r;c++){var l=o[c.toString()]||[],d=n(l),f=i[c],h=d.inject||d.multiInject,y=(f=h||f)===Object,m=f===Function,_=void 0===f,b=y||m||_;if(!1===t&&b){var C=u.MISSING_INJECT_ANNOTATION+" argument "+c+" in class "+e+".";throw new Error(C)}var R=new a.Target(p.TargetTypeEnum.ConstructorArgument,d.targetName,f);R.metadata=l,s.push(R)}return s}(e,i,o,Reflect.getMetadata(s.TAGGED,t)||[],t.length).concat(function t(e){for(var i=Reflect.getMetadata(s.TAGGED_PROP,e)||[],o=[],r=Object.keys(i),u=0;u<r.length;u++){var c=r[u],l=i[c],d=n(i[c]),f=d.targetName||c,h=d.inject||d.multiInject,y=new a.Target(p.TargetTypeEnum.ClassProperty,f,h);y.metadata=l,o.push(y)}var m=Object.getPrototypeOf(e.prototype).constructor;if(m!==Object){var _=t(m);o=o.concat(_)}return o}(t))}function n(t){var e={};return t.forEach(function(t){e[t.key.toString()]=t.value}),{inject:e[s.INJECT_TAG],multiInject:e[s.MULTI_INJECT_TAG],targetName:e[s.NAME_TAG],unmanaged:e[s.UNMANAGED_TAG]}}var r=i(28),a=i(40),u=i(20),s=i(14),p=i(21);e.getDependencies=function(t){var